public class ElementCollectionAccessor extends DirectCollectionAccessor implements MappedKeyMapAccessor
KEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONm_project| Constructor and Description |
|---|
ElementCollectionAccessor()
INTERNAL:
Used for OX mapping.
|
ElementCollectionAccessor(MetadataAnnotation elementCollection,
MetadataAccessibleObject accessibleObject,
ClassAccessor classAccessor)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAssociationOverride(AssociationOverrideMetadata associationOverride)
INTERNAL:
|
protected void |
addAttributeOverride(AttributeOverrideMetadata attributeOverride)
INTERNAL:
|
void |
addMapKeyConvert(ConvertMetadata convert)
INTERNAL:
A map key convert from an annotation specification.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
java.util.List<AssociationOverrideMetadata> |
getAssociationOverrides()
INTERNAL:
Used for OX mapping.
|
java.util.List<AttributeOverrideMetadata> |
getAttributeOverrides()
INTERNAL:
Used for OX mapping.
|
ColumnMetadata |
getColumn()
INTERNAL:
Used for OX mapping.
|
protected ColumnMetadata |
getColumn(java.lang.String loggingCtx)
INTERNAL:
|
java.lang.String |
getCompositeMember()
INTERNAL:
Used for OX mapping.
|
protected DatabaseTable |
getDefaultTableForEntityMapKey()
INTERNAL:
Return the default table to hold the foreign key of a MapKey when
and Entity is used as the MapKey
|
java.lang.Boolean |
getDeleteAll()
INTERNAL:
Used for OX mapping.
|
EmbeddableAccessor |
getEmbeddableAccessor()
INTERNAL:
|
EnumeratedMetadata |
getEnumerated(boolean isForMapKey)
INTERNAL:
Return the enumerated metadata for this accessor.
|
protected java.lang.String |
getKeyConverter()
INTERNAL:
|
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:
Return the map key class on this element collection accessor.
|
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.
|
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.
|
MetadataDescriptor |
getReferenceDescriptor()
INTERNAL:
In an element collection case, when the collection is not an embeddable
collection, there is no notion of a reference descriptor, therefore we
return this accessors descriptor
|
protected MetadataClass |
getTargetClass()
INTERNAL:
Return the target class for this accessor.
|
protected java.lang.String |
getTargetClassName()
INTERNAL:
Used for OX mapping.
|
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 |
hasLob(boolean isForMapKey)
INTERNAL:
Return true if this accessor has lob metadata.
|
boolean |
hasMapKey()
INTERNAL:
|
protected boolean |
hasMapKeyClass()
INTERNAL:
Return true if this accessor has a map key class specified.
|
boolean |
hasTemporal(boolean isForMapKey)
INTERNAL:
Return true if this accessor has temporal metadata.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isDeleteAll()
INTERNAL:
Used by our XML writing facility.
|
boolean |
isDirectEmbeddableCollection()
INTERNAL:
Return true if this element collection contains embeddable objects.
|
void |
process()
INTERNAL:
Process the element collection metadata.
|
protected void |
processCollectionTable(CollectionMapping mapping)
INTERNAL:
Process a MetadataCollectionTable.
|
protected void |
processDirectEmbeddableCollectionMapping(MetadataDescriptor referenceDescriptor)
INTERNAL:
|
protected void |
processMappingsFromEmbeddable(MetadataDescriptor embeddableDescriptor,
AggregateObjectMapping nestedAggregateObjectMapping,
EmbeddableMapping embeddableMapping,
java.util.Map<java.lang.String,AttributeOverrideMetadata> attributeOverrides,
java.util.Map<java.lang.String,AssociationOverrideMetadata> associationOverrides,
java.lang.String dotNotationName)
INTERNAL:
|
protected void |
processMappingValueConverters(MetadataDescriptor embeddableDescriptor)
INTERNAL:
Process convertors registered for collection mapping.
|
void |
setAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setColumn(ColumnMetadata column)
INTERNAL:
Used for OX mapping.
|
void |
setCompositeMember(java.lang.String compositeMember)
INTERNAL:
Used for OX mapping.
|
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 |
setTargetClassName(java.lang.String targetClassName)
INTERNAL:
Used for OX mapping.
|
void |
setTemporal(TemporalMetadata metadata,
boolean isForMapKey)
INTERNAL: Set the temporal metadata for this accessor.
|
getBatchFetch, getCascadeOnDelete, getCollectionTable, getDefaultCollectionTableName, getDefaultFetchType, getJoinFetch, getNonCacheable, getPrivateOwned, getReferenceDatabaseTable, getValueConverter, isCascadeOnDelete, isDirectCollection, isNonCacheable, isValidDirectCollectionType, isValidDirectMapType, process, processBatchFetch, processDirectCollectionMapping, processDirectMapMapping, setBatchFetch, setCascadeOnDelete, setCollectionTable, setJoinFetch, setNonCacheableaddConvert, getConvert, getConverts, getEnumerated, getFetch, getLob, getLob, getOptional, getTemporal, isOptional, setConverts, setEnumerated, setFetch, setLob, setOptional, setTemporal, usesIndirectionaddConvertMetadata, addFieldNameTranslation, derivesId, getAnnotation, getAssociationOverrides, getAttributeName, getAttributeOverride, getAttributeOverrides, getAttributeType, getClassAccessor, getConverts, getDatabaseField, getField, getForeignKey, getGetMethodName, getJoinColumns, getJoinColumnsAndValidate, getMapKeyConverts, getMapKeyReferenceClass, getMapKeyReferenceClassName, getMapKeyReferenceClassWithGenerics, getMapping, getOwningDescriptor, getOwningDescriptors, getRawClass, getRawClassWithGenerics, getReferenceAccessors, getReferenceClassFromGeneric, getReferenceClassName, getReferenceClassWithGenerics, getSetMethodName, hasAttributeOverride, hasAttributeType, hasReturnInsert, hasReturnUpdate, initXMLMappingAccessor, isAnnotationPresent, isBasic, isBasicCollection, isBasicMap, isCollectionAccessor, isDerivedIdClass, isEmbedded, isEmbeddedId, isEnumerated, isId, isLob, isManyToMany, isManyToOne, isMapAccessor, isMappedKeyMapAccessor, isMultitenantId, isOneToMany, isOneToOne, isPrimitiveWrapperClass, isProcessed, isRelationship, isSerialized, isTemporal, isTimeClass, isTransient, isValidSerializedType, isVariableOneToOne, processAssociationOverride, 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, setAccessorMethods, 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, valuesMatchpublic ElementCollectionAccessor()
public ElementCollectionAccessor(MetadataAnnotation elementCollection, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
protected void addAttributeOverride(AttributeOverrideMetadata attributeOverride)
protected void addAssociationOverride(AssociationOverrideMetadata associationOverride)
public void addMapKeyConvert(ConvertMetadata convert)
addMapKeyConvert in class MappingAccessorpublic boolean equals(java.lang.Object objectToCompare)
equals in class DirectCollectionAccessorpublic int hashCode()
hashCode in class DirectCollectionAccessorpublic java.util.List<AssociationOverrideMetadata> getAssociationOverrides()
public java.util.List<AttributeOverrideMetadata> getAttributeOverrides()
public ColumnMetadata getColumn()
public java.lang.String getCompositeMember()
protected ColumnMetadata getColumn(java.lang.String loggingCtx)
getColumn in class MappingAccessorBasicAccessor,
BasicCollectionAccessor,
BasicMapAccessor,
ElementCollectionAccessor,
CollectionAccessorprotected DatabaseTable getDefaultTableForEntityMapKey()
getDefaultTableForEntityMapKey in class MappingAccessorpublic java.lang.Boolean getDeleteAll()
public EmbeddableAccessor getEmbeddableAccessor()
public EnumeratedMetadata getEnumerated(boolean isForMapKey)
getEnumerated in class DirectAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorprotected java.lang.String getKeyConverter()
getKeyConverter in class DirectCollectionAccessorpublic MapKeyMetadata getMapKey()
getMapKey in interface MappedKeyMapAccessorgetMapKey in class MappingAccessorCollectionAccessor,
ElementCollectionAccessorpublic MetadataClass getMapKeyClass()
getMapKeyClass in interface MappedKeyMapAccessorpublic MetadataClass getMapKeyClassWithGenerics()
getMapKeyClassWithGenerics in interface MappedKeyMapAccessorpublic java.util.List<AssociationOverrideMetadata> getMapKeyAssociationOverrides()
getMapKeyAssociationOverrides in interface MappedKeyMapAccessorpublic java.util.List<AttributeOverrideMetadata> getMapKeyAttributeOverrides()
getMapKeyAttributeOverrides in interface MappedKeyMapAccessorpublic java.lang.String getMapKeyClassName()
public 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()
public OrderColumnMetadata getOrderColumn()
public MetadataClass getReferenceClass()
MappedSuperclass descriptors return Void when their parameterized generic reference class is null
getReferenceClass in class MappingAccessorpublic MetadataDescriptor getReferenceDescriptor()
getReferenceDescriptor in class DirectCollectionAccessorprotected MetadataClass getTargetClass()
protected java.lang.String getTargetClassName()
public TemporalMetadata getTemporal(boolean isForMapKey)
getTemporal in class DirectAccessorDirectAccessor,
CollectionAccessorpublic boolean hasEnumerated(boolean isForMapKey)
hasEnumerated in class DirectAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic boolean hasLob(boolean isForMapKey)
hasLob in class DirectAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic boolean hasMapKey()
hasMapKey in class MappingAccessorCollectionAccessor,
ElementCollectionAccessor,
BasicMapAccessorprotected boolean hasMapKeyClass()
hasMapKeyClass in class DirectCollectionAccessorElementCollectionAccessorpublic boolean hasTemporal(boolean isForMapKey)
hasTemporal in class DirectAccessorDirectAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class DirectCollectionAccessorpublic boolean isDeleteAll()
public boolean isDirectEmbeddableCollection()
isDirectEmbeddableCollection in class MappingAccessorpublic void process()
process in class MetadataAccessorprotected void processCollectionTable(CollectionMapping mapping)
processCollectionTable in class DirectCollectionAccessorprotected void processDirectEmbeddableCollectionMapping(MetadataDescriptor referenceDescriptor)
protected void processMappingValueConverters(MetadataDescriptor embeddableDescriptor)
embeddableDescriptor - Metadata descriptor for embedded collection.protected void processMappingsFromEmbeddable(MetadataDescriptor embeddableDescriptor, AggregateObjectMapping nestedAggregateObjectMapping, EmbeddableMapping embeddableMapping, java.util.Map<java.lang.String,AttributeOverrideMetadata> attributeOverrides, java.util.Map<java.lang.String,AssociationOverrideMetadata> associationOverrides, java.lang.String dotNotationName)
public void setAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
public void setAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
public void setColumn(ColumnMetadata column)
public void setCompositeMember(java.lang.String compositeMember)
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 setTemporal(TemporalMetadata metadata, boolean isForMapKey)
MappingAccessorsetTemporal in class DirectAccessorDirectAccessor,
CollectionAccessorpublic void setOrderBy(OrderByMetadata orderBy)
public void setOrderColumn(OrderColumnMetadata orderColumn)
public void setTargetClassName(java.lang.String targetClassName)