|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.Simple
wt.scheduler.ScheduleItem
Use the newScheduleItem
static factory method(s), not the
ScheduleItem
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private boolean |
cancelled
|
protected static String |
CANCELLED
Label for the attribute. |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
IMMEDIATE_MODE
Label for the attribute. |
private boolean |
immediateMode
|
static String |
ITEM_DESCRIPTION
Label for the attribute; This is the user defined description for the scheudle item. |
private static int |
ITEM_DESCRIPTION_UPPER_LIMIT
|
static String |
ITEM_NAME
Label for the attribute; This is a user defined name for the schedule item. |
private static int |
ITEM_NAME_UPPER_LIMIT
|
private String |
itemDescription
|
private String |
itemName
|
static String |
NEXT_TIME
Label for the attribute. |
private Timestamp |
nextTime
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private long |
periodicity
|
static String |
PERIODICITY
Label for the attribute; Period length in seconds. |
static String |
PRINCIPAL_REF
Label for the attribute. |
private WTPrincipalReference |
principalRef
|
protected static String |
QE_REFERENCE
Label for the attribute; ObectReference of the QueueEntry object which is generated during the postCreate method Supported API: false |
private ObjectReference |
qeReference
|
static String |
QUEUE_NAME
Label for the attribute; Name of the ProcessQueue that this method is targeted for. |
private static int |
QUEUE_NAME_UPPER_LIMIT
|
private String |
queueName
|
private static String |
RESOURCE
|
protected static String |
RUN_COUNT
Label for the attribute; Number of times the ScheduleItem has been run Users should use getCurrentRunCount to get this value. |
private long |
runCount
|
(package private) static long |
serialVersionUID
|
static String |
START_DATE
Label for the attribute; At the moment, the meaning of this parameter is dependant on the schedule type. |
private Timestamp |
startDate
|
static String |
TARGET_CLASS
Label for the attribute. |
private static int |
TARGET_CLASS_UPPER_LIMIT
|
static String |
TARGET_METHOD
Label for the attribute; This is the method to be scheduled It is a string of the form "ClassName.methodName" The method must be static, and any return value would be lost. |
private static int |
TARGET_METHOD_UPPER_LIMIT
|
private String |
targetClass
|
private String |
targetMethod
|
static String |
TO_BE_RUN
Label for the attribute; Number of times the schedule item is scheduled to be run. |
private long |
toBeRun
|
Fields inherited from class wt.enterprise.Simple |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.notify.Notifiable |
EVENT_SET |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ScheduleItem()
|
Method Summary | |
Object |
clone()
Supported API: false |
void |
copyAttributesFrom(ScheduleItem other)
Copies attribute values not relative to DB access from another Schedule Item. Useful when copying values from another Schedule Item over an item already retrieved from the DB. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
protected SchedStatusInfo |
execute()
Helper method for running scheduling methods. |
private MethodArgument[] |
getArgs()
Get method arguments for target method |
String |
getConceptualClassname()
Deprecated. |
Timestamp |
getCurrentNextTime()
Retrieves the next time the method will be executed. |
long |
getCurrentRunCount()
Gets the current runcount for the schedule item. |
WTMessage |
getCurrentRunStatus()
Supported API: false |
boolean |
getIsCancelled()
Supported API: false |
String |
getItemDescription()
Gets the value of the attribute: ITEM_DESCRIPTION. |
String |
getItemName()
Gets the value of the attribute: ITEM_NAME. |
protected ScheduleHistory |
getLatestSchedHistory()
Supported API: false |
Timestamp |
getNextTime()
Gets the value of the attribute: NEXT_TIME. |
long |
getPeriodicity()
Gets the value of the attribute: PERIODICITY. |
WTPrincipalReference |
getPrincipalRef()
Gets the value of the attribute: PRINCIPAL_REF. |
protected ObjectReference |
getQeReference()
Gets the value of the attribute: QE_REFERENCE. |
String |
getQueueName()
Gets the value of the attribute: QUEUE_NAME. |
protected long |
getRunCount()
Gets the value of the attribute: RUN_COUNT. |
Timestamp |
getStartDate()
Gets the value of the attribute: START_DATE. |
String |
getTargetClass()
Gets the value of the attribute: TARGET_CLASS. |
String |
getTargetMethod()
Gets the value of the attribute: TARGET_METHOD. |
long |
getToBeRun()
Gets the value of the attribute: TO_BE_RUN. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supported API: false |
protected boolean |
isCancelled()
Gets the value of the attribute: CANCELLED. |
boolean |
isImmediateMode()
Gets the value of the attribute: IMMEDIATE_MODE. |
static ScheduleItem |
newScheduleItem()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ScheduleItem thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setCancelled(boolean a_Cancelled)
Sets the value of the attribute: CANCELLED. |
void |
setImmediateMode(boolean a_ImmediateMode)
Sets the value of the attribute: IMMEDIATE_MODE. |
void |
setItemDescription(String a_ItemDescription)
Sets the value of the attribute: ITEM_DESCRIPTION. |
void |
setItemName(String a_ItemName)
Sets the value of the attribute: ITEM_NAME. |
void |
setMethod(String className,
String methodName)
Supported API: false |
void |
setNextTime(Timestamp a_NextTime)
Sets the value of the attribute: NEXT_TIME. |
void |
setPeriodicity(long a_Periodicity)
Sets the value of the attribute: PERIODICITY. |
void |
setPrincipalRef(WTPrincipalReference a_PrincipalRef)
Sets the value of the attribute: PRINCIPAL_REF. |
protected void |
setQeReference(ObjectReference a_QeReference)
Sets the value of the attribute: QE_REFERENCE. |
void |
setQueueName(String a_QueueName)
Sets the value of the attribute: QUEUE_NAME. |
protected void |
setRunCount(long a_RunCount)
Sets the value of the attribute: RUN_COUNT. |
void |
setStartDate(Timestamp a_StartDate)
Sets the value of the attribute: START_DATE. |
void |
setTargetClass(String a_TargetClass)
Sets the value of the attribute: TARGET_CLASS. |
void |
setTargetMethod(String a_TargetMethod)
Sets the value of the attribute: TARGET_METHOD. |
void |
setToBeRun(long a_ToBeRun)
Sets the value of the attribute: TO_BE_RUN. |
String |
toString()
Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.enterprise.Simple |
getBusinessType, getDomainRef, getEventSet, getIdentity, isInheritedDomain, readVersion, setDomainRef, setEventSet, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String QUEUE_NAME
private static int QUEUE_NAME_UPPER_LIMIT
private String queueName
public static final String TARGET_CLASS
private static int TARGET_CLASS_UPPER_LIMIT
private String targetClass
public static final String TARGET_METHOD
private static int TARGET_METHOD_UPPER_LIMIT
private String targetMethod
public static final String TO_BE_RUN
private long toBeRun
public static final String PERIODICITY
private long periodicity
public static final String ITEM_NAME
private static int ITEM_NAME_UPPER_LIMIT
private String itemName
public static final String ITEM_DESCRIPTION
private static int ITEM_DESCRIPTION_UPPER_LIMIT
private String itemDescription
public static final String PRINCIPAL_REF
private WTPrincipalReference principalRef
public static final String IMMEDIATE_MODE
private boolean immediateMode
public static final String START_DATE
private Timestamp startDate
protected static final String RUN_COUNT
private long runCount
public static final String NEXT_TIME
private Timestamp nextTime
protected static final String QE_REFERENCE
private ObjectReference qeReference
protected static final String CANCELLED
private boolean cancelled
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public ScheduleItem()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Simple
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Simple
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ScheduleItem thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Simple
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Simple
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getQueueName()
public void setQueueName(String a_QueueName)
a_QueueName
- public String getTargetClass()
public void setTargetClass(String a_TargetClass)
a_TargetClass
- public String getTargetMethod()
public void setTargetMethod(String a_TargetMethod)
a_TargetMethod
- public long getToBeRun()
public void setToBeRun(long a_ToBeRun)
a_ToBeRun
- public long getPeriodicity()
public void setPeriodicity(long a_Periodicity)
a_Periodicity
- public String getItemName()
public void setItemName(String a_ItemName)
a_ItemName
- public String getItemDescription()
public void setItemDescription(String a_ItemDescription)
a_ItemDescription
- public WTPrincipalReference getPrincipalRef()
public void setPrincipalRef(WTPrincipalReference a_PrincipalRef)
a_PrincipalRef
- public boolean isImmediateMode()
public void setImmediateMode(boolean a_ImmediateMode)
a_ImmediateMode
- public Timestamp getStartDate()
public void setStartDate(Timestamp a_StartDate)
a_StartDate
- protected long getRunCount()
protected void setRunCount(long a_RunCount)
a_RunCount
- public Timestamp getNextTime()
public void setNextTime(Timestamp a_NextTime)
a_NextTime
- protected ObjectReference getQeReference()
protected void setQeReference(ObjectReference a_QeReference)
a_QeReference
- protected boolean isCancelled()
protected void setCancelled(boolean a_Cancelled)
a_Cancelled
- public static ScheduleItem newScheduleItem() throws WTException
WTException
public String toString()
toString
in class WTObject
public void setMethod(String className, String methodName) throws IllegalArgumentException
className
- methodName
-
IllegalArgumentException
public long getCurrentRunCount()
public Timestamp getCurrentNextTime()
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public WTMessage getCurrentRunStatus() throws WTException
WTException
public boolean getIsCancelled()
protected void initialize() throws WTException
initialize
in class Simple
WTException
protected SchedStatusInfo execute() throws WTException
WTException
protected ScheduleHistory getLatestSchedHistory() throws WTException
WTException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Simple
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Simple
private MethodArgument[] getArgs() throws WTException
WTException
public void copyAttributesFrom(ScheduleItem other)
other
- another ScheduleItem to copy values from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |