Package com.redwood.scheduler.api.model
Interface ObjectReference
- 
- All Superinterfaces:
- BusinessKeyObject,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface ObjectReference extends Root, BusinessKeyObject, Readable Object Reference A link from the source object to the linked object. This ensures that the linked object cannot be deleted, and that the source object can refer to the linked object, even if the linked object changes name. The JDBC module uses ObjectReferences named 'Jdbc_ProcessServer_Database_Ref' to link the JDBC process server to the database object containing the connection details.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ObjectReference" objects.static QueryObjectType<ObjectReference>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDescription()Get the value for Description.NamedRootObjectgetLinkedObject()Return the linked object of this object reference.StringgetName()Get the value for Name.StringgetSearchName()Get the value for SearchName.NamedRootObjectgetSourceObject()Return the source object of this object reference.voidsetDescription(String newDescription)Set the value for Description.voidsetName(String newName)Set the value for Name.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "ObjectReference" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ObjectReference> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 
- 
 - 
Method Detail- 
getNameString getName() Get the value for Name. (The name that can be used to refer to this object. The default name of "<objectType>_n", where <objectType> is the type of the linked object, and n is the lowest number for which the name does not exist.Note: Although the setter exists, calling it from user code is not recommneded. ) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getSearchNameString getSearchName() Get the value for SearchName. (The name that can be used to refer to this object, insearch case.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getDescriptionString getDescription() Get the value for Description. (Optional description for the reference.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setNamevoid setName(String newName) Set the value for Name. (The name that can be used to refer to this object. The default name of "<objectType>_n", where <objectType> is the type of the linked object, and n is the lowest number for which the name does not exist.Note: Although the setter exists, calling it from user code is not recommneded. ) This value is mandatory.- Parameters:
- newName- the new value for Name. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setDescriptionvoid setDescription(String newDescription) Set the value for Description. (Optional description for the reference.) This value is optional.- Parameters:
- newDescription- the new value for Description.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getSourceObjectNamedRootObject getSourceObject() Return the source object of this object reference.- Returns:
- The source object of this reference.
 
 - 
getLinkedObjectNamedRootObject getLinkedObject() Return the linked object of this object reference.- Returns:
- The linked object of this reference.
 
 
- 
 
-