java.lang.Object
org.eclipse.persistence.sdo.SDOType
org.eclipse.persistence.sdo.types.SDOWrapperType
- All Implemented Interfaces:
Type,Serializable
Wrapper for XML datatypes.
- Author:
- rbarkhou
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for Boolean Object datatype.static classWrapper for Boolean datatype.static classWrapper for Byte Object datatype.static classWrapper for HEX Binary datatype.static classWrapper for Bytes datatype.static classWrapper for Byte datatype.static classWrapper for Character Object datatype.static classWrapper for Character datatype.static classWrapper for Date Time datatype.static classWrapper for Date datatype.static classWrapper for Day datatype.static classWrapper for Decimal datatype.static classWrapper for Double Object datatype.static classWrapper for Double datatype.static classWrapper for Duration datatype.static classWrapper for Float Object datatype.static classWrapper for FLoat datatype.static classWrapper for Integer datatype.static classWrapper for Int Object datatype.static classWrapper for Int datatype.static classWrapper for Long Object datatype.static classWrapper for Long datatype.static classWrapper for Month Day datatype.static classWrapper for Month datatype.static classWrapper for Object datatype.static classWrapper for Short object datatype.static classWrapper for Short datatype.static classWrapper for Strings datatype.static classWrapper for String datatype.static classWrapper for Time datatype.static classWrapper for URI QName datatype.static classWrapper for URI datatype.static classWrapper for YearMonthDay datatype.static classWrapper for YearMonth datatype.static classWrapper for Year datatype.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
ConstructorsConstructorDescriptionSDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper) SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName aSchemaType) SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName[] schemaTypes) SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName[] schemaTypes, Class<? extends SDODataObject>[] implClasses) SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName aSchemaType, Class<? extends SDODataObject> implClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescriptorToProject(org.eclipse.persistence.sessions.Project project) Return a list of alias names for this Type.Returns the List of base Types for this Type.getName()Returns the name of the type.getURI()Returns the namespace URI of the type ornullif the type has no URI (for example it was generated from a Schema with no target namespace).org.eclipse.persistence.oxm.XMLDescriptorgetXmlDescriptor(QName aQName) booleanIndicates if this Type is abstract.booleanIndicates if this Type specifies DataTypes (true) or DataObjects (false).booleanINTERNAL:booleanisOpen()Indicates if this Type allows any form of open content.booleanIndicates if this Type specifies Sequenced DataObjects.booleantoString()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, isDataObjectType, isInstance, isOpenSequencedType, isSubType, isTypeType, 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, setXsdTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface commonj.sdo.Type
get, getDeclaredProperties, getInstanceClass, getInstanceProperties, getProperties, getProperty, isInstance
-
Constructor Details
-
SDOWrapperType
-
SDOWrapperType
public SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName aSchemaType) -
SDOWrapperType
public SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName aSchemaType, Class<? extends SDODataObject> implClass) -
SDOWrapperType
public SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName[] schemaTypes) -
SDOWrapperType
public SDOWrapperType(Type aPropertyType, String aTypeName, SDOTypeHelper aSDOTypeHelper, QName[] schemaTypes, Class<? extends SDODataObject>[] implClasses)
-
-
Method Details
-
getXmlDescriptor
-
getDescriptorsMap
-
addDescriptorToProject
public void addDescriptorToProject(org.eclipse.persistence.sessions.Project project) -
getAliasNames
Description copied from interface:TypeReturn a list of alias names for this Type.- Specified by:
getAliasNamesin interfaceType- Overrides:
getAliasNamesin classSDOType- Returns:
- a list of alias names for this Type.
-
getBaseTypes
Description copied from interface:TypeReturns 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:
getBaseTypesin interfaceType- Overrides:
getBaseTypesin classSDOType- Returns:
- the List of base Types for this Type.
-
getName
Description copied from interface:TypeReturns the name of the type. -
getURI
Description copied from interface:TypeReturns the namespace URI of the type ornullif 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: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.
-
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.
-
isFinalized
public boolean isFinalized()Description copied from class:SDOTypeINTERNAL:- Overrides:
isFinalizedin classSDOType
-
isWrapperType
public boolean isWrapperType()- Overrides:
isWrapperTypein classSDOType
-
toString
-