public abstract class ObjectAccessor extends RelationshipAccessor
m_referenceClassKEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONm_project| Modifier | Constructor and Description |
|---|---|
protected |
ObjectAccessor(MetadataAnnotation annotation,
MetadataAnnotatedElement annotatedElement,
ClassAccessor classAccessor)
INTERNAL:
|
protected |
ObjectAccessor(java.lang.String xmlElement)
INTERNAL:
Used for OX mapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
derivesId()
INTERNAL:
Return true is this accessor is a derived id accessor.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
java.lang.String |
getAttributeType()
INTERNAL:
The attribute type for virtual object accessors is the target entity.
|
java.lang.String |
getDefaultFetchType()
INTERNAL:
Return the default fetch type for an object mapping.
|
java.lang.Boolean |
getId()
INTERNAL:
|
java.lang.String |
getMapsId()
INTERNAL:
Used for OX mapping.
|
java.lang.Boolean |
getOptional()
INTERNAL:
Used for OX mapping.
|
PrimaryKeyForeignKeyMetadata |
getPrimaryKeyForeignKey()
INTERNAL:
Used for OX mapping.
|
java.util.List<PrimaryKeyJoinColumnMetadata> |
getPrimaryKeyJoinColumns()
INTERNAL:
Used for OX mapping.
|
MetadataClass |
getReferenceClass()
INTERNAL:
If a target entity is specified in metadata, it will be set as the
reference class, otherwise we will use the raw class.
|
protected MetadataClass |
getSimplePKType()
INTERNAL:
Used to process primary keys and DerivedIds.
|
boolean |
hasAttributeType()
INTERNAL:
Object accessors don't require a separate attribute-type specification
in XML, instead they can use the reference class to determine the
attribute-type.
|
int |
hashCode() |
protected boolean |
hasId()
INTERNAL:
|
protected boolean |
hasMapsId()
INTERNAL:
|
protected ObjectReferenceMapping |
initManyToOneMapping()
INTERNAL:
Initialize a ManyToOneMapping.
|
protected ObjectReferenceMapping |
initOneToOneMapping()
INTERNAL:
Initialize a OneToOneMapping.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isOneToOnePrimaryKeyRelationship()
INTERNAL:
Return true if this accessor represents a 1-1 primary key relationship.
|
boolean |
isOptional()
INTERNAL:
|
protected void |
processAssociationOverride(AssociationOverrideMetadata associationOverride,
EmbeddableMapping embeddableMapping,
DatabaseTable defaultTable,
MetadataDescriptor owningDescriptor)
INTERNAL:
Process an association override for either an embedded object mapping,
or a map mapping (element-collection, 1-M and M-M) containing an
embeddable object as the value or key.
|
protected void |
processAssociationOverride(AssociationOverrideMetadata associationOverride,
EmbeddableMapping embeddableMapping,
MetadataDescriptor owningDescriptor)
INTERNAL:
Process an association override for either an embedded object mapping,
or a map mapping (element-collection, 1-M and M-M) containing an
embeddable object as the value or key.
|
protected void |
processForeignKeyRelationship(ObjectReferenceMapping mapping)
INTERNAL:
Process the join columns for the owning side of a one to one mapping.
|
protected void |
processId(OneToOneMapping mapping)
INTERNAL:
Used to process primary keys and DerivedIds.
|
protected void |
processMapsId(OneToOneMapping oneToOneMapping)
INTERNAL:
Process the mapping keys from the maps id value.
|
protected void |
processMapsIdFields(OneToOneMapping oneToOneMapping,
EmbeddedIdAccessor embeddedIdAccessor,
MappingAccessor mapsIdAccessor)
INTERNAL:
We're going to add field name translations where necessary.
|
protected void |
processOneToOnePrimaryKeyRelationship(OneToOneMapping mapping)
INTERNAL:
Process the primary key join columns for the owning side of a one to one
mapping.
|
protected void |
processOwningMappingKeys(OneToOneMapping mapping)
INTERNAL:
Process the the correct metadata for the owning side of a one to one
mapping.
|
void |
setId(java.lang.Boolean id)
INTERNAL:
Used for OX mapping.
|
void |
setMapsId(java.lang.String mapsId)
INTERNAL:
Used for OX mapping.
|
void |
setOptional(java.lang.Boolean isOptional)
INTERNAL:
Used for OX mapping.
|
void |
setPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)
INTERNAL:
Used for OX mapping.
|
void |
setPrimaryKeyJoinColumns(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)
INTERNAL:
Used for OX mapping.
|
addJoinTableRelationKeyFields, getBatchFetch, getCascade, getCascadeOnDelete, getDefaultTableForEntityMapKey, getFetch, getForeignKey, getJoinColumns, getJoinFetch, getJoinFields, getJoinTable, getJoinTableMetadata, getLoggingContext, getMappedBy, getNonCacheable, getOrphanRemoval, getOwningMapping, getPrivateOwned, getReferenceDescriptor, getTargetEntity, getTargetEntityName, hasJoinTable, hasMappedBy, isCascadeOnDelete, isLazy, isNonCacheable, isOrphanRemoval, isPrivateOwned, isValueHolderInterface, process, processBatchFetch, processCascadeTypes, processJoinTable, processMappedByRelationTable, processOrphanRemoval, processRelationshipMapping, setAccessorMethods, setBatchFetch, setCascade, setCascadeOnDelete, setFetch, setForeignKey, setJoinColumns, setJoinFetch, setJoinFields, setJoinTable, setMappedBy, setNonCacheable, setOrphanRemoval, setPrivateOwned, setTargetEntity, setTargetEntityName, usesIndirectionaddConvert, addConvertMetadata, addFieldNameTranslation, addMapKeyConvert, getAnnotation, getAssociationOverrides, getAttributeName, getAttributeOverride, getAttributeOverrides, getClassAccessor, getColumn, getConverts, getDatabaseField, getEnumerated, getField, getForeignKey, getGetMethodName, getJoinColumns, getJoinColumnsAndValidate, getLob, getMapKey, getMapKeyConverts, getMapKeyReferenceClass, getMapKeyReferenceClassName, getMapKeyReferenceClassWithGenerics, getMapping, getOwningDescriptor, getOwningDescriptors, getRawClass, getRawClassWithGenerics, getReferenceAccessors, getReferenceClassFromGeneric, getReferenceClassName, getReferenceClassWithGenerics, getReferenceDatabaseTable, getSetMethodName, getTemporal, hasAttributeOverride, hasEnumerated, hasLob, hasMapKey, hasReturnInsert, hasReturnUpdate, hasTemporal, initXMLMappingAccessor, isAnnotationPresent, isBasic, isBasicCollection, isBasicMap, isCollectionAccessor, isDerivedIdClass, isDirectCollection, isDirectEmbeddableCollection, isEmbedded, isEmbeddedId, isEnumerated, isId, isLob, isManyToMany, isManyToOne, isMapAccessor, isMappedKeyMapAccessor, isMultitenantId, isOneToMany, isOneToOne, isPrimitiveWrapperClass, isProcessed, isRelationship, isSerialized, isTemporal, isTimeClass, isTransient, isValidSerializedType, isVariableOneToOne, processAssociationOverrides, processAttributeOverrides, processContainerPolicyAndIndirection, processConvert, processConverts, processDirectMapKeyClass, processEmbeddableMapKeyClass, processEntityMapKeyClass, processEnumerated, processForeignKeyRelationship, processIndirection, processJoinFetch, processLob, processMapKeyClass, processMappingConverter, processMappingKeyConverter, processMappingValueConverter, processProperties, processProperty, processReturnInsert, processReturnInsertAndUpdate, processReturnUpdate, processSerialized, processSerialized, processTemporal, setAttributeType, setClassAccessor, setField, setIndirectionPolicy, setMapping, setOverrideMapping, setTemporal, toString, updatePrimaryKeyField, usesFieldAccess, usesPropertyAccess, usesVirtualAccessgetAccess, getAccessibleObject, getAccessMethods, getAnnotatedElement, getAnnotatedElementName, getAnnotation, getConverters, getDefaultAttributeName, getDescriptor, getDescriptorJavaClass, getHashPartitioning, getIdentifier, getJavaClass, getJavaClassName, getName, getObjectTypeConverters, getPartitioned, getPartitioning, getPinnedPartitioning, getProperties, getRangePartitioning, getReferencedField, getReferencedField, getReplicationPartitioning, getRoundRobinPartitioning, getSerializedConverters, getStructConverters, getTypeConverters, getUnionPartitioning, getUpperCaseShortJavaClassName, getValue, getValue, getValuePartitioning, hasAccess, hasAccessMethods, initAccess, initXMLAccessor, isAnnotationPresent, merge, processConverters, processCustomConverters, processObjectTypeConverters, processPartitioned, processPartitioning, processPrimaryKeyJoinColumns, processSerializedConverters, processStructConverters, processTable, processTypeConverters, setAccess, setAccessMethods, setConverters, setDescriptor, setHashPartitioning, setName, setObjectTypeConverters, setPartitioned, setPartitioning, setPinnedPartitioning, setProperties, setRangePartitioning, setReplicationPartitioning, setRoundRobinPartitioning, setSerializedConverters, setStructConverters, setTypeConverters, setUnionPartitioning, setValuePartitioninggetAccessibleObjectName, 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, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatchprotected ObjectAccessor(java.lang.String xmlElement)
protected ObjectAccessor(MetadataAnnotation annotation, MetadataAnnotatedElement annotatedElement, ClassAccessor classAccessor)
public boolean equals(java.lang.Object objectToCompare)
equals in class RelationshipAccessorpublic int hashCode()
hashCode in class RelationshipAccessorpublic boolean derivesId()
derivesId in class MappingAccessorObjectAccessorpublic java.lang.String getAttributeType()
getAttributeType in class MappingAccessorpublic java.lang.String getDefaultFetchType()
getDefaultFetchType in class RelationshipAccessorpublic java.lang.Boolean getId()
public java.lang.String getMapsId()
public PrimaryKeyForeignKeyMetadata getPrimaryKeyForeignKey()
public java.util.List<PrimaryKeyJoinColumnMetadata> getPrimaryKeyJoinColumns()
public java.lang.Boolean getOptional()
public MetadataClass getReferenceClass()
getReferenceClass in class MappingAccessorprotected MetadataClass getSimplePKType()
public boolean hasAttributeType()
hasAttributeType in class MappingAccessorprotected boolean hasId()
protected boolean hasMapsId()
protected ObjectReferenceMapping initManyToOneMapping()
protected ObjectReferenceMapping initOneToOneMapping()
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class RelationshipAccessorpublic boolean isOneToOnePrimaryKeyRelationship()
public boolean isOptional()
protected void processAssociationOverride(AssociationOverrideMetadata associationOverride, EmbeddableMapping embeddableMapping, MetadataDescriptor owningDescriptor)
processAssociationOverride in class MappingAccessorprotected void processAssociationOverride(AssociationOverrideMetadata associationOverride, EmbeddableMapping embeddableMapping, DatabaseTable defaultTable, MetadataDescriptor owningDescriptor)
protected void processId(OneToOneMapping mapping)
protected void processMapsId(OneToOneMapping oneToOneMapping)
protected void processMapsIdFields(OneToOneMapping oneToOneMapping,
EmbeddedIdAccessor embeddedIdAccessor,
MappingAccessor mapsIdAccessor)
protected void processForeignKeyRelationship(ObjectReferenceMapping mapping)
protected void processOneToOnePrimaryKeyRelationship(OneToOneMapping mapping)
protected void processOwningMappingKeys(OneToOneMapping mapping)
public void setId(java.lang.Boolean id)
public void setMapsId(java.lang.String mapsId)
public void setOptional(java.lang.Boolean isOptional)
public void setPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)
public void setPrimaryKeyJoinColumns(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)