Skip navigation links
oracle.javatools.db.datatypes
Class DataTypeAttribute
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractChildDBObject
oracle.javatools.db.datatypes.DataTypeAttribute
- All Implemented Interfaces:
- ChildDBObject, DBObject, Copyable, DynamicPropertySet
-
public class DataTypeAttribute
- extends AbstractChildDBObject
- Since:
- 10.1.3
Constructor Summary |
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. |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
TYPE
public static final java.lang.String TYPE
-
- See Also:
- Constant Field Values
DATATYPE_NAME
public static final java.lang.String DATATYPE_NAME
-
- See Also:
- Constant Field Values
DATATYPE_SIZE
public static final java.lang.String DATATYPE_SIZE
-
- See Also:
- Constant Field Values
DATATYPE_PRECISION
public static final java.lang.String DATATYPE_PRECISION
-
- See Also:
- Constant Field Values
DATATYPE_SCALE
public static final java.lang.String DATATYPE_SCALE
-
- See Also:
- Constant Field Values
DATATYPE_UNSIGNED
public static final java.lang.String DATATYPE_UNSIGNED
-
- See Also:
- Constant Field Values
DATATYPE_IS_REF
public static final java.lang.String DATATYPE_IS_REF
-
- See Also:
- Constant Field Values
DATATYPE_REF_SCOPE
public static final java.lang.String DATATYPE_REF_SCOPE
-
- See Also:
- Constant Field Values
DATATYPE_CHAR
public static final int DATATYPE_CHAR
-
- See Also:
- Constant Field Values
DATATYPE_LONG
public static final int DATATYPE_LONG
-
- See Also:
- Constant Field Values
DataTypeAttribute
public DataTypeAttribute()
DataTypeAttribute
public 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.
- Parameters:
name
- : attribute name - must match an @name in the data type definition
minValue
-
maxValue
-
DataTypeAttribute
public 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. length, precision, scale. maxValue may be null if there is no absolute maximum, but is dependent upon another attribute, e.g. the scale of most definitions of DECIMAL must be less than or equal to its precision. It is up to the DataType class to interpret these values.
- Parameters:
name
- : attribute name - must match an @name in the data type definition
labelIndex
- : index of display label for attribute
minValue
-
maxValue
-
defaultValue
- : value of attribute when it's optional and not declared, value for UI when attribute is mandatory.
isMandatory
- : TRUE if attribute must be declared
DataTypeAttribute
public 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. the <value_list> of MySQL's SET(<value_list>) type.
- Parameters:
name
- : attribute name - must match an <attribute> in the data type definition
labelIndex
- : index of display label for attribute
defaultValue
- : value of attribute when it's optional and not declared, value for UI when attribute is mandatory.
isMandatory
- : TRUE if attribute must be declared
DataTypeAttribute
public 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. the <unit> of Oracle's CHAR[(<size>[ <unit>]) type.
- Parameters:
name
- : attribute name - must match an <attribute> in the data type definition
labelIndex
- : index of display label for attribute
values
- : array of string values to populate pick list
defaultValue
- : 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 added
isMandatory
- : TRUE if attribute must be declared
DataTypeAttribute
@Deprecated
public DataTypeAttribute(java.lang.String name,
int labelIndex,
java.lang.String[] values,
java.lang.String defaultValue,
boolean isExtensible,
boolean isMandatory)
- Deprecated.
DataTypeAttribute
public DataTypeAttribute(java.lang.String name)
- Use this constructor for non declarable attributes.
- Parameters:
name
- : attribute name - must match an @name in the data type definition
getValueType
public int getValueType()
getLabel
public java.lang.String getLabel()
getMinValue
public java.lang.Long getMinValue()
getMaxValue
public java.lang.Long getMaxValue()
getValues
public java.lang.String[] getValues()
getDefaultValue
public java.lang.Object getDefaultValue()
isDeclarable
public boolean isDeclarable()
isMandatory
public boolean isMandatory()
isExtensible
public boolean isExtensible()
getType
public final java.lang.String getType()
- Description copied from interface:
DBObject
- Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.
-
- Returns:
- a string describing the type of object.
equalsImpl
protected boolean equalsImpl(AbstractDBObject other)
- Description copied from class:
AbstractDBObject
- Equals implementation for testing equality with another AbstractDBObject. Override this method (with exact signature) to customise the equality comparison.
-
- Overrides:
equalsImpl
in class AbstractDBObject
copyToImpl
protected void copyToImpl(AbstractDBObject other,
DBObject copyParent,
IDPolicy idPolicy)
- Description copied from class:
AbstractDBObject
- Implementation method for making a copy of this object. To add custom copyTo logic, a subclass must override this method (exactly), and must call back to the super implementation.
-
- Overrides:
copyToImpl
in class AbstractChildDBObject
-
- Parameters:
other
- the copy being created of this object
copyParent
- if this object is being copied underneath a parent, this parameter is the copy of the parent of this object, which will therefore need to be the parent of the copy of this object.
idPolicy
- the policy for copying the object's ID.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.