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

public Class InterfaceAccessor

extends ClassAccessor
Class Inheritance
Imports
java.util.HashSet, org.eclipse.persistence.internal.jpa.metadata.MetadataProject, org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor, org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotation, .MetadataClass

An interface accessor. This is kinda forward thinking. I assume once we get into full interface support etc. this class will handle much more and will map directly to an interface schema element from the eclipselink orm schema. Things that should or could be mapped on this interface are: - alias - query keys 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 HashSet<VariableOneToOneAccessor>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addEntityAccessor(EntityAccessor accessor)

INTERNAL: Add the given entity accessor to this interface's list of variable one to one accessors.

public void
addQueryKey(String queryKeyName)

INTERNAL: Query keys are stored internally in a map (keyed on the query key name).

public void
addVariableOneToOneAccessor(VariableOneToOneAccessor accessor)

INTERNAL: Add a variable one to one accessor for this interface.

public void
public void
Inherited from org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor:
addAccessoraddAccessorFieldsaddAccessorMethodsaddAccessorsaddPotentialEmbeddableAccessoraddPotentialMappedSuperclassbuildAccessorclearMappedSuperclassesAndInheritanceParentsclearPreProcessedequalsexcludeDefaultMappingsgetAccessibleFieldgetAccessibleMethodgetAccessibleVirtualMethodgetAccessTypegetAnnotationgetAssociationOverridesgetAttributeOverridesgetAttributesgetChangeTrackinggetClassNamegetCloneCopyPolicygetCopyPolicygetCustomCopyPolicygetCustomizerClassgetCustomizerClassNamegetDescriptiongetExcludeDefaultMappingsgetIdentifiergetInstantiationCopyPolicygetJavaClassgetJavaClassNamegetMappedSuperclassesgetMetadataCompletegetNoSqlgetOracleArrayTypesgetOracleObjectTypesgetOwningDescriptorgetOwningDescriptorsgetParentClassgetParentClassNamegetPLSQLRecordsgetPLSQLTablesgetStructhasDerivedIdhashCodehasParentClassignoreAnnotationsinitXMLClassAccessorinitXMLObjectisAnnotationPresentisClassAccessorisEmbeddableAccessorisEntityAccessorisMappedSuperclassisMetadataCompleteisPreProcessedisProcessedmergepreProcesspreProcessForCanonicalModelpreProcessMappedSuperclassMetadataprocessAssociationOverrideprocessAssociationOverridesprocessAttributeOverrideprocessAttributeOverridesprocessChangeTrackingprocessComplexMetadataTypesprocessCopyPolicyprocessCustomizerprocessDerivedIdprocessMappedSuperclassMetadataprocessMappingAccessorsprocessNoSqlprocessParentClassprocessPropertiesprocessStructprocessVirtualClassresolveGenericTypessetAssociationOverridessetAttributeOverridessetAttributessetChangeTrackingsetClassNamesetCloneCopyPolicysetCustomCopyPolicysetCustomizerClassNamesetDescriptionsetExcludeDefaultMappingssetInstantiationCopyPolicysetIsPreProcessedsetIsProcessedsetJavaClasssetMetadataCompletesetNoSqlsetOracleArrayTypessetOracleObjectTypessetParentClasssetParentClassNamesetPLSQLRecordssetPLSQLTablessetStructtoStringusesFieldAccessusesPropertyAccessusesVirtualAccess

Field Detail

m_variableOneToOneAccessorsback to summary
private HashSet<VariableOneToOneAccessor> m_variableOneToOneAccessors

Constructor Detail

InterfaceAccessorback to summary
public InterfaceAccessor(MetadataAnnotation annotation, MetadataClass cls, MetadataProject project)

INTERNAL:

Method Detail

addEntityAccessorback to summary
public void addEntityAccessor(EntityAccessor accessor)

INTERNAL: Add the given entity accessor to this interface's list of variable one to one accessors.

addQueryKeyback to summary
public void addQueryKey(String queryKeyName)

INTERNAL: Query keys are stored internally in a map (keyed on the query key name). Therefore, adding the same query key name multiple times (for each variable one to one accessor to this interface) will not cause a problem.

addVariableOneToOneAccessorback to summary
public void addVariableOneToOneAccessor(VariableOneToOneAccessor accessor)

INTERNAL: Add a variable one to one accessor for this interface. Those entities that implement the interface on the accessor will need to make sure they add themselves to the class indicator list. See the process method below which is called from MetadataProject processing.

processback to summary
public void process()

Overrides org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.process.

INTERNAL:

Annotations
@Override
processAccessTypeback to summary
public void processAccessType()

Implements abstract org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.processAccessType.

INTERNAL:

Annotations
@Override