public abstract class MappingAccessor extends MetadataAccessor
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
KEY_DOT_NOTATION
Dot notation key prefix.
|
protected ColumnMetadata |
m_field |
protected static java.lang.String |
VALUE_DOT_NOTATION
Dot notation value prefix.
|
m_project| Modifier | Constructor and Description |
|---|---|
protected |
MappingAccessor(MetadataAnnotation annotation,
MetadataAccessibleObject accessibleObject,
ClassAccessor classAccessor)
INTERNAL:
|
protected |
MappingAccessor(java.lang.String xmlElement)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConvert(ConvertMetadata convert)
INTERNAL:
Subclasses that support converts need to override this method otherwise
an exception will be thrown from those accessors that do not support them
when a user has defined them on that accessor.
|
protected void |
addConvertMetadata(ConvertMetadata convert)
INTERNAL:
Add a JPA convert annotation to the converts list.
|
protected void |
addFieldNameTranslation(EmbeddableMapping embeddableMapping,
java.lang.String overrideName,
DatabaseField overrideField,
MappingAccessor aggregatesAccessor)
INTERNAL:
Process an attribute override for either an embedded object mapping, or
an element collection mapping containing embeddable objects.
|
protected void |
addMapKeyConvert(ConvertMetadata convert)
INTERNAL:
Subclasses that support converts need to override this method otherwise
an exception will be thrown from those accessors that do not support them
when a user has defined them on that accessor.
|
boolean |
derivesId()
INTERNAL:
Return true is this accessor is a derived id accessor.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
For merging and overriding to work properly, all ORMetadata must be able
to compare themselves for metadata equality.
|
protected MetadataAnnotation |
getAnnotation(java.lang.String annotation)
INTERNAL:
Return the annotation if it exists.
|
protected java.util.Map<java.lang.String,AssociationOverrideMetadata> |
getAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
INTERNAL:
Process the list of association overrides into a map, merging and
overriding any association overrides where necessary with descriptor
level association overrides.
|
java.lang.String |
getAttributeName()
INTERNAL:
Return the attribute name for this accessor.
|
protected AttributeOverrideMetadata |
getAttributeOverride(java.lang.String loggingCtx)
INTERNAL:
Return the attribute override for this accessor.
|
protected java.util.Map<java.lang.String,AttributeOverrideMetadata> |
getAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
INTERNAL:
Process the list of attribute overrides into a map, merging and
overriding any attribute overrides where necessary with descriptor
level attribute overrides.
|
java.lang.String |
getAttributeType()
INTERNAL:
Used for OX mapping.
|
ClassAccessor |
getClassAccessor()
INTERNAL:
Returns the class accessor on which this mapping was defined.
|
protected ColumnMetadata |
getColumn(java.lang.String loggingCtx)
INTERNAL:
Subclasses should override this method to return the appropriate
column for their mapping.
|
protected java.util.List<ConvertMetadata> |
getConverts(java.util.List<ConvertMetadata> potentialConverts)
INTERNAL:
Given the potential converts return them for processing unless there
are overrides available from the descriptor.
|
protected DatabaseField |
getDatabaseField(DatabaseTable defaultTable,
java.lang.String loggingCtx)
INTERNAL:
Process column metadata details into a database field.
|
protected java.lang.String |
getDefaultFetchType()
INTERNAL:
|
protected DatabaseTable |
getDefaultTableForEntityMapKey()
INTERNAL:
Return the default table to hold the foreign key of a MapKey when
and Entity is used as the MapKey
|
EnumeratedMetadata |
getEnumerated(boolean isForMapKey)
INTERNAL:
Return the enumerated metadata for this accessor.
|
ColumnMetadata |
getField()
INTERNAL:
Used for OX mapping.
|
protected ForeignKeyMetadata |
getForeignKey(ForeignKeyMetadata potentialForeignKey,
MetadataDescriptor descriptor)
INTERNAL:
Return the foreign key to use with this mapping accessor.
|
java.lang.String |
getGetMethodName()
INTERNAL:
Returns the get method name of a method accessor.
|
protected java.util.List<JoinColumnMetadata> |
getJoinColumns(java.util.List<JoinColumnMetadata> potentialJoinColumns,
MetadataDescriptor descriptor)
INTERNAL:
Return the join columns to use with this mapping accessor.
|
protected java.util.List<JoinColumnMetadata> |
getJoinColumnsAndValidate(java.util.List<JoinColumnMetadata> joinColumns,
MetadataDescriptor referenceDescriptor)
INTERNAL:
This method will validate the join columns and default any where
necessary.
|
LobMetadata |
getLob(boolean isForMapKey)
INTERNAL:
Return the lob metadata for this accessor.
|
MapKeyMetadata |
getMapKey()
INTERNAL:
Return the map key if this mapping accessor employs one.
|
protected java.util.List<ConvertMetadata> |
getMapKeyConverts(java.util.List<ConvertMetadata> potentialMapKeyConverts)
INTERNAL:
Given the potential converts return them for processing unless there
are overrides available from the descriptor.
|
MetadataClass |
getMapKeyReferenceClass()
INTERNAL:
Return the map key reference class for this accessor if applicable.
|
java.lang.String |
getMapKeyReferenceClassName()
INTERNAL:
Return the map key reference class name
|
MetadataClass |
getMapKeyReferenceClassWithGenerics()
INTERNAL:
Return the map key reference class for this accessor if applicable.
|
DatabaseMapping |
getMapping()
INTERNAL:
Return the mapping that this accessor is associated to.
|
MetadataDescriptor |
getOwningDescriptor()
INTERNAL:
Return the owning descriptor of this accessor.
|
java.util.List<MetadataDescriptor> |
getOwningDescriptors()
INTERNAL:
Return the owning descriptors of this accessor.
|
MetadataClass |
getRawClass()
INTERNAL:
Return the raw class for this accessor.
|
MetadataClass |
getRawClassWithGenerics()
INTERNAL:
Return the raw class with any generic specifications for this accessor.
|
java.util.Collection<MappingAccessor> |
getReferenceAccessors()
INTERNAL:
Return the mapping accessors associated with the reference descriptor.
|
MetadataClass |
getReferenceClass()
INTERNAL:
Return the reference class for this accessor.
|
MetadataClass |
getReferenceClassFromGeneric()
INTERNAL:
Attempts to return a reference class from a generic specification.
|
java.lang.String |
getReferenceClassName()
INTERNAL:
Return the reference class name for this accessor.
|
MetadataClass |
getReferenceClassWithGenerics()
INTERNAL:
Return the reference class for this accessor.
|
protected DatabaseTable |
getReferenceDatabaseTable()
INTERNAL:
Return the reference descriptors table.
|
MetadataDescriptor |
getReferenceDescriptor()
INTERNAL:
Return the reference metadata descriptor for this accessor.
|
java.lang.String |
getSetMethodName()
INTERNAL:
Returns the set method name of a method accessor.
|
TemporalMetadata |
getTemporal(boolean isForMapKey)
INTERNAL:
Return the temporal metadata for this accessor.
|
protected boolean |
hasAttributeOverride(java.lang.String loggingCtx)
INTERNAL:
Return true if we have an attribute override for this accessor.
|
boolean |
hasAttributeType()
INTERNAL:
Those accessors that do not require a separate attribute-type
specification for VIRTUAL accessors should override this method.
|
protected boolean |
hasEnumerated(boolean isForMapKey)
INTERNAL:
Return true if this accessor has temporal metadata.
|
int |
hashCode() |
protected boolean |
hasLob(boolean isForMapKey)
INTERNAL:
Return true if this accessor has lob metadata.
|
boolean |
hasMapKey()
INTERNAL:
Method should be overridden by those accessors that accept and use a map
key.
|
protected boolean |
hasReturnInsert()
INTERNAL:
Method to check if this accessor has a ReturnInsert annotation.
|
protected boolean |
hasReturnUpdate()
INTERNAL:
Method to check if this accessor has a ReturnUpdate annotation.
|
boolean |
hasTemporal(boolean isForMapKey)
INTERNAL:
Return true if this accessor has temporal metadata.
|
void |
initXMLMappingAccessor(ClassAccessor classAccessor)
INTERNAL:
Init an xml mapping accessor with its necessary components.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isAnnotationPresent(java.lang.String annotation)
INTERNAL:
Indicates whether the specified annotation is present on the annotated
element for this accessor.
|
boolean |
isBasic()
INTERNAL:
Return true if this accessor represents a basic mapping.
|
boolean |
isBasicCollection()
INTERNAL:
Return true if this accessor represents a basic collection mapping.
|
boolean |
isBasicMap()
INTERNAL:
Return true if this accessor represents a basic map mapping.
|
boolean |
isCollectionAccessor()
INTERNAL:
Return true if this accessor represents a collection accessor.
|
boolean |
isDerivedIdClass()
INTERNAL:
Return true if this accessor is a derived id class accessor.
|
boolean |
isDirectCollection()
INTERNAL:
Return true if this accessor represents a direct collection mapping,
which include basic collection, basic map and element collection
accessors.
|
boolean |
isDirectEmbeddableCollection()
INTERNAL:
Return true if this accessor represents an element collection that
contains embeddable objects.
|
boolean |
isEmbedded()
INTERNAL:
Return true if this accessor represents an aggregate mapping.
|
boolean |
isEmbeddedId()
INTERNAL:
Return true if this accessor represents an aggregate id mapping.
|
protected boolean |
isEnumerated(MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Return true if this represents an enum type mapping.
|
boolean |
isId()
INTERNAL:
Return true if this accessor is part of the id.
|
protected boolean |
isLob(MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Return true if this accessor represents a BLOB/CLOB mapping.
|
boolean |
isManyToMany()
INTERNAL:
Return true if this accessor represents a m-m relationship.
|
boolean |
isManyToOne()
INTERNAL:
Return true if this accessor represents a m-1 relationship.
|
boolean |
isMapAccessor()
INTERNAL:
Return true if this accessor uses a Map.
|
boolean |
isMappedKeyMapAccessor()
INTERNAL:
Return true if this accessor is a mapped key map accessor.
|
boolean |
isMultitenantId()
INTERNAL:
Return true if this accessor is a multitenant id mapping.
|
boolean |
isOneToMany()
INTERNAL:
Return true if this accessor represents a 1-m relationship.
|
boolean |
isOneToOne()
INTERNAL:
Return true if this accessor represents a 1-1 relationship.
|
protected boolean |
isPrimitiveWrapperClass(MetadataClass cls)
INTERNAL:
Returns true is the given class is primitive wrapper type.
|
boolean |
isProcessed()
INTERNAL:
Return true if this accessor has been processed.
|
boolean |
isRelationship()
INTERNAL:
Return true if this accessor method represents a relationship.
|
boolean |
isSerialized(MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Return true if this accessor represents a serialized mapping.
|
protected boolean |
isTemporal(MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Return true if this represents a temporal type mapping.
|
protected boolean |
isTimeClass(MetadataClass cls) |
boolean |
isTransient()
INTERNAL:
Return true if this accessor represents a transient mapping.
|
protected boolean |
isValidSerializedType(MetadataClass cls)
INTERNAL:
Returns true if the given class is valid for SerializedObjectMapping.
|
boolean |
isVariableOneToOne()
INTERNAL:
Return true if this accessor represents a variable one to one mapping.
|
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 |
processAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides,
EmbeddableMapping embeddableMapping,
MetadataDescriptor embeddableDescriptor)
INTERNAL:
Process the association overrides for the given embeddable mapping which
is either an embedded or element collection mapping.
|
protected void |
processAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides,
AggregateObjectMapping aggregateObjectMapping,
MetadataDescriptor embeddableDescriptor)
INTERNAL:
Process the attribute overrides for the given embedded mapping.
|
protected void |
processContainerPolicyAndIndirection(ContainerMapping mapping)
INTERNAL:
Process the map metadata if this is a valid map accessor.
|
protected void |
processConvert(DatabaseMapping mapping,
java.lang.String converterName,
MetadataClass referenceClass,
boolean isForMapKey,
boolean hasConverts)
INTERNAL:
Process a Convert annotation or convert element to apply to specified
EclipseLink converter (Converter, TypeConverter, ObjectTypeConverter)
to the given mapping.
|
protected void |
processConverts(java.util.List<ConvertMetadata> converts,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process the JPA defined convert(s)
|
protected AbstractDirectMapping |
processDirectMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL:
|
protected AggregateObjectMapping |
processEmbeddableMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL:
|
protected OneToOneMapping |
processEntityMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL:
Process the map key to be an entity class.
|
protected void |
processEnumerated(EnumeratedMetadata enumerated,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process an Enumerated setting.
|
protected void |
processForeignKeyRelationship(ForeignReferenceMapping mapping,
java.util.List<JoinColumnMetadata> joinColumns,
ForeignKeyMetadata foreignKey,
MetadataDescriptor referenceDescriptor,
java.lang.String defaultFKFieldName,
DatabaseTable defaultFKTable)
INTERNAL:
Process the join columns for the owning side of a one to one mapping.
|
protected void |
processIndirection(ForeignReferenceMapping mapping)
INTERNAL:
Process the indirection (aka fetch type)
|
protected void |
processJoinFetch(java.lang.String joinFetch,
ForeignReferenceMapping mapping)
INTERNAL:
Return the mapping join fetch type.
|
protected void |
processLob(LobMetadata lob,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process a lob specification.
|
protected void |
processMapKeyClass(ContainerMapping mapping,
MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL:
Process a map key class for the given map key map accessor.
|
protected void |
processMappingConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics,
boolean isForMapKey)
INTERNAL:
Process a convert value which specifies the name of an EclipseLink
converter to process with this accessor's mapping.
|
protected void |
processMappingKeyConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics)
INTERNAL:
Process a mapping key converter either from an EclipseLink convert
specification or a JPA converter specification (map-key-convert,
map-key-temporal, map-key-enumerated) to be applied to the given mapping.
|
protected void |
processMappingValueConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics)
INTERNAL:
Process a convert value which specifies the name of an EclipseLink
converter to process with this accessor's mapping.
|
protected void |
processProperties(DatabaseMapping mapping)
INTERNAL:
Adds properties to the mapping.
|
protected void |
processProperty(DatabaseMapping mapping,
PropertyMetadata property)
INTERNAL:
Adds properties to the mapping.
|
protected void |
processReturnInsert()
INTERNAL:
Subclasses should call this method if they want the warning message or
override the method if they want/support different behavior.
|
protected void |
processReturnInsertAndUpdate()
INTERNAL:
Subclasses should call this method if they want the warning message.
|
protected void |
processReturnUpdate()
INTERNAL:
Subclasses should call this method if they want the warning message or
override the method if they want/support different behavior.
|
protected void |
processSerialized(DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process a potential serializable attribute.
|
protected void |
processSerialized(DatabaseMapping mapping,
MetadataClass referenceClass,
MetadataClass classification,
boolean isForMapKey)
INTERNAL:
Process a potential serializable attribute.
|
protected void |
processTemporal(TemporalMetadata temporal,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process a temporal type accessor.
|
protected void |
setAccessorMethods(DatabaseMapping mapping)
INTERNAL:
Set the getter and setter access methods for this accessor.
|
void |
setAttributeType(java.lang.String attributeType)
INTERNAL:
Used for OX mapping.
|
void |
setClassAccessor(ClassAccessor classAccessor)
INTERNAL:
Sets the class accessor for this mapping accessor.
|
void |
setField(ColumnMetadata column)
INTERNAL:
Used for OX mapping.
|
protected void |
setIndirectionPolicy(ContainerMapping mapping,
java.lang.String mapKey,
boolean usesIndirection)
INTERNAL:
Set the correct indirection policy on a collection mapping.
|
protected void |
setMapping(DatabaseMapping mapping)
INTERNAL:
This will do three things:
1 - process any common level metadata for all mappings.
|
protected void |
setOverrideMapping(DatabaseMapping mapping)
INTERNAL:
An override mapping is created when an association override is specified
to a relationship accessor on an embeddable class.
|
protected void |
setTemporal(TemporalMetadata metadata,
boolean isForMapKey)
INTERNAL: Set the temporal metadata for this accessor.
|
java.lang.String |
toString()
INTERNAL:
|
protected void |
updatePrimaryKeyField(MappingAccessor idAccessor,
DatabaseField overrideField)
INTERNAL:
Update the primary key field on the owning descriptor the override field
given.
|
boolean |
usesFieldAccess()
INTERNAL:
Returns true if this mapping or class uses property field.
|
protected boolean |
usesIndirection()
INTERNAL:
|
boolean |
usesPropertyAccess()
INTERNAL:
Returns true if this mapping or class uses property access.
|
boolean |
usesVirtualAccess()
INTERNAL:
Returns true if this mapping or class uses virtual access.
|
getAccess, 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, process, 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 static final java.lang.String KEY_DOT_NOTATION
protected static final java.lang.String VALUE_DOT_NOTATION
protected ColumnMetadata m_field
protected MappingAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
protected MappingAccessor(java.lang.String xmlElement)
protected void addConvert(ConvertMetadata convert)
protected void addConvertMetadata(ConvertMetadata convert)
protected void addFieldNameTranslation(EmbeddableMapping embeddableMapping,
java.lang.String overrideName,
DatabaseField overrideField,
MappingAccessor aggregatesAccessor)
protected void addMapKeyConvert(ConvertMetadata convert)
public boolean derivesId()
ObjectAccessorpublic boolean equals(java.lang.Object objectToCompare)
equals in class MetadataAccessorpublic int hashCode()
hashCode in class MetadataAccessorprotected MetadataAnnotation getAnnotation(java.lang.String annotation)
getAnnotation in class MetadataAccessorprotected java.util.Map<java.lang.String,AssociationOverrideMetadata> getAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
public java.lang.String getAttributeName()
getAttributeName in class MetadataAccessorprotected AttributeOverrideMetadata getAttributeOverride(java.lang.String loggingCtx)
protected java.util.Map<java.lang.String,AttributeOverrideMetadata> getAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
public java.lang.String getAttributeType()
public ClassAccessor getClassAccessor()
protected ColumnMetadata getColumn(java.lang.String loggingCtx)
protected java.util.List<ConvertMetadata> getConverts(java.util.List<ConvertMetadata> potentialConverts)
protected DatabaseField getDatabaseField(DatabaseTable defaultTable,
java.lang.String loggingCtx)
protected java.lang.String getDefaultFetchType()
protected DatabaseTable getDefaultTableForEntityMapKey()
public EnumeratedMetadata getEnumerated(boolean isForMapKey)
public ColumnMetadata getField()
protected ForeignKeyMetadata getForeignKey(ForeignKeyMetadata potentialForeignKey, MetadataDescriptor descriptor)
public java.lang.String getGetMethodName()
protected java.util.List<JoinColumnMetadata> getJoinColumns(java.util.List<JoinColumnMetadata> potentialJoinColumns, MetadataDescriptor descriptor)
protected java.util.List<JoinColumnMetadata> getJoinColumnsAndValidate(java.util.List<JoinColumnMetadata> joinColumns, MetadataDescriptor referenceDescriptor)
public LobMetadata getLob(boolean isForMapKey)
DirectAccessorpublic DatabaseMapping getMapping()
public MetadataDescriptor getOwningDescriptor()
public java.util.List<MetadataDescriptor> getOwningDescriptors()
public MapKeyMetadata getMapKey()
CollectionAccessor,
ElementCollectionAccessorprotected java.util.List<ConvertMetadata> getMapKeyConverts(java.util.List<ConvertMetadata> potentialMapKeyConverts)
public MetadataClass getMapKeyReferenceClass()
public java.lang.String getMapKeyReferenceClassName()
public MetadataClass getMapKeyReferenceClassWithGenerics()
public MetadataClass getRawClass()
public MetadataClass getRawClassWithGenerics()
public java.util.Collection<MappingAccessor> getReferenceAccessors()
public MetadataClass getReferenceClass()
public MetadataClass getReferenceClassWithGenerics()
public MetadataClass getReferenceClassFromGeneric()
public java.lang.String getReferenceClassName()
protected DatabaseTable getReferenceDatabaseTable()
DirectCollectionAccessor,
ManyToManyAccessorpublic MetadataDescriptor getReferenceDescriptor()
public java.lang.String getSetMethodName()
public TemporalMetadata getTemporal(boolean isForMapKey)
DirectAccessor,
CollectionAccessorprotected void setTemporal(TemporalMetadata metadata, boolean isForMapKey)
DirectAccessor,
CollectionAccessorprotected boolean hasAttributeOverride(java.lang.String loggingCtx)
public boolean hasAttributeType()
protected boolean hasEnumerated(boolean isForMapKey)
protected boolean hasLob(boolean isForMapKey)
public boolean hasMapKey()
protected boolean hasReturnInsert()
protected boolean hasReturnUpdate()
public boolean hasTemporal(boolean isForMapKey)
public void initXMLMappingAccessor(ClassAccessor classAccessor)
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class MetadataAccessorpublic boolean isAnnotationPresent(java.lang.String annotation)
isAnnotationPresent in class MetadataAccessorpublic boolean isBasic()
public boolean isBasicCollection()
public boolean isBasicMap()
public boolean isDerivedIdClass()
public boolean isDirectCollection()
public boolean isDirectEmbeddableCollection()
public boolean isCollectionAccessor()
public boolean isEmbedded()
public boolean isEmbeddedId()
protected boolean isEnumerated(MetadataClass referenceClass, boolean isForMapKey)
public boolean isId()
protected boolean isLob(MetadataClass referenceClass, boolean isForMapKey)
public boolean isManyToMany()
public boolean isManyToOne()
public boolean isMapAccessor()
public boolean isMappedKeyMapAccessor()
public boolean isMultitenantId()
public boolean isOneToMany()
public boolean isOneToOne()
protected boolean isPrimitiveWrapperClass(MetadataClass cls)
protected boolean isTimeClass(MetadataClass cls)
public boolean isProcessed()
isProcessed in class MetadataAccessorpublic boolean isRelationship()
public boolean isSerialized(MetadataClass referenceClass, boolean isForMapKey)
protected boolean isTemporal(MetadataClass referenceClass, boolean isForMapKey)
public boolean isTransient()
protected boolean isValidSerializedType(MetadataClass cls)
public boolean isVariableOneToOne()
protected void processAssociationOverride(AssociationOverrideMetadata associationOverride, EmbeddableMapping embeddableMapping, MetadataDescriptor owningDescriptor)
protected void processAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides, EmbeddableMapping embeddableMapping, MetadataDescriptor embeddableDescriptor)
protected void processAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides, AggregateObjectMapping aggregateObjectMapping, MetadataDescriptor embeddableDescriptor)
protected void processContainerPolicyAndIndirection(ContainerMapping mapping)
CollectionAccessor,
ElementCollectionAccessorprotected void processConvert(DatabaseMapping mapping,
java.lang.String converterName,
MetadataClass referenceClass,
boolean isForMapKey,
boolean hasConverts)
protected void processConverts(java.util.List<ConvertMetadata> converts, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
protected AbstractDirectMapping processDirectMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
protected AggregateObjectMapping processEmbeddableMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
protected OneToOneMapping processEntityMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
protected void processEnumerated(EnumeratedMetadata enumerated, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
protected void processIndirection(ForeignReferenceMapping mapping)
protected void processJoinFetch(java.lang.String joinFetch,
ForeignReferenceMapping mapping)
protected void processLob(LobMetadata lob, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
protected void processMapKeyClass(ContainerMapping mapping,
MappedKeyMapAccessor mappedKeyMapAccessor)
protected void processMappingConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics,
boolean isForMapKey)
protected void processMappingKeyConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics)
protected void processMappingValueConverter(DatabaseMapping mapping,
java.lang.String convertValue,
java.util.List<ConvertMetadata> converts,
MetadataClass referenceClass,
MetadataClass referenceClassWithGenerics)
protected void processForeignKeyRelationship(ForeignReferenceMapping mapping,
java.util.List<JoinColumnMetadata> joinColumns,
ForeignKeyMetadata foreignKey,
MetadataDescriptor referenceDescriptor,
java.lang.String defaultFKFieldName,
DatabaseTable defaultFKTable)
protected void processProperties(DatabaseMapping mapping)
protected void processProperty(DatabaseMapping mapping,
PropertyMetadata property)
protected void processReturnInsert()
BasicAccessorprotected void processReturnInsertAndUpdate()
protected void processReturnUpdate()
BasicAccessorprotected void processSerialized(DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
protected void processSerialized(DatabaseMapping mapping,
MetadataClass referenceClass,
MetadataClass classification,
boolean isForMapKey)
protected void processTemporal(TemporalMetadata temporal, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
protected void setAccessorMethods(DatabaseMapping mapping)
public void setAttributeType(java.lang.String attributeType)
public void setClassAccessor(ClassAccessor classAccessor)
public void setField(ColumnMetadata column)
protected void setIndirectionPolicy(ContainerMapping mapping,
java.lang.String mapKey,
boolean usesIndirection)
protected void setMapping(DatabaseMapping mapping)
protected void setOverrideMapping(DatabaseMapping mapping)
public java.lang.String toString()
toString in class java.lang.Objectprotected void updatePrimaryKeyField(MappingAccessor idAccessor, DatabaseField overrideField)
protected boolean usesIndirection()
RelationshipAccessor,
DirectAccessorpublic boolean usesPropertyAccess()
public boolean usesVirtualAccess()
public boolean usesFieldAccess()