public class CharacterDataType extends PredefinedDataType
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupportPCTROWTYPE, PCTTYPE, REF, TYPE| Constructor and Description |
|---|
CharacterDataType() |
CharacterDataType(int domain, java.lang.String name)
Use this constructor when the data type is a simple name with no declarable attributes, e.g.
|
CharacterDataType(int domain, java.lang.String name, long minSize, long maxSize)
Use this constructor when the data type has a maximum size that is used in default value validation, but isn't declarable, e.g.
|
CharacterDataType(int domain, java.lang.String name, java.lang.String definition, DataTypeAttribute[] attributes)
Use this constructor when the datatype is not just a simple name, but has declarable attributes, e.g.
|
CharacterDataType(int domain, java.lang.String name, java.lang.String definition, long minSize, long maxSize, long defaultSize, boolean isSizeMandatory, DataTypeAttribute[] attributes)
Use this constructor when the data type has a declarable maximum size, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
validateDefaultValue(java.lang.Object defaultValue, DataType dataType, DataTypeUsage dataTypeUsage, DBObject dbObject)
Does default validation.
|
void |
validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared size of this character type.
|
addAttribute, addAttribute, copyToImpl, createDefaultUsage, createUsage, createUsage, equalsImpl, getDataTypeAttribute, getDataTypeAttributes, getDDL, getDefinitionForSearch, getType, hasDataTypeAttribute, matches, parseDefaultValue, removeAttribute, setDataTypeAttributes, tokenize, validateDefinition, validateUsageaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, 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, waitaddObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertypublic CharacterDataType()
public CharacterDataType(int domain,
java.lang.String name)
domain - : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.name -
public CharacterDataType(int domain,
java.lang.String name,
java.lang.String definition,
DataTypeAttribute[] attributes)
domain - : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.name -definition -attributes - : Definitions of the data type's attributes
public CharacterDataType(int domain,
java.lang.String name,
long minSize,
long maxSize)
domain - : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.name - : data type nameminSize - : the minimum size of the data type (usually 1 but may be 0)maxSize - : the maximum size of the data type
public CharacterDataType(int domain,
java.lang.String name,
java.lang.String definition,
long minSize,
long maxSize,
long defaultSize,
boolean isSizeMandatory,
DataTypeAttribute[] attributes)
domain - : Context of data type definition, e.g. column, variable. Domains are specific to each database and are defined in their interface.name - : data type namedefinition -minSize - : the minimum size of the data typemaxSize - : the maximum size of the data typedefaultSize - : size of data type when size is optional and not declared, default size for UI when size is mandatory.isSizeMandatory - : TRUE when size has to be declaredattributes - : Definitions of additional attributes
public void validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DefaultValueValidationException
validateDefaultValue in interface DataTypevalidateDefaultValue in class PredefinedDataTypedataTypeUsage - : the usage to be validateddefaultValue - : the default valuedbObject - : the context of the data type usageDefaultValueValidationException
public static void validateDefaultValue(java.lang.Object defaultValue,
DataType dataType,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DefaultValueValidationException
defaultValue -dataType -dataTypeUsage -dbObject -DefaultValueValidationException