Module org.eclipse.persistence.sdo
Class SDOChangeSummaryType
java.lang.Object
org.eclipse.persistence.sdo.SDOType
org.eclipse.persistence.sdo.types.SDOChangeSummaryType
- All Implemented Interfaces:
Type,Serializable
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the specified instance property of this Type.Return a list of alias names for this Type.Returns the List of base Types for this Type.Returns the Properties declared in this Type as opposed to those declared in base Types.Returns a read-only List of instance Properties available on this Type.getName()Returns the name of the type.Returns the List of thePropertiesof this type.getProperty(String propertyName) Returns fromall the Propertiesof this type, the one with the specified name.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).booleanIndicates if this Type is abstract.booleanbooleanIndicates 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.booleanIndicates if this Type specifies Sequenced DataObjects.Methods inherited from class org.eclipse.persistence.sdo.SDOType
addAliasName, addBaseType, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, addDeclaredProperty, getAppInfoElements, getAppInfoMap, getChangeSummaryProperty, getDeclaredPropertiesMap, getHelperContext, getImplClass, getImplClassName, getInstanceClass, getInstanceClassName, getNonFinalizedMappingURIs, getNonFinalizedReferencingProps, getPropertiesArray, getPropertyValues, getPseudoDefault, getQName, getSubTypes, getXmlDescriptor, getXsdLocalName, getXsdType, initializeNamespaces, isBaseType, isDataObjectType, isFinalized, 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, setXsdTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface commonj.sdo.Type
getInstanceClass
-
Constructor Details
-
SDOChangeSummaryType
-
-
Method Details
-
get
Description copied from interface:TypeReturns the value of the specified instance property of this Type.- Specified by:
getin interfaceType- Overrides:
getin classSDOType- Parameters:
property- one of the properties returned byType.getInstanceProperties().- Returns:
- the value of the specified property.
- See Also:
-
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.
-
getDeclaredProperties
Description copied from interface:TypeReturns the Properties declared in this Type as opposed to those declared in base Types.- Specified by:
getDeclaredPropertiesin interfaceType- Overrides:
getDeclaredPropertiesin classSDOType- Returns:
- the Properties declared in this Type.
-
getInstanceProperties
Description copied from interface:TypeReturns a read-only List of instance Properties available on this Type.This list includes, at a minimum, any open content properties (extensions) added to the object before
defining the Type's Type. Implementations may, but are not required to in the 2.1 version of SDO, provide additional instance properties.- Specified by:
getInstancePropertiesin interfaceType- Overrides:
getInstancePropertiesin classSDOType- Returns:
- the List of instance Properties on this Type.
-
getName
Description copied from interface:TypeReturns the name of the type. -
getProperties
Description copied from interface:TypeReturns the List of thePropertiesof this type.The expression
type.getProperties().indexOf(property)
yields the property's index relative to this type. As such, these expressions are equivalent:dataObject.get(i) dataObject.get((Property)dataObject.getType().getProperties().get(i));- Specified by:
getPropertiesin interfaceType- Overrides:
getPropertiesin classSDOType- Returns:
- the Properties of the type.
- See Also:
-
getProperty
Description copied from interface:TypeReturns fromall the Propertiesof this type, the one with the specified name. As such, these expressions are equivalent:dataObject.get("name") dataObject.get(dataObject.getType().getProperty("name"))- Specified by:
getPropertyin interfaceType- Overrides:
getPropertyin classSDOType- Returns:
- the Property with the specified name.
- See Also:
-
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.
-
isInstance
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:
-
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.
-
isChangeSummaryType
public boolean isChangeSummaryType()- Overrides:
isChangeSummaryTypein classSDOType
-