public class DataTypeSynonym extends AbstractDBObject implements DataType
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupportPCTROWTYPE, PCTTYPE, REF, TYPE| Constructor and Description |
|---|
DataTypeSynonym() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyToImpl(AbstractDBObject other, DBObject copyParent, IDPolicy idPolicy)
Implementation method for making a copy of this object.
|
DataTypeUsage |
createDefaultUsage()
Returns an DataTypeUsage object for this type.
|
DataTypeUsage |
createUsage(java.util.Map attributes)
Returns an DataTypeUsage object for this type, populated with attributes.
|
DataTypeUsage |
createUsage(java.lang.String usageString)
Returns an DataTypeUsage object for this type, populated with attributes based on the usageString.
|
protected boolean |
equalsImpl(AbstractDBObject other)
Equals implementation for testing equality with another AbstractDBObject.
|
DataType |
getBaseType() |
DataTypeAttribute |
getDataTypeAttribute(java.lang.String name)
Returns the DataTypeAttribute with the given name, if this DataType has such an attribute.
|
DataTypeAttribute[] |
getDataTypeAttributes()
Returns the DataTypeAttributes for this DataType.
|
java.lang.String |
getDDL(DataTypeUsage dataTypeUsage)
Generates the DDL for this type.
|
java.lang.String |
getType()
Returns the type of this object.
|
boolean |
hasDataTypeAttribute(java.lang.String name)
Returns true if this DataTYpe has the given attribute name.
|
boolean |
matches(java.lang.String usageString)
Returns
true if the usageString is valid syntax for the DataType, false otherwise. |
void |
validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against self's definition.
|
void |
validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates dataTypeUsage against self's definition.
|
addObjectListener, 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 DataType getBaseType()
public DataTypeAttribute[] getDataTypeAttributes()
DataTypegetDataTypeAttributes in interface DataTypepublic boolean hasDataTypeAttribute(java.lang.String name)
DataTypehasDataTypeAttribute in interface DataTypepublic DataTypeAttribute getDataTypeAttribute(java.lang.String name)
DataTypegetDataTypeAttribute in interface DataTypepublic java.lang.String getDDL(DataTypeUsage dataTypeUsage)
DataTypepublic DataTypeUsage createDefaultUsage()
DataTypecreateDefaultUsage in interface DataTypepublic DataTypeUsage createUsage(java.util.Map attributes)
DataTypecreateUsage in interface DataTypepublic void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) throws DataTypeValidationException
DataTypevalidateUsage in interface DataTypedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usageDataTypeValidationException
public void validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DefaultValueValidationException
DataTypevalidateDefaultValue in interface DataTypedefaultValue - : the default valuedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usageDefaultValueValidationExceptionprotected void copyToImpl(AbstractDBObject other, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObjectcopyToImpl in class AbstractDBObjectother - the copy being created of this objectcopyParent - 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.protected boolean equalsImpl(AbstractDBObject other)
AbstractDBObjectequalsImpl in class AbstractDBObjectpublic java.lang.String getType()
DBObjectpublic boolean matches(java.lang.String usageString)
DataTypetrue if the usageString is valid syntax for the DataType, false otherwise. Should be overridden by sub-classes to do the validation.public DataTypeUsage createUsage(java.lang.String usageString)
DataTypeDataType.matches(java.lang.String). Should be overridden by sub-classes to return an object of the sub-class type.createUsage in interface DataType