- java.lang.Object
-
- org.eclipse.persistence.sdo.SDOType
-
- org.eclipse.persistence.sdo.types.SDODataType
-
- All Implemented Interfaces:
Type,Serializable
public class SDODataType extends SDOType implements Type
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.persistence.sdo.SDOType
SDOType.TypeInstantiationPolicy
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.sdo.SDOType
aHelperContext, isDataType, javaImplClass, xmlDescriptor
-
-
Constructor Summary
Constructors Constructor Description SDODataType(String aUri, String aName, Class<?> aClass, SDOTypeHelper sdoTypeHelper)SDODataType(String aUri, String aName, Class<?> aClass, SDOTypeHelper sdoTypeHelper, Object aPseudoDefault)SDODataType(String aUri, String aName, SDOTypeHelper sdoTypeHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddOpenMappings()ObjectgetPseudoDefault()INTERNAL: Return the wrapped initial value for the primitive numeric (when not defined) See p.45 of Java Spec 4th edition.booleanisAbstract()Indicates if this Type is abstract.booleanisDataType()Indicates if this Type specifies DataTypes (true) or DataObjects (false).booleanisInstance(Object object)Returns whether the specified object is an instance of this type.booleanisOpen()Indicates if this Type allows any form of open content.booleanisSequenced()Indicates if this Type specifies Sequenced DataObjects.voidsetOpen(boolean bOpen)INTERNAL: Make this Type an opened Type to allow open content by assigning true value or a Type not to accept any additional properties by assigning false value,SDOType.isOpen().-
Methods inherited from class org.eclipse.persistence.sdo.SDOType
addAliasName, addBaseType, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, get, getAliasNames, getAppInfoElements, getAppInfoMap, getBaseTypes, getChangeSummaryProperty, getDeclaredProperties, getDeclaredPropertiesMap, getHelperContext, getImplClass, getImplClassName, getInstanceClass, getInstanceClassName, getInstanceProperties, getName, getNonFinalizedMappingURIs, getNonFinalizedReferencingProps, getProperties, getPropertiesArray, getProperty, getPropertyValues, getQName, getSubTypes, getURI, getXmlDescriptor, getXsdLocalName, getXsdType, initializeNamespaces, isBaseType, isChangeSummaryType, isDataObjectType, isFinalized, isOpenSequencedType, isSubType, isTypeType, isWrapperType, isXsd, isXsdList, postInitialize, preInitialize, removeDeclaredProperties, setAbstract, setAliasNames, setAppInfoElements, setBaseTypes, setDataType, setFinalized, setImplClassName, setInstanceClass, setInstanceClassName, setInstanceProperty, setMixed, setNonFinalizedMappingURIs, setNonFinalizedReferencingProps, setPropertyValues, setPseudoDefault, setQName, setSequenced, setSubTypes, setupInheritance, setXmlDescriptor, setXsd, setXsdList, setXsdLocalName, setXsdType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface commonj.sdo.Type
get, getAliasNames, getBaseTypes, getDeclaredProperties, getInstanceClass, getInstanceProperties, getName, getProperties, getProperty, getURI
-
-
-
-
Constructor Detail
-
SDODataType
public SDODataType(String aUri, String aName, SDOTypeHelper sdoTypeHelper)
-
SDODataType
public SDODataType(String aUri, String aName, Class<?> aClass, SDOTypeHelper sdoTypeHelper)
-
SDODataType
public SDODataType(String aUri, String aName, Class<?> aClass, SDOTypeHelper sdoTypeHelper, Object aPseudoDefault)
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
Description copied from interface:TypeIndicates if this Type is abstract. If true, this Type cannot be instantiated. Abstract types cannot be used in DataObject or DataFactory create methods.- Specified by:
isAbstractin interfaceType- Overrides:
isAbstractin classSDOType- Returns:
- true if this Type is abstract.
-
isDataType
public boolean isDataType()
Description copied from interface:TypeIndicates if this Type specifies DataTypes (true) or DataObjects (false). When false, any object that is an instance of this type also implements the DataObject interface. True for simple types such as Strings and numbers. For any object:isInstance(object) && !isDataType() implies DataObject.class.isInstance(object) returns true.
- Specified by:
isDataTypein interfaceType- Overrides:
isDataTypein classSDOType- Returns:
- true if Type specifies DataTypes, false for DataObjects.
-
isInstance
public boolean isInstance(Object object)
Description copied from interface:TypeReturns whether the specified object is an instance of this type.- Specified by:
isInstancein interfaceType- Overrides:
isInstancein classSDOType- Parameters:
object- the object in question.- Returns:
trueif the object is an instance.- See Also:
Class.isInstance(java.lang.Object)
-
isOpen
public boolean isOpen()
Description copied from interface:TypeIndicates if this Type allows any form of open content. If false, dataObject.getInstanceProperties() must be the same as dataObject.getType().getProperties() for any DataObject dataObject of this Type.
-
isSequenced
public boolean isSequenced()
Description copied from interface:TypeIndicates if this Type specifies Sequenced DataObjects. Sequenced DataObjects are used when the order of values between Properties must be preserved. When true, a DataObject will return a Sequence. For example,Sequence elements = dataObject.
getSequence();- Specified by:
isSequencedin interfaceType- Overrides:
isSequencedin classSDOType- Returns:
- true if this Type specifies Sequenced DataObjects.
-
getPseudoDefault
public Object getPseudoDefault()
Description copied from class:SDOTypeINTERNAL: Return the wrapped initial value for the primitive numeric (when not defined) See p.45 of Java Spec 4th edition. See p.85 Sect 9.3 of the SDO Spec.- Overrides:
getPseudoDefaultin classSDOType- Returns:
- aDefault Object (primitive numerics) or null (DataObjects, String, Lists)
-
addOpenMappings
protected void addOpenMappings()
-
setOpen
public void setOpen(boolean bOpen)
Description copied from class:SDOTypeINTERNAL: Make this Type an opened Type to allow open content by assigning true value or a Type not to accept any additional properties by assigning false value,SDOType.isOpen().
-
-