Package com.redwood.scheduler.api.model
Interface TableDefinitionColumn
-
- All Superinterfaces:
Detail
,Readable
,SchedulerEntity
,SchedulerEntityComp
public interface TableDefinitionColumn extends Detail, Readable
A column definition for a user- or system-defined table.
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_KEY
The name of the reserved Key columnstatic String
COLUMN_SYSTEMVALUE
The name of the only column in the standard variables tablestatic String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "TableDefinitionColumn" objects.static String
SEC_RANK_ALL
This rank is made of the following privileges:static String
SEC_RANK_NONE
This rank has no privileges assigned to it.static QueryObjectType<TableDefinitionColumn>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getColumnName()
Get the value for ColumnName.String
getComment()
Get the value for Comment.Long
getDataLength()
Get the value for DataLength.ParameterType
getDataType()
Get the value for DataType.String
getDefaultValue()
Get the value for DefaultValue.String
getDescription()
Get the value for Description.Long
getDisplayOrder()
Get the value for DisplayOrder.String
getSearchColumnName()
Get the value for SearchColumnName.String
getSimpleConstraintData()
Get the value for SimpleConstraintData.String
getSimpleConstraintMessage()
Get the value for SimpleConstraintMessage.SimpleConstraintSort
getSimpleConstraintSort()
Get the value for SimpleConstraintSort.SimpleConstraintType
getSimpleConstraintType()
Get the value for SimpleConstraintType.TableDefinition
getTableDefinition()
Get the TableDefinition.boolean
isNullable()
Get the value for Nullable.boolean
isPassword()
Get the value for Password.boolean
isSimpleConstraintOptional()
Get the value for SimpleConstraintOptional.void
setColumnName(String newColumnName)
Set the value for ColumnName.void
setComment(String newComment)
Set the value for Comment.void
setDataLength(Long newDataLength)
Set the value for DataLength.void
setDataType(ParameterType newDataType)
Set the value for DataType.void
setDefaultValue(String newDefaultValue)
Set the value for DefaultValue.void
setDescription(String newDescription)
Set the value for Description.void
setDisplayOrder(Long newDisplayOrder)
Set the value for DisplayOrder.void
setNullable(boolean newNullable)
Set the value for Nullable.void
setPassword(boolean newPassword)
Set the value for Password.void
setSearchColumnName(String newSearchColumnName)
Set the value for SearchColumnName.void
setSimpleConstraintData(String newSimpleConstraintData)
Set the value for SimpleConstraintData.void
setSimpleConstraintMessage(String newSimpleConstraintMessage)
Set the value for SimpleConstraintMessage.void
setSimpleConstraintOptional(boolean newSimpleConstraintOptional)
Set the value for SimpleConstraintOptional.void
setSimpleConstraintSort(SimpleConstraintSort newSimpleConstraintSort)
Set the value for SimpleConstraintSort.void
setSimpleConstraintType(SimpleConstraintType newSimpleConstraintType)
Set the value for SimpleConstraintType.-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, 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_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "TableDefinitionColumn" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<TableDefinitionColumn> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
COLUMN_KEY
static final String COLUMN_KEY
The name of the reserved Key column- See Also:
- Constant Field Values
-
COLUMN_SYSTEMVALUE
static final String COLUMN_SYSTEMVALUE
The name of the only column in the standard variables table- See Also:
- Constant Field Values
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayOrder
Long getDisplayOrder()
Get the value for DisplayOrder. (Display order) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getColumnName
String getColumnName()
Get the value for ColumnName. (The column name.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSearchColumnName
String getSearchColumnName()
Get the value for SearchColumnName. (The column search name.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isNullable
boolean isNullable()
Get the value for Nullable. (Is the parameter optional?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDataType
ParameterType getDataType()
Get the value for DataType. (The datatype of the column) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getComment
String getComment()
Get the value for Comment. (Optional comment)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDescription
String getDescription()
Get the value for Description. (Optional description)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDefaultValue
String getDefaultValue()
Get the value for DefaultValue. (Optional default value, used to initialize columnValue when creating a new TableValue)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isPassword
boolean isPassword()
Get the value for Password. (This column is a Password field and values for this column will not be displayed)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDataLength
Long getDataLength()
Get the value for DataLength. (The maximum length that a table value of a string column can be. If this value is null then the length will not be checked. This value is ignored for non-string columns.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintType
SimpleConstraintType getSimpleConstraintType()
Get the value for SimpleConstraintType. (The type of simple constraint to apply.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintData
String getSimpleConstraintData()
Get the value for SimpleConstraintData. (The data for the simple constraint.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintMessage
String getSimpleConstraintMessage()
Get the value for SimpleConstraintMessage. (The message to display if the simple constraint fails to validate.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isSimpleConstraintOptional
boolean isSimpleConstraintOptional()
Get the value for SimpleConstraintOptional. (Is the constraint optional?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintSort
SimpleConstraintSort getSimpleConstraintSort()
Get the value for SimpleConstraintSort. (Sort order of constraint.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDisplayOrder
void setDisplayOrder(Long newDisplayOrder)
Set the value for DisplayOrder. (Display order) This value is mandatory.- Parameters:
newDisplayOrder
- the new value for DisplayOrder. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setColumnName
void setColumnName(String newColumnName)
Set the value for ColumnName. (The column name.) This value is mandatory.- Parameters:
newColumnName
- the new value for ColumnName. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSearchColumnName
void setSearchColumnName(String newSearchColumnName)
Set the value for SearchColumnName. (The column search name.) This value is mandatory.- Parameters:
newSearchColumnName
- the new value for SearchColumnName. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setNullable
void setNullable(boolean newNullable)
Set the value for Nullable. (Is the parameter optional?)- Parameters:
newNullable
- the new value for Nullable.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataType
void setDataType(ParameterType newDataType)
Set the value for DataType. (The datatype of the column) This value is mandatory.- Parameters:
newDataType
- the new value for DataType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setComment
void setComment(String newComment)
Set the value for Comment. (Optional comment) This value is optional.- Parameters:
newComment
- the new value for Comment.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDescription
void setDescription(String newDescription)
Set the value for Description. (Optional description) This value is optional.- Parameters:
newDescription
- the new value for Description.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDefaultValue
void setDefaultValue(String newDefaultValue)
Set the value for DefaultValue. (Optional default value, used to initialize columnValue when creating a new TableValue) This value is optional.- Parameters:
newDefaultValue
- the new value for DefaultValue.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setPassword
void setPassword(boolean newPassword)
Set the value for Password. (This column is a Password field and values for this column will not be displayed)- Parameters:
newPassword
- the new value for Password.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataLength
void setDataLength(Long newDataLength)
Set the value for DataLength. (The maximum length that a table value of a string column can be. If this value is null then the length will not be checked. This value is ignored for non-string columns.) This value is optional.- Parameters:
newDataLength
- the new value for DataLength.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintType
void setSimpleConstraintType(SimpleConstraintType newSimpleConstraintType)
Set the value for SimpleConstraintType. (The type of simple constraint to apply.) This value is mandatory.- Parameters:
newSimpleConstraintType
- the new value for SimpleConstraintType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintData
void setSimpleConstraintData(String newSimpleConstraintData)
Set the value for SimpleConstraintData. (The data for the simple constraint.) This value is optional.- Parameters:
newSimpleConstraintData
- the new value for SimpleConstraintData.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintMessage
void setSimpleConstraintMessage(String newSimpleConstraintMessage)
Set the value for SimpleConstraintMessage. (The message to display if the simple constraint fails to validate.) This value is optional.- Parameters:
newSimpleConstraintMessage
- the new value for SimpleConstraintMessage.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintOptional
void setSimpleConstraintOptional(boolean newSimpleConstraintOptional)
Set the value for SimpleConstraintOptional. (Is the constraint optional?)- Parameters:
newSimpleConstraintOptional
- the new value for SimpleConstraintOptional.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintSort
void setSimpleConstraintSort(SimpleConstraintSort newSimpleConstraintSort)
Set the value for SimpleConstraintSort. (Sort order of constraint.) This value is mandatory.- Parameters:
newSimpleConstraintSort
- the new value for SimpleConstraintSort. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getTableDefinition
TableDefinition getTableDefinition()
Get the TableDefinition.- Returns:
- TableDefinition
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
-