com.ibm.as400.access
Class JobCCSID

java.lang.Object
  extended by com.ibm.as400.access.JobCCSID

public class JobCCSID
extends Object

The JobCCSID class represents an IBM i Job CCSID.


Constructor Summary
Constructor and Description
JobCCSID()
          Constructs a JobCCSID object.
JobCCSID(AS400 system)
          Constructs a JobCCSID object.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                         IOException
Retrieves the CCSID for this object.

Returns:
The Job CCSID of the corresponding job.
Throws:
AS400SecurityException
ErrorCompletingRequestException
IOException

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.