Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metadata.accessors.classes

public Class XMLAttributes

extends ORMetadata
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.config.classes.Attributes
Imports
java.util.ArrayList, .List, org.eclipse.persistence.internal.jpa.metadata.ORMetadata, org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.BasicAccessor, .BasicCollectionAccessor, .BasicMapAccessor, .ElementCollectionAccessor, .EmbeddedAccessor, .EmbeddedIdAccessor, .IdAccessor, .ManyToManyAccessor, .ManyToOneAccessor, .MappingAccessor, .OneToManyAccessor, .OneToOneAccessor, .TransformationAccessor, .TransientAccessor, .VariableOneToOneAccessor, .VersionAccessor, org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAccessibleObject, org.eclipse.persistence.internal.jpa.metadata.structures.ArrayAccessor, .StructureAccessor, org.eclipse.persistence.internal.jpa.metadata.xml.XMLEntityMappings

Object to represent all the attributes of an XML defined entity, mapped-superclass or embeddable. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be handled in the merge method. (merging is done at the accessor/mapping level) - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - methods should be preserved in alphabetical order.
Author
Guy Pelletier
Since
EclipseLink 1.0

Field Summary

Modifier and TypeField and Description
private List<ArrayAccessor>
private List<BasicCollectionAccessor>
private List<BasicMapAccessor>
private List<BasicAccessor>
private List<ElementCollectionAccessor>
private EmbeddedIdAccessor
private List<EmbeddedAccessor>
private List<IdAccessor>
private List<ManyToManyAccessor>
private List<ManyToOneAccessor>
private List<OneToManyAccessor>
private List<OneToOneAccessor>
private List<StructureAccessor>
private List<TransformationAccessor>
private List<TransientAccessor>
private List<VariableOneToOneAccessor>
private List<VersionAccessor>
Inherited from org.eclipse.persistence.internal.jpa.metadata.ORMetadata:
m_project

Constructor Summary

AccessConstructor and Description
public
XMLAttributes()

INTERNAL:

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
objectToCompare
)

Implements abstract org.eclipse.persistence.internal.jpa.metadata.ORMetadata.equals.

INTERNAL:
public List<MappingAccessor>
getAccessors()

INTERNAL: This list is not cached and should not be cached since our accessors may change in a merge.

public List<ArrayAccessor>
getArrays()

INTERNAL: Used for OX mapping.

public List<BasicCollectionAccessor>
getBasicCollections()

INTERNAL: Used for OX mapping.

public List<BasicMapAccessor>
getBasicMaps()

INTERNAL: Used for OX mapping.

public List<BasicAccessor>
getBasics()

INTERNAL: Used for OX mapping.

public List<ElementCollectionAccessor>
getElementCollections()

INTERNAL: Used for OX mapping.

public EmbeddedIdAccessor
getEmbeddedId()

INTERNAL: Used for OX mapping.

public List<EmbeddedAccessor>
getEmbeddeds()

INTERNAL: Used for OX mapping.

public List<IdAccessor>
getIds()

INTERNAL: Used for OX mapping.

public List<ManyToManyAccessor>
getManyToManys()

INTERNAL: Used for OX mapping.

public List<ManyToOneAccessor>
getManyToOnes()

INTERNAL: Used for OX mapping.

public List<OneToManyAccessor>
getOneToManys()

INTERNAL: Used for OX mapping.

public List<OneToOneAccessor>
getOneToOnes()

INTERNAL: Used for OX mapping.

public List<StructureAccessor>
getStructures()

INTERNAL: Used for OX mapping.

public List<TransformationAccessor>
getTransformations()

INTERNAL: Used for OX mapping.

public List<TransientAccessor>
getTransients()

INTERNAL: Used for OX mapping.

public List<VariableOneToOneAccessor>
getVariableOneToOnes()

INTERNAL: Used for OX mapping.

public List<VersionAccessor>
getVersions()

INTERNAL: Used for OX mapping.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public void
initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)

Overrides org.eclipse.persistence.internal.jpa.metadata.ORMetadata.initXMLObject.

INTERNAL: This is going to initialize the accessible objects.
public void
merge(ORMetadata metadata)

Overrides org.eclipse.persistence.internal.jpa.metadata.ORMetadata.merge.

INTERNAL: Since we are controlling the merging and we know we'll be comparing apples with apples, the casting is safe to assume.
public void
setArrays(List<ArrayAccessor> arrays)

INTERNAL: Used for OX mapping.

public void
setBasicCollections(List<BasicCollectionAccessor> basicCollections)

INTERNAL: Used for OX mapping.

public void
setBasicMaps(List<BasicMapAccessor> basicMaps)

INTERNAL: Used for OX mapping.

public void
setBasics(List<BasicAccessor> basics)

