Package com.redwood.scheduler.api.model
Interface ObjectIndex
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- ObjectIndexComp,- SchedulerEntity,- SchedulerEntityComp
 
 public interface ObjectIndex extends ObjectIndexComp, Detail, BusinessKeyObject Contains custom defined indexes
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ObjectIndex" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<ObjectIndex>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 ObjectIndexColumncreateObjectIndexColumn(ObjectFieldDefinition newObjectFieldDefinition)Create a newObjectIndexColumnlinked to this object.StringgetDescription()Get the value for Description.StringgetName()Get the value for Name.ObjectDefinitiongetObjectDefinition()Get the ObjectDefinition.ObjectIndexColumngetObjectIndexColumnByColumnOrder(Long columnOrder)Get the ObjectIndexColumn by ObjectIndexColumnOrder.RWIterable<ObjectIndexColumn>getObjectIndexColumns()Get anRWIterableover a collection ofObjectIndexColumns, the collection will be ordered by ColumnOrder.StringgetSearchName()Get the value for SearchName.booleanisUnique()Get the value for Unique.voidsetDescription(String newDescription)Set the value for Description.voidsetName(String newName)Set the value for Name.voidsetUnique(boolean newUnique)Set the value for Unique.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
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 "ObjectIndex" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ObjectIndex> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDescriptionString getDescription() Get the value for Description. (Optional description)- 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.
 
 - 
getNameString getName() Get the value for Name. (The name that can be used to refer to this index (the name of the actual index in the database is prefixed with C_ to ensure the names are unique)) 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 index, 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.
 
 - 
isUniqueboolean isUnique() Get the value for Unique. (Flag stating that this index is an unique index, unique indexes can only be declared on custom objects)- 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.
 
 - 
setDescriptionvoid setDescription(String newDescription) Set the value for Description. (Optional description) 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.
 
 - 
setNamevoid setName(String newName) Set the value for Name. (The name that can be used to refer to this index (the name of the actual index in the database is prefixed with C_ to ensure the names are unique)) 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.
 
 - 
setUniquevoid setUnique(boolean newUnique) Set the value for Unique. (Flag stating that this index is an unique index, unique indexes can only be declared on custom objects)- Parameters:
- newUnique- the new value for Unique.
- 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.
 
 - 
getObjectDefinitionObjectDefinition getObjectDefinition() Get the ObjectDefinition.- Returns:
- ObjectDefinition
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getObjectIndexColumnsRWIterable<ObjectIndexColumn> getObjectIndexColumns() Get anRWIterableover a collection ofObjectIndexColumns, the collection will be ordered by ColumnOrder. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The index to which this index column belongs- Specified by:
- getObjectIndexColumnsin interface- ObjectIndexComp
- Returns:
- An RWIterableover a collection ofObjectIndexColumnobjects , the collection will be ordered by ColumnOrder.
 
 - 
createObjectIndexColumnObjectIndexColumn createObjectIndexColumn(ObjectFieldDefinition newObjectFieldDefinition) Create a newObjectIndexColumnlinked to this object.- Parameters:
- newObjectFieldDefinition- The other parent of the- ObjectIndexColumnObjectFieldDefinitionassociation.
- Returns:
- a new ObjectIndexColumn.
 
 - 
getObjectIndexColumnByColumnOrderObjectIndexColumn getObjectIndexColumnByColumnOrder(Long columnOrder) Get the ObjectIndexColumn by ObjectIndexColumnOrder.- Parameters:
- columnOrder-
- Returns:
- the ObjectIndexColumn, or nullif it could not be found
 
 
- 
 
-