| Modifier and Type | Method and Description |
|---|---|
| public CORE_MAPPING | |
| public void | |
| public void | addRootElement(String
a root element to specify on this Descriptor rootElementName)Add a root element name for the Descriptor This value is stored in place of a table name |
| public String | |
| public CoreAttributeGroup | |
| public String | Returns: the default root element specified on this ClassDescriptorReturn the default root element name for the ClassDescriptor This value is stored in place of a table name This value is mandatory for all root objects |
| public Field | |
| public QName | |
| public INHERITANCE_POLICY | getInheritancePolicy()
The inheritance policy is used to define how a descriptor takes part in inheritance. |
| public INHERITANCE_POLICY | |
| public INSTANTIATION_POLICY | |
| public <T> Class | |
| public String | |
| public ATTRIBUTE_ACCESSOR | |
| public CORE_MAPPING | getMappingForAttributeName(String attributeName)
Returns the mapping associated with a given attribute name. |
| public Vector | |
| public NAMESPACE_RESOLVER | Returns: the NamespaceResolver associated with this descriptorReturn the NamespaceResolver associated with this descriptor |
| public NAMESPACE_RESOLVER | |
| public OBJECT_BUILDER | |
| public Vector | |
| public List | |
| public XMLSchemaReference | Returns: the SchemaReference associated with this descriptorReturn the SchemaReference associated with this descriptor |
| public Vector | |
| public Vector | |
| public FIELD | getTypedField(FIELD field)
INTERNAL: searches first descriptor than its ReturningPolicy for an equal field |
| public boolean | hasInheritance()
INTERNAL: Return if this descriptor is involved in inheritance, (is child or parent). |
| public boolean | |
| public boolean | |
| public boolean | isSequencedObject()
INTERNAL: Indicates if the Object mapped by this descriptor is a sequenced data object and should be marshalled accordingly. |
| public boolean | |
| public void | setDefaultRootElement(String
the default root element to specify on this ClassDescriptor newDefaultRootElement)Return the default root element name for the ClassDescriptor This value is stored in place of a table name This value is mandatory for all root objects |
| public void | setInstantiationPolicy(INSTANTIATION_POLICY instantiationPolicy)
INTERNAL: Sets the instantiation policy. |
| public void | |
| public void | |
| public void | setLocationAccessor(ATTRIBUTE_ACCESSOR attributeAccessor)
INTERNAL: Set this Descriptor's location accessor. |
| public void | setNamespaceResolver(NAMESPACE_RESOLVER
the NamespaceResolver to associate with this descriptor newNamespaceResolver)Set the NamespaceResolver to associate with this descriptor |
| public void | |
| public void | |
| public void | setSchemaReference(XMLSchemaReference
the SchemaReference to associate with this descriptor newSchemaReference)Set the SchemaReference to associate with this descriptor |
| public boolean | Returns: if this descriptor should preserve unmapped dataReturn if unmapped information from the XML document should be maintained for this descriptor By default unmapped data is not preserved. |
| public Object | Returns: objectINTERNAL: Determines the appropriate object to return from the unmarshal call. |
| public Object | |
| public Object | Returns: objectINTERNAL: Determines the appropriate object to return from the unmarshal call. |
| addMapping | back to summary |
|---|---|
| public CORE_MAPPING addMapping(CORE_MAPPING mapping) Add a database mapping to the receiver. Perform any required initialization of both the mapping and the receiving descriptor as a result of adding the new mapping. | |
| addPrimaryKeyField | back to summary |
|---|---|
| public void addPrimaryKeyField(FIELD field) ADVANCED: Specify the primary key field of the descriptors table. This should be called for each field that makes up the primary key of the table. This can be used for advanced field types, such as XML nodes, or to set the field type. | |
| addRootElement | back to summary |
|---|---|
| public void addRootElement(String rootElementName) Add a root element name for the Descriptor This value is stored in place of a table name
| |
| getAlias | back to summary |
|---|---|
| public String getAlias() Get the alias | |
| getAttributeGroup | back to summary |
|---|---|
| public CoreAttributeGroup | |
| getDefaultRootElement | back to summary |
|---|---|
| public String getDefaultRootElement() Return the default root element name for the ClassDescriptor This value is stored in place of a table name This value is mandatory for all root objects
| |
| getDefaultRootElementField | back to summary |
|---|---|
| public Field | |
| getDefaultRootElementType | back to summary |
|---|---|
| public QName getDefaultRootElementType() | |
| getInheritancePolicy | back to summary |
|---|---|
| public INHERITANCE_POLICY getInheritancePolicy() The inheritance policy is used to define how a descriptor takes part in inheritance. All inheritance properties for both child and parent classes is configured in inheritance policy. Caution must be used in using this method as it lazy initializes an inheritance policy. Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. | |
| getInheritancePolicyOrNull | back to summary |
|---|---|
| public INHERITANCE_POLICY getInheritancePolicyOrNull() INTERNAL: Return the inheritance policy. | |
| getInstantiationPolicy | back to summary |
|---|---|
| public INSTANTIATION_POLICY getInstantiationPolicy() INTERNAL: Returns the instantiation policy. | |
| getJavaClass | back to summary |
|---|---|
| public <T> Class Return the java class. | |
| getJavaClassName | back to summary |
|---|---|
| public String getJavaClassName() Return the class name, used by the MW. | |
| getLocationAccessor | back to summary |
|---|---|
| public ATTRIBUTE_ACCESSOR getLocationAccessor() INTERNAL: Returns this Descriptor's location accessor, if one is defined. | |
| getMappingForAttributeName | back to summary |
|---|---|
| public CORE_MAPPING getMappingForAttributeName(String attributeName) Returns the mapping associated with a given attribute name. This can be used to find a descriptors mapping in a amendment method before the descriptor has been initialized. | |
| getMappings | back to summary |
|---|---|
| public Vector Returns mappings | |
| getNamespaceResolver | back to summary |
|---|---|
| public NAMESPACE_RESOLVER getNamespaceResolver() Return the NamespaceResolver associated with this descriptor
| |
| getNonNullNamespaceResolver | back to summary |
|---|---|
| public NAMESPACE_RESOLVER getNonNullNamespaceResolver() | |
| getObjectBuilder | back to summary |
|---|---|
| public OBJECT_BUILDER getObjectBuilder() INTERNAL: Return the object builder | |
| getPrimaryKeyFieldNames | back to summary |
|---|---|
| public Vector Return the names of all the primary keys. | |
| getPrimaryKeyFields | back to summary |
|---|---|
| public List INTERNAL: Return all the primary key fields | |
| getSchemaReference | back to summary |
|---|---|
| public XMLSchemaReference getSchemaReference() Return the SchemaReference associated with this descriptor
| |
| getTableNames | back to summary |
|---|---|
| public Vector Return the table names. | |
| getTables | back to summary |
|---|---|
| public Vector INTERNAL: Return all the tables. | |
| getTypedField | back to summary |
|---|---|
| public FIELD getTypedField(FIELD field) INTERNAL: searches first descriptor than its ReturningPolicy for an equal field | |
| hasInheritance | back to summary |
|---|---|
| public boolean hasInheritance() INTERNAL: Return if this descriptor is involved in inheritance, (is child or parent). Note If this class is part of table per class inheritance strategy this method will return false. | |
| isLazilyInitialized | back to summary |
|---|---|
| public boolean isLazilyInitialized() If true, the descriptor may be lazily initialized. This is useful if the descriptor may not get used. | |
| isResultAlwaysXMLRoot | back to summary |
|---|---|
| public boolean isResultAlwaysXMLRoot() | |
| isSequencedObject | back to summary |
|---|---|
| public boolean isSequencedObject() INTERNAL: Indicates if the Object mapped by this descriptor is a sequenced data object and should be marshalled accordingly. | |
| isWrapper | back to summary |
|---|---|
| public boolean isWrapper() | |
| setDefaultRootElement | back to summary |
|---|---|
| public void setDefaultRootElement(String newDefaultRootElement) Return the default root element name for the ClassDescriptor This value is stored in place of a table name This value is mandatory for all root objects
| |
| setInstantiationPolicy | back to summary |
|---|---|
| public void setInstantiationPolicy(INSTANTIATION_POLICY instantiationPolicy) INTERNAL: Sets the instantiation policy. | |
| setJavaClass | back to summary |
|---|---|
| public void setJavaClass(Class<?> theJavaClass) Set the Java class that this descriptor maps. Every descriptor maps one and only one class. | |
| setJavaClassName | back to summary |
|---|---|
| public void setJavaClassName(String theJavaClassName) INTERNAL: Return the java class name, used by the MW. | |
| setLocationAccessor | back to summary |
|---|---|
| public void setLocationAccessor(ATTRIBUTE_ACCESSOR attributeAccessor) INTERNAL: Set this Descriptor's location accessor. | |
| setNamespaceResolver | back to summary |
|---|---|
| public void setNamespaceResolver(NAMESPACE_RESOLVER newNamespaceResolver) Set the NamespaceResolver to associate with this descriptor
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Map<K, V> properties) INTERNAL: Set the user defined properties. | |
| setResultAlwaysXMLRoot | back to summary |
|---|---|
| public void setResultAlwaysXMLRoot(boolean resultAlwaysXMLRoot) | |
| setSchemaReference | back to summary |
|---|---|
| public void setSchemaReference(XMLSchemaReference newSchemaReference) Set the SchemaReference to associate with this descriptor
| |
| shouldPreserveDocument | back to summary |
|---|---|
| public boolean shouldPreserveDocument() Return if unmapped information from the XML document should be maintained for this descriptor By default unmapped data is not preserved.
| |
| wrapObjectInXMLRoot | back to summary |
|---|---|
| public Object wrapObjectInXMLRoot(Object object, String elementNamespaceUri, String elementLocalName, String elementPrefix, boolean forceWrap, boolean isNamespaceAware, UNMARSHALLER xmlUnmarshaller) INTERNAL: Determines the appropriate object to return from the unmarshal call. The method will either return the object created in the xmlReader.parse() call or an instance of XMLRoot. An XMLRoot instance will be returned if the DOMRecord element being unmarshalled does not equal the descriptor's default root element.
| |
| wrapObjectInXMLRoot | back to summary |
|---|---|
| public Object wrapObjectInXMLRoot(Object object, String elementNamespaceUri, String elementLocalName, String elementPrefix, String encoding, String version, boolean forceWrap, boolean isNamespaceAware, UNMARSHALLER unmarshaller) INTERNAL: | |
| wrapObjectInXMLRoot | back to summary |
|---|---|
| public Object wrapObjectInXMLRoot(UNMARSHAL_RECORD unmarshalRecord, boolean forceWrap) INTERNAL: Determines the appropriate object to return from the unmarshal call. The method will either return the object created in the xmlReader.parse() call or an instance of XMLRoot. An XMLRoot instance will be returned if the DOMRecord element being unmarshalled does not equal the descriptor's default root element.
| |