INTERNAL: Used for OX mapping.

public void
setElementCollections(List<ElementCollectionAccessor> elementCollections)

INTERNAL: Used for OX mapping.

public void
setEmbeddedId(EmbeddedIdAccessor embeddedId)

INTERNAL: Used for OX mapping.

public void
setEmbeddeds(List<EmbeddedAccessor> embeddeds)

INTERNAL: Used for OX mapping.

public void
setIds(List<IdAccessor> ids)

INTERNAL: Used for OX mapping.

public void
setManyToManys(List<ManyToManyAccessor> manyToManys)

INTERNAL: Used for OX mapping.

public void
setManyToOnes(List<ManyToOneAccessor> manyToOnes)

INTERNAL: Used for OX mapping.

public void
setOneToManys(List<OneToManyAccessor> oneToManys)

INTERNAL: Used for OX mapping.

public void
setOneToOnes(List<OneToOneAccessor> oneToOnes)

INTERNAL: Used for OX mapping.

public void
setStructures(List<StructureAccessor> structures)

INTERNAL: Used for OX mapping.

public void
setTransformations(List<TransformationAccessor> transformations)

INTERNAL: Used for OX mapping.

public void
setTransients(List<TransientAccessor> transients)

INTERNAL: Used for OX mapping.

public void
setVariableOneToOnes(List<VariableOneToOneAccessor> variableOneToOnes)

INTERNAL: Used for OX mapping.

public void
setVersions(List<VersionAccessor> versions)

INTERNAL: Used for OX mapping.

Inherited from org.eclipse.persistence.internal.jpa.metadata.ORMetadata:
getAccessibleObjectgetAccessibleObjectNamegetAnnotationgetBoxedTypegetDatabaseTypeEnumgetEntityMappingsgetFullyQualifiedClassNamegetIdentifiergetJavaClassgetJavaClassNamegetLoadergetLocationgetLoggergetMetadataClassgetMetadataClassgetMetadataClassgetMetadataFactorygetNamegetPrimitiveClassForNamegetProjectgetTextgetXMLElementhasIdentifierhasTextinitXMLClassNameinitXMLObjectinitXMLObjectsinitXMLTextObjectloadedFromAnnotationloadedFromEclipseLinkXMLloadedFromXMLmergeORObjectListsmergeORObjectsmergeSimpleObjectsreloadEntityreloadMappedSuperclasssetAccessibleObjectsetEntityMappingssetFieldNamesetFieldNamesetProjectshouldOverridevaluesMatchvaluesMatch

Field Detail

m_arraysback to summary
private List<ArrayAccessor> m_arrays
m_basicCollectionsback to summary
private List<BasicCollectionAccessor> m_basicCollections
m_basicMapsback to summary
private List<BasicMapAccessor> m_basicMaps
m_basicsback to summary
private List<BasicAccessor> m_basics
m_elementCollectionsback to summary
private List<ElementCollectionAccessor> m_elementCollections
m_embeddedIdback to summary
private EmbeddedIdAccessor m_embeddedId
m_embeddedsback to summary
private List<EmbeddedAccessor> m_embeddeds
m_idsback to summary
private List<IdAccessor> m_ids
m_manyToManysback to summary
private List<ManyToManyAccessor> m_manyToManys
m_manyToOnesback to summary
private List<ManyToOneAccessor> m_manyToOnes
m_oneToManysback to summary
private List<OneToManyAccessor> m_oneToManys
m_oneToOnesback to summary
private List<OneToOneAccessor> m_oneToOnes
m_structuresback to summary
private List<StructureAccessor> m_structures
m_transformationsback to summary
private List<TransformationAccessor> m_transformations
m_transientsback to summary
private List<TransientAccessor> m_transients
m_variableOneToOnesback to summary
private List<VariableOneToOneAccessor> m_variableOneToOnes
m_versionsback to summary
private List<VersionAccessor> m_versions

Constructor Detail

XMLAttributesback to summary
public XMLAttributes()

INTERNAL:

Method Detail

equalsback to summary
public boolean equals(Object objectToCompare)

Implements abstract org.eclipse.persistence.internal.jpa.metadata.ORMetadata.equals.

INTERNAL:

Parameters
objectToCompare:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getAccessorsback to summary
public List<MappingAccessor> getAccessors()

INTERNAL: This list is not cached and should not be cached since our accessors may change in a merge. The accessors list gets rebuilt every time this method is called (which should only ever be once!)

getArraysback to summary
public List<ArrayAccessor> getArrays()

INTERNAL: Used for OX mapping.

getBasicCollectionsback to summary
public List<BasicCollectionAccessor> getBasicCollections()

INTERNAL: Used for OX mapping.

