Package mks.ci.server.engine
Class LocalTriggerManager.ScriptChangePackageAttributeBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIdentifiedBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptChangePackageAttributeBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Enclosing class:
- LocalTriggerManager
public static class LocalTriggerManager.ScriptChangePackageAttributeBean extends LocalTriggerManager.ScriptIdentifiedBean implements mks.frame.triggers.ScriptExposableBean
A bean describing a change package attribute or change package entry attribute. These beans are obtained via theimChangePackageTypeBean
. via the.getChangePackageAttrbutes()
,.getChangePackageEntryAttributes()
and.getChangePackageEntryKeyAttributes() methods.
-
-
Constructor Summary
Constructors Constructor Description ScriptChangePackageAttributeBean(int userId, mks.ci.server.engine.CPAttribute cpAttrib, java.sql.Connection c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataType()
Returns the data type of this attribute.int
getDecimalPlaces()
For attributes of type `float' this method will return the maximum number of digits allowed in the fraction portion of an attribute value.java.lang.String
getDisplayFormat()
Returns the display format for this attribute.java.lang.String
getDisplayName()
Retrieve the display name of this change package attribute.java.lang.String
getExposedName()
Get the name of this bean:imChangePackageAttributeBean
java.lang.String
getName()
Retrieve the real name of this change package attribute.java.lang.String[]
getStringListValues()
For attributes of type `stringlist' this method will return all the valid string values for the attribute.boolean
isMandatory()
Returns whether or not a value for this attribute is mandatory.boolean
isReadOnly()
Returns whether or not the value of this attribute is read-only.-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptIdentifiedBean
getCreatedDate, getCreatedUser, getInternalID, getModifiedDate, getModifiedUser
-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
getCurrentDatabaseTime, getCurrentDatabaseTime, getCurrentUser, getServerBean, getUserID, isParallelProcessingEnabled
-
Methods inherited from class mks.frame.triggers.beans.ScriptBaseBean
getEnvironmentBean, setEnvironmentBean
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Retrieve the real name of this change package attribute.- Returns:
- The real name of this change package attribute.
-
getDisplayName
public java.lang.String getDisplayName()
Retrieve the display name of this change package attribute.- Returns:
- The display name of this change package attribute.
-
getDataType
public java.lang.String getDataType()
Returns the data type of this attribute.- Returns:
- A String representing the data type, either: logical, date, float, cpid, cpidlist, integer, string, user, stringlist or type.
-
isReadOnly
public boolean isReadOnly()
Returns whether or not the value of this attribute is read-only.- Returns:
- True if the value of this attribute is read-only, false otherwise.
-
isMandatory
public boolean isMandatory()
Returns whether or not a value for this attribute is mandatory.- Returns:
- True if a value for this attribute is mandatory, false otherwise.
-
getDisplayFormat
public java.lang.String getDisplayFormat()
Returns the display format for this attribute.- Returns:
- The display format of this attribute, for logical attributes the returned value will be either: truefalse, tf, yesno, or yn. For all other attribute types the value `unknown' will be returned.
-
getStringListValues
public java.lang.String[] getStringListValues()
For attributes of type `stringlist' this method will return all the valid string values for the attribute.- Returns:
- An array of Strings representing all the string values that this string list attribute is allowed to take, otherwise null.
-
getDecimalPlaces
public int getDecimalPlaces()
For attributes of type `float' this method will return the maximum number of digits allowed in the fraction portion of an attribute value.- Returns:
- The maximum number of digits allowed in the fraction portion of an attribute value, otherwise 0.
-
getExposedName
public java.lang.String getExposedName()
Get the name of this bean:imChangePackageAttributeBean
- Specified by:
getExposedName
in interfacemks.frame.triggers.ScriptExposableBean
- Specified by:
getExposedName
in classScriptBaseBean
- Returns:
- the bean name:
imChangePackageAttributeBean
.
-
-