public class DataTypeAttribute extends AbstractChildDBObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static int |
DATATYPE_CHAR
Datatype is a number attribute
|
static java.lang.String |
DATATYPE_IS_REF |
static int |
DATATYPE_LONG
Datatype is a character attribute
|
static int |
DATATYPE_LONG_OR_KEYWORD
Datatype is either a number or a keyword value defined in
property getValues()
|
static java.lang.String |
DATATYPE_NAME |
static java.lang.String |
DATATYPE_PRECISION |
static java.lang.String |
DATATYPE_REF_SCOPE |
static java.lang.String |
DATATYPE_SCALE |
static java.lang.String |
DATATYPE_SIZE |
static java.lang.String |
DATATYPE_UNSIGNED |
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
DataTypeAttribute() |
DataTypeAttribute(java.lang.String name)
Use this constructor for non declarable attributes.
|
DataTypeAttribute(java.lang.String name,
int labelIndex,
java.lang.String[] values,
java.lang.String defaultValue,
boolean isExtensible,
boolean isMandatory)
Deprecated.
|
DataTypeAttribute(java.lang.String name,
long minValue,
long maxValue)
Use this constructor for numeric attributes which are not declared but are
used in default value validation, e.g Oracle LONG, CLOB.
|
DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
long minValue,
java.lang.Long maxValue,
java.lang.Long defaultValue,
boolean isMandatory)
Use this constructor for declarable numeric attributes, e.g.
|
DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
java.lang.String[] values,
java.lang.String defaultValue,
boolean isExtensible,
boolean isMandatory)
Use this constructor for String attributes where there are one or more fixed
values, e.g.
|
DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
java.lang.String defaultValue,
boolean isMandatory)
Use this constructor for String attributes where the user enters the value
e.g.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getDefaultValue() |
java.lang.String |
getLabel() |
java.lang.Long |
getMaxValue() |
java.lang.Long |
getMinValue() |
java.lang.String |
getType()
Returns the type of this object.
|
java.lang.String[] |
getValues() |
int |
getValueType() |
boolean |
isDeclarable() |
boolean |
isExtensible() |
boolean |
isMandatory() |
void |
setDeclarable(boolean isDeclarable) |
void |
setDefaultValue(java.lang.Object defaultValue) |
void |
setExtensible(boolean isExtensible) |
void |
setLabel(java.lang.String label) |
void |
setMandatory(boolean isMandatory) |
void |
setMaxValue(java.lang.Long maxValue) |
void |
setMinValue(java.lang.Long minValue) |
void |
setValues(java.lang.String[] values) |
void |
setValueType(int valueType) |
setParentaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, copyToImpl, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getParent, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertypublic static final java.lang.String TYPE
public static final java.lang.String DATATYPE_NAME
public static final java.lang.String DATATYPE_SIZE
public static final java.lang.String DATATYPE_PRECISION
public static final java.lang.String DATATYPE_SCALE
public static final java.lang.String DATATYPE_UNSIGNED
public static final java.lang.String DATATYPE_IS_REF
public static final java.lang.String DATATYPE_REF_SCOPE
public static final int DATATYPE_CHAR
public static final int DATATYPE_LONG
public static final int DATATYPE_LONG_OR_KEYWORD
getValues(),
Constant Field Valuespublic DataTypeAttribute()
public DataTypeAttribute(java.lang.String name)
name - : attribute name - must match an @name in the data type definitionpublic DataTypeAttribute(java.lang.String name,
long minValue,
long maxValue)
name - attribute name - must match an @name in the data type definitionminValue - minimum value allowed for the attributemaxValue - maximum value allowed for the attributepublic DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
long minValue,
java.lang.Long maxValue,
java.lang.Long defaultValue,
boolean isMandatory)
name - attribute name - must match an @name in the data type definitionlabelIndex - index of display label for attributeminValue - minimum value allowed for the attributemaxValue - maximum value allowed for the attributedefaultValue - value of attribute when it's optional and not
declared, value for UI when attribute is mandatory.isMandatory - TRUE if attribute must be declaredpublic DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
java.lang.String defaultValue,
boolean isMandatory)
name - attribute name - must match an <attribute> in the
data type definitionlabelIndex - ndex of display label for attributedefaultValue - value of attribute when it's optional and not
declared, value for UI when attribute is mandatory.isMandatory - TRUE if attribute must be declaredpublic DataTypeAttribute(java.lang.String name,
java.lang.String labelIndex,
java.lang.String[] values,
java.lang.String defaultValue,
boolean isExtensible,
boolean isMandatory)
name - attribute name - must match an <attribute> in the data type definitionlabelIndex - index of display label for attributevalues - array of string values to populate pick listdefaultValue - value of attribute when it's optional and not declared,
value for UI when attribute is mandatory.isExtensible - TRUE if user entered values can be addedisMandatory - TRUE if attribute must be declared@Deprecated
public DataTypeAttribute(java.lang.String name,
int labelIndex,
java.lang.String[] values,
java.lang.String defaultValue,
boolean isExtensible,
boolean isMandatory)
public final java.lang.String getType()
DBObjectpublic int getValueType()
public void setValueType(int valueType)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.Long getMinValue()
public void setMinValue(java.lang.Long minValue)
public java.lang.Long getMaxValue()
public void setMaxValue(java.lang.Long maxValue)
public java.lang.String[] getValues()
public void setValues(java.lang.String[] values)
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object defaultValue)
public boolean isDeclarable()
public void setDeclarable(boolean isDeclarable)
public boolean isMandatory()
public void setMandatory(boolean isMandatory)
public boolean isExtensible()
public void setExtensible(boolean isExtensible)