getBasicMapsback to summary
public List<BasicMapAccessor> getBasicMaps()

INTERNAL: Used for OX mapping.

getBasicsback to summary
public List<BasicAccessor> getBasics()

INTERNAL: Used for OX mapping.

getElementCollectionsback to summary
public List<ElementCollectionAccessor> getElementCollections()

INTERNAL: Used for OX mapping.

getEmbeddedIdback to summary
public EmbeddedIdAccessor getEmbeddedId()

INTERNAL: Used for OX mapping.

getEmbeddedsback to summary
public List<EmbeddedAccessor> getEmbeddeds()

INTERNAL: Used for OX mapping.

getIdsback to summary
public List<IdAccessor> getIds()

INTERNAL: Used for OX mapping.

getManyToManysback to summary
public List<ManyToManyAccessor> getManyToManys()

INTERNAL: Used for OX mapping.

getManyToOnesback to summary
public List<ManyToOneAccessor> getManyToOnes()

INTERNAL: Used for OX mapping.

getOneToManysback to summary
public List<OneToManyAccessor> getOneToManys()

INTERNAL: Used for OX mapping.

getOneToOnesback to summary
public List<OneToOneAccessor> getOneToOnes()

INTERNAL: Used for OX mapping.

getStructuresback to summary
public List<StructureAccessor> getStructures()

INTERNAL: Used for OX mapping.

getTransformationsback to summary
public List<TransformationAccessor> getTransformations()

INTERNAL: Used for OX mapping.

getTransientsback to summary
public List<TransientAccessor> getTransients()

INTERNAL: Used for OX mapping.

getVariableOneToOnesback to summary
public List<VariableOneToOneAccessor> getVariableOneToOnes()

INTERNAL: Used for OX mapping.

getVersionsback to summary
public List<VersionAccessor> getVersions()

INTERNAL: Used for OX mapping.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
initXMLObjectback to summary
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)

Overrides org.eclipse.persistence.internal.jpa.metadata.ORMetadata.initXMLObject.

INTERNAL: This is going to initialize the accessible objects.

Annotations
@Override
mergeback to summary
public void merge(ORMetadata metadata)

Overrides org.eclipse.persistence.internal.jpa.metadata.ORMetadata.merge.

INTERNAL: Since we are controlling the merging and we know we'll be comparing apples with apples, the casting is safe to assume.

Annotations
@Override
setArraysback to summary
public void setArrays(List<ArrayAccessor> arrays)

INTERNAL: Used for OX mapping.

setBasicCollectionsback to summary
public void setBasicCollections(List<BasicCollectionAccessor> basicCollections)

INTERNAL: Used for OX mapping.

setBasicMapsback to summary
public void setBasicMaps(List<BasicMapAccessor> basicMaps)

INTERNAL: Used for OX mapping.

setBasicsback to summary
public void setBasics(List<BasicAccessor> basics)

INTERNAL: Used for OX mapping.

setElementCollectionsback to summary
public void setElementCollections(List<ElementCollectionAccessor> elementCollections)

INTERNAL: Used for OX mapping.

setEmbeddedIdback to summary
public void setEmbeddedId(EmbeddedIdAccessor embeddedId)

INTERNAL: Used for OX mapping.

setEmbeddedsback to summary
public void setEmbeddeds(List<EmbeddedAccessor> embeddeds)

INTERNAL: Used for OX mapping.

setIdsback to summary
public void setIds(List<IdAccessor> ids)

INTERNAL: Used for OX mapping.

setManyToManysback to summary
public void setManyToManys(List<ManyToManyAccessor> manyToManys)

INTERNAL: Used for OX mapping.

setManyToOnesback to summary
public void setManyToOnes(List<ManyToOneAccessor> manyToOnes)

INTERNAL: Used for OX mapping.

setOneToManysback to summary
public void setOneToManys(List<OneToManyAccessor> oneToManys)

INTERNAL: Used for OX mapping.

setOneToOnesback to summary
public void setOneToOnes(List<OneToOneAccessor> oneToOnes)

INTERNAL: Used for OX mapping.

setStructuresback to summary
public void setStructures(List<StructureAccessor> structures)

INTERNAL: Used for OX mapping.

setTransformationsback to summary
public void setTransformations(List<TransformationAccessor> transformations)

INTERNAL: Used for OX mapping.

setTransientsback to summary
public void setTransients(List<TransientAccessor> transients)

INTERNAL: Used for OX mapping.

setVariableOneToOnesback to summary
public void setVariableOneToOnes(List<VariableOneToOneAccessor> variableOneToOnes)

INTERNAL: Used for OX mapping.

setVersionsback to summary
public void setVersions(List<VersionAccessor> versions)

INTERNAL: Used for OX mapping.