Class SDODataObjectType
- java.lang.Object
-
- org.eclipse.persistence.sdo.SDOType
-
- org.eclipse.persistence.sdo.types.SDODataObjectType
-
- All Implemented Interfaces:
Type
,Serializable
public class SDODataObjectType 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 SDODataObjectType(SDOTypeHelper sdoTypeHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List
getAliasNames()
Return a list of alias names for this Type.List
getBaseTypes()
Returns the List of base Types for this Type.String
getName()
Returns the name of the type.String
getURI()
Returns the namespace URI of the type ornull
if the type has no URI (for example it was generated from a Schema with no target namespace).boolean
isAbstract()
Indicates if this Type is abstract.boolean
isDataObjectType()
boolean
isDataType()
Indicates if this Type specifies DataTypes (true) or DataObjects (false).boolean
isOpen()
Indicates if this Type allows any form of open content.boolean
isSequenced()
Indicates if this Type specifies Sequenced DataObjects.-
Methods inherited from class org.eclipse.persistence.sdo.SDOType
addAliasName, addBaseType, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, get, getAppInfoElements, getAppInfoMap, getChangeSummaryProperty, getDeclaredProperties, getDeclaredPropertiesMap, getHelperContext, getImplClass, getImplClassName, getInstanceClass, getInstanceClassName, getInstanceProperties, getNonFinalizedMappingURIs, getNonFinalizedReferencingProps, getProperties, getPropertiesArray, getProperty, getPropertyValues, getPseudoDefault, getQName, getSubTypes, getXmlDescriptor, getXsdLocalName, getXsdType, initializeNamespaces, isBaseType, isChangeSummaryType, isFinalized, isInstance, isOpenSequencedType, isSubType, isTypeType, isWrapperType, isXsd, isXsdList, postInitialize, preInitialize, removeDeclaredProperties, setAbstract, setAliasNames, setAppInfoElements, setBaseTypes, setDataType, setFinalized, setImplClassName, setInstanceClass, setInstanceClassName, setInstanceProperty, setMixed, setNonFinalizedMappingURIs, setNonFinalizedReferencingProps, setOpen, 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, getDeclaredProperties, getInstanceClass, getInstanceProperties, getProperties, getProperty, isInstance
-
-
-
-
Constructor Detail
-
SDODataObjectType
public SDODataObjectType(SDOTypeHelper sdoTypeHelper)
-
-
Method Detail
-
getAliasNames
public List getAliasNames()
Description copied from interface:Type
Return a list of alias names for this Type.- Specified by:
getAliasNames
in interfaceType
- Overrides:
getAliasNames
in classSDOType
- Returns:
- a list of alias names for this Type.
-
getBaseTypes
public List getBaseTypes()
Description copied from interface:Type
Returns the List of base Types for this Type. The List is empty if there are no base Types. XSD, , and Java extends keyword are mapped to this list. - Specified by:
getBaseTypes
in interfaceType
- Overrides:
getBaseTypes
in classSDOType
- Returns:
- the List of base Types for this Type.
-
getName
public String getName()
Description copied from interface:Type
Returns the name of the type.
-
getURI
public String getURI()
Description copied from interface:Type
Returns the namespace URI of the type ornull
if the type has no URI (for example it was generated from a Schema with no target namespace).
-
isAbstract
public boolean isAbstract()
Description copied from interface:Type
Indicates 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:
isAbstract
in interfaceType
- Overrides:
isAbstract
in classSDOType
- Returns:
- true if this Type is abstract.
-
isDataType
public boolean isDataType()
Description copied from interface:Type
Indicates 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:
isDataType
in interfaceType
- Overrides:
isDataType
in classSDOType
- Returns:
- true if Type specifies DataTypes, false for DataObjects.
-
isOpen
public boolean isOpen()
Description copied from interface:Type
Indicates 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:Type
Indicates 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:
isSequenced
in interfaceType
- Overrides:
isSequenced
in classSDOType
- Returns:
- true if this Type specifies Sequenced DataObjects.
-
isDataObjectType
public boolean isDataObjectType()
- Overrides:
isDataObjectType
in classSDOType
-
-