com.ibm.as400.access
Class JobCCSID
- java.lang.Object
-
- com.ibm.as400.access.JobCCSID
-
public class JobCCSID extends java.lang.Object
The JobCCSID class represents an IBM i Job CCSID.
-
-
Constructor Summary
Constructors Constructor and Description JobCCSID()
Constructs a JobCCSID object.JobCCSID(AS400 system)
Constructs a JobCCSID object.
-
Method Summary
Methods Modifier and Type Method and Description AS400
getSystem()
Returns the system on which the Job CCSID is to be retrieved.int
retrieveCcsid()
Retrieves the CCSID for this object.void
setSystem(AS400 system)
Sets the system on which to retrieve the Job CCSID.
-
-
-
Constructor Detail
-
JobCCSID
public JobCCSID()
Constructs a JobCCSID object.
-
JobCCSID
public JobCCSID(AS400 system)
Constructs a JobCCSID object. It uses the specified system.- Parameters:
system
- The system on which to retrieve the CCSID.
-
-
Method Detail
-
getSystem
public AS400 getSystem()
Returns the system on which the Job CCSID is to be retrieved.- Returns:
- The system on which the Job CCSID is to be retrieved. If the system has not been set, null is returned.
-
retrieveCcsid
public int retrieveCcsid() throws AS400SecurityException, ErrorCompletingRequestException, java.io.IOException
Retrieves the CCSID for this object.- Returns:
- The Job CCSID of the corresponding job.
- Throws:
AS400SecurityException
- If a security or authority error occurs.ErrorCompletingRequestException
- If an error occurs before the request is completed.java.io.IOException
- If an error occurs while communicating with the system.
-
setSystem
public void setSystem(AS400 system)
Sets the system on which to retrieve the Job CCSID. The system cannot be changed once a connection is made to the system.- Parameters:
system
- The system on which to retrieve the Job CCSID.
-
-