Module org.eclipse.persistence.jpa
Class SQLResultSetMappingMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.SQLResultSetMappingMetadata
INTERNAL:
Object to hold onto an sql result mapping metadata.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- all metadata mapped from XML must be initialized in the initXMLObject
method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- TopLink EJB 3.0 Reference Implementation
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.SQLResultSetMappingMetadata
(MetadataAnnotation sqlResultSetMapping, MetadataAccessor accessor) INTERNAL: Used for annotation loading.SQLResultSetMappingMetadata
(MetadataClass entityClass, MetadataAccessibleObject accessibleObject, MetadataProject project, Object location) INTERNAL: Used for result class processing. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:getName()
INTERNAL: Used for OX mapping.int
hashCode()
void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:process()
INTERNAL: Process an sql result set mapping metadata into a EclipseLink SqlResultSetMapping and store it on the session.void
setColumnResults
(List<ColumnResultMetadata> columnResults) INTERNAL: Used for OX mapping.void
setConstructorResults
(List<ConstructorResultMetadata> constructorResults) INTERNAL: Used for OX mapping.void
setEntityResults
(List<EntityResultMetadata> entityResults) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
SQLResultSetMappingMetadata
public SQLResultSetMappingMetadata()INTERNAL: Used for XML loading. -
SQLResultSetMappingMetadata
public SQLResultSetMappingMetadata(MetadataAnnotation sqlResultSetMapping, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
SQLResultSetMappingMetadata
public SQLResultSetMappingMetadata(MetadataClass entityClass, MetadataAccessibleObject accessibleObject, MetadataProject project, Object location) INTERNAL: Used for result class processing.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getColumnResults
INTERNAL: Used for OX mapping. -
getConstructorResults
INTERNAL: Used for OX mapping. -
getEntityResults
INTERNAL: Used for OX mapping. -
getIdentifier
INTERNAL:- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getName
INTERNAL: Used for OX mapping. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
process
INTERNAL: Process an sql result set mapping metadata into a EclipseLink SqlResultSetMapping and store it on the session. The order of processing the results and adding them is important to be spec compliant. -
setColumnResults
INTERNAL: Used for OX mapping. -
setConstructorResults
INTERNAL: Used for OX mapping. -
setEntityResults
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping.
-