Package com.primavera.integration.common
Class JobId
java.lang.Object
com.primavera.common.value.ObjectId
com.primavera.integration.common.JobId
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<ObjectId>
ID of a server-side asynchronous job (such as a scheduling job). This ID can be used to
retrieve the status of the job from the Job Manager
- See Also:
-
Field Summary
Fields inherited from class com.primavera.common.value.ObjectId
SECURITY_OVERRIDE_WBSCONTEXT_ID, USESSION_OVERRIDE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the type of job associated with this IDvoidreadExternal(ObjectInput ois) Implementation of the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.voidImplementation of the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.Methods inherited from class com.primavera.common.value.ObjectId
addPrimaryKeyObject, compareTo, equals, fromString, getPrimaryKeyDate, getPrimaryKeyObject, getPrimaryKeyObjects, getPrimaryKeyValue, hashCode, isMultiPartKey, toInteger, toString
-
Constructor Details
-
JobId
public JobId()Constructs an emptyJobIdobject. Must use the addPrimaryKeyObject() method to populate -
JobId
Class constructor specifying object ID of the job and the job type- Parameters:
objId- object id of jobiJobType- the type of job
-
-
Method Details
-
getJobType
public int getJobType()Gets the type of job associated with this ID- Returns:
- int the type of job. See JobProperties for possible values
-
writeExternal
Implementation of the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classObjectId- Parameters:
oos- the stream to write the object to- Throws:
IOException- Includes any I/O exceptions that may occur
-
readExternal
Implementation of the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classObjectId- Parameters:
ois- the stream to read data from in order to restore the object- Throws:
IOException- if I/O errors occurClassNotFoundException- If the class for an object being restored cannot be found.
-