public abstract class CollectionAccessor extends RelationshipAccessor implements MappedKeyMapAccessor
m_referenceClassKEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONm_project| Modifier | Constructor and Description |
|---|---|
protected |
CollectionAccessor(MetadataAnnotation annotation,
MetadataAccessibleObject accessibleObject,
ClassAccessor classAccessor)
INTERNAL:
|
protected |
CollectionAccessor(java.lang.String xmlElement)
INTERNAL:
Used for OX mapping.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAssociationOverride(AssociationOverrideMetadata associationOverride)
INTERNAL:
Add the association override to our map key attribute overrides list.
|
protected void |
addAttributeOverride(AttributeOverrideMetadata attributeOverride)
INTERNAL:
Add the attribute override to our map key attribute overrides list.
|
void |
addMapKeyConvert(ConvertMetadata convert)
INTERNAL:
A map key convert from an annotation specification.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
protected ColumnMetadata |
getColumn(java.lang.String loggingCtx)
INTERNAL:
Return the map key column for this accessor.
|
java.lang.String |
getDefaultFetchType()
INTERNAL:
Return the default fetch type for a collection mapping.
|
java.lang.Boolean |
getDeleteAll()
INTERNAL:
Used for OX mapping.
|
EnumeratedMetadata |
getEnumerated(boolean isForMapKey)
INTERNAL:
Return the enumerated metadata for this accessor.
|
MapKeyMetadata |
getMapKey()
INTERNAL:
Used for OX mapping.
|
java.util.List<AssociationOverrideMetadata> |
getMapKeyAssociationOverrides()
INTERNAL:
Used for OX mapping.
|
java.util.List<AttributeOverrideMetadata> |
getMapKeyAttributeOverrides()
INTERNAL:
Used for OX mapping.
|
MetadataClass |
getMapKeyClass()
INTERNAL:
|
java.lang.String |
getMapKeyClassName()
INTERNAL:
Used for OX mapping.
|
MetadataClass |
getMapKeyClassWithGenerics()
INTERNAL:
Future: this method is where we would provide a more explicit reference
class to support an auto-apply jpa converter.
|
ColumnMetadata |
getMapKeyColumn()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getMapKeyConvert()
INTERNAL:
|
java.util.List<ConvertMetadata> |
getMapKeyConverts()
INTERNAL:
Used for OX mapping.
|
EnumeratedMetadata |
getMapKeyEnumerated()
INTERNAL:
Used for OX mapping.
|
ForeignKeyMetadata |
getMapKeyForeignKey()
INTERNAL:
Used for OX mapping.
|
java.util.List<JoinColumnMetadata> |
getMapKeyJoinColumns()
INTERNAL:
Used for OX mapping.
|
TemporalMetadata |
getMapKeyTemporal()
INTERNAL:
Used for OX mapping.
|
OrderByMetadata |
getOrderBy()
INTERNAL:
Used for OX mapping.
|
protected OrderColumnMetadata |
getOrderColumn()
INTERNAL:
Used for OX mapping.
|
MetadataClass |
getReferenceClass()
INTERNAL:
If a targetEntity is specified in metadata, it will be set as the
reference class, otherwise we will look to extract one from generics.
|
protected DatabaseTable |
getReferenceDatabaseTable()
INTERNAL:
Return the reference table for this accessor.
|
TemporalMetadata |
getTemporal(boolean isForMapKey)
INTERNAL:
Return the temporal metadata for this accessor.
|
boolean |
hasEnumerated(boolean isForMapKey)
INTERNAL:
Return true if this accessor has enumerated metadata.
|
int |
hashCode() |
boolean |
hasMapKey()
INTERNAL:
|
boolean |
hasTemporal(boolean isForMapKey)
INTERNAL:
Return true if this accessor has temporal metadata.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isCollectionAccessor()
INTERNAL:
Return true if this accessor represents a collection accessor.
|
boolean |
isDeleteAll()
INTERNAL:
Used by our XML writing facility.
|
void |
process()
INTERNAL:
This process should do any common validation processing of collection
accessors.
|
protected void |
process(CollectionMapping mapping)
Configure the CollectionMapping properties based on the metadata.
|
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 |
processEISOneToManyMapping(EISOneToManyMapping mapping)
INTERNAL:
Configure the EISOneToManyMapping properties based on the metadata.
|
void |
setDeleteAll(java.lang.Boolean deleteAll)
INTERNAL:
Used for OX mapping.
|
void |
setMapKey(MapKeyMetadata mapKey)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyAssociationOverrides(java.util.List<AssociationOverrideMetadata> mapKeyAssociationOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyAttributeOverrides(java.util.List<AttributeOverrideMetadata> mapKeyAttributeOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyClass(MetadataClass mapKeyClass)
INTERNAL:
|
void |
setMapKeyClassName(java.lang.String mapKeyClassName)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyColumn(ColumnMetadata mapKeyColumn)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyConverts(java.util.List<ConvertMetadata> mapKeyConverts)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyEnumerated(EnumeratedMetadata mapKeyEnumerated)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyForeignKey(ForeignKeyMetadata mapKeyForeignKey)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyJoinColumns(java.util.List<JoinColumnMetadata> mapKeyJoinColumns)
INTERNAL:
Used for OX mapping.
|
void |
setMapKeyTemporal(TemporalMetadata mapKeyTemporal)
INTERNAL:
Used for OX mapping.
|
void |
setOrderBy(OrderByMetadata orderBy)
INTERNAL:
Used for OX mapping.
|
void |
setOrderColumn(OrderColumnMetadata orderColumn)
INTERNAL:
Used for OX mapping.
|
void |
setTemporal(TemporalMetadata metadata,
boolean isForMapKey)
INTERNAL: Set the temporal metadata for this accessor.
|
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, 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, derivesId, getAnnotation, getAssociationOverrides, getAttributeName, getAttributeOverride, getAttributeOverrides, getAttributeType, getClassAccessor, getConverts, getDatabaseField, getField, getForeignKey, getGetMethodName, getJoinColumns, getJoinColumnsAndValidate, getLob, getMapKeyConverts, getMapKeyReferenceClass, getMapKeyReferenceClassName, getMapKeyReferenceClassWithGenerics, getMapping, getOwningDescriptor, getOwningDescriptors, getRawClass, getRawClassWithGenerics, getReferenceAccessors, getReferenceClassFromGeneric, getReferenceClassName, getReferenceClassWithGenerics, getSetMethodName, hasAttributeOverride, hasAttributeType, hasLob, hasReturnInsert, hasReturnUpdate, initXMLMappingAccessor, isAnnotationPresent, isBasic, isBasicCollection, isBasicMap, 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, 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 CollectionAccessor(java.lang.String xmlElement)
protected CollectionAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
protected void addAssociationOverride(AssociationOverrideMetadata associationOverride)
protected void addAttributeOverride(AttributeOverrideMetadata attributeOverride)
public void addMapKeyConvert(ConvertMetadata convert)
addMapKeyConvert in class MappingAccessorpublic boolean equals(java.lang.Object objectToCompare)
equals in class RelationshipAccessorpublic int hashCode()
hashCode in class RelationshipAccessorprotected ColumnMetadata getColumn(java.lang.String loggingCtx)
getColumn in class MappingAccessorBasicAccessor,
BasicCollectionAccessor,
BasicMapAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic java.lang.String getDefaultFetchType()
getDefaultFetchType in class RelationshipAccessorpublic java.lang.Boolean getDeleteAll()
public EnumeratedMetadata getEnumerated(boolean isForMapKey)
getEnumerated in class MappingAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic MapKeyMetadata getMapKey()
getMapKey in interface MappedKeyMapAccessorgetMapKey in class MappingAccessorCollectionAccessor,
ElementCollectionAccessorpublic java.util.List<AssociationOverrideMetadata> getMapKeyAssociationOverrides()
getMapKeyAssociationOverrides in interface MappedKeyMapAccessorpublic java.util.List<AttributeOverrideMetadata> getMapKeyAttributeOverrides()
getMapKeyAttributeOverrides in interface MappedKeyMapAccessorpublic MetadataClass getMapKeyClass()
getMapKeyClass in interface MappedKeyMapAccessorpublic java.lang.String getMapKeyClassName()
public MetadataClass getMapKeyClassWithGenerics()
getMapKeyClassWithGenerics in interface MappedKeyMapAccessorpublic ColumnMetadata getMapKeyColumn()
getMapKeyColumn in interface MappedKeyMapAccessorpublic java.lang.String getMapKeyConvert()
getMapKeyConvert in interface MappedKeyMapAccessorpublic java.util.List<ConvertMetadata> getMapKeyConverts()
getMapKeyConverts in interface MappedKeyMapAccessorpublic EnumeratedMetadata getMapKeyEnumerated()
public ForeignKeyMetadata getMapKeyForeignKey()
getMapKeyForeignKey in interface MappedKeyMapAccessorpublic java.util.List<JoinColumnMetadata> getMapKeyJoinColumns()
getMapKeyJoinColumns in interface MappedKeyMapAccessorpublic TemporalMetadata getMapKeyTemporal()
public OrderByMetadata getOrderBy()
protected OrderColumnMetadata getOrderColumn()
public MetadataClass getReferenceClass()
getReferenceClass in class MappingAccessorprotected DatabaseTable getReferenceDatabaseTable()
getReferenceDatabaseTable in class MappingAccessorDirectCollectionAccessor,
ManyToManyAccessorpublic TemporalMetadata getTemporal(boolean isForMapKey)
getTemporal in class MappingAccessorDirectAccessor,
CollectionAccessorpublic void setTemporal(TemporalMetadata metadata, boolean isForMapKey)
MappingAccessorsetTemporal in class MappingAccessorDirectAccessor,
CollectionAccessorpublic boolean hasEnumerated(boolean isForMapKey)
hasEnumerated in class MappingAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic boolean hasMapKey()
hasMapKey in class MappingAccessorCollectionAccessor,
ElementCollectionAccessor,
BasicMapAccessorpublic boolean hasTemporal(boolean isForMapKey)
hasTemporal in class MappingAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic boolean isCollectionAccessor()
isCollectionAccessor in class MappingAccessorpublic boolean isDeleteAll()
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class RelationshipAccessorpublic void process()
process in class RelationshipAccessorprotected void process(CollectionMapping mapping)
protected void processAssociationOverride(AssociationOverrideMetadata associationOverride, EmbeddableMapping embeddableMapping, MetadataDescriptor owningDescriptor)
processAssociationOverride in class MappingAccessorprotected void processEISOneToManyMapping(EISOneToManyMapping mapping)
public void setDeleteAll(java.lang.Boolean deleteAll)
public void setMapKey(MapKeyMetadata mapKey)
public void setMapKeyAssociationOverrides(java.util.List<AssociationOverrideMetadata> mapKeyAssociationOverrides)
public void setMapKeyAttributeOverrides(java.util.List<AttributeOverrideMetadata> mapKeyAttributeOverrides)
public void setMapKeyClass(MetadataClass mapKeyClass)
setMapKeyClass in interface MappedKeyMapAccessorpublic void setMapKeyClassName(java.lang.String mapKeyClassName)
public void setMapKeyColumn(ColumnMetadata mapKeyColumn)
public void setMapKeyConverts(java.util.List<ConvertMetadata> mapKeyConverts)
public void setMapKeyEnumerated(EnumeratedMetadata mapKeyEnumerated)
public void setMapKeyForeignKey(ForeignKeyMetadata mapKeyForeignKey)
public void setMapKeyJoinColumns(java.util.List<JoinColumnMetadata> mapKeyJoinColumns)
public void setMapKeyTemporal(TemporalMetadata mapKeyTemporal)
public void setOrderBy(OrderByMetadata orderBy)
public void setOrderColumn(OrderColumnMetadata orderColumn)