public class JobId extends ObjectId
SECURITY_OVERRIDE_WBSCONTEXT_ID, USESSION_OVERRIDE_ID
Constructor and Description |
---|
JobId()
Constructs an empty
JobId object. |
JobId(ObjectId objId,
int iJobType)
Class constructor specifying object ID of the job and the job type
|
Modifier and Type | Method and Description |
---|---|
int |
getJobType()
Gets the type of job associated with this ID
|
void |
readExternal(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.
|
void |
writeExternal(ObjectOutput oos)
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.
|
addPrimaryKeyObject, compareTo, equals, fromString, getPrimaryKeyDate, getPrimaryKeyObject, getPrimaryKeyObjects, getPrimaryKeyValue, hashCode, isMultiPartKey, toInteger, toString
public JobId()
JobId
object. Must use the addPrimaryKeyObject() method
to populatepublic JobId(ObjectId objId, int iJobType)
objId
- object id of jobiJobType
- the type of jobpublic int getJobType()
public void writeExternal(ObjectOutput oos) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ObjectId
oos
- the stream to write the object toIOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput ois) throws ClassNotFoundException, IOException
readExternal
in interface Externalizable
readExternal
in class ObjectId
ois
- the stream to read data from in order to restore the objectIOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.Copyright © 2003, 2020, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.