public abstract class DirectCollectionAccessor extends DirectAccessor
KEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONm_project| Modifier | Constructor and Description |
|---|---|
protected |
DirectCollectionAccessor(MetadataAnnotation annotation,
MetadataAccessibleObject accessibleObject,
ClassAccessor classAccessor)
INTERNAL:
|
protected |
DirectCollectionAccessor(java.lang.String xmlElement)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
BatchFetchMetadata |
getBatchFetch()
INTERNAL:
Used for OX mapping.
|
java.lang.Boolean |
getCascadeOnDelete()
INTERNAL:
Used for OX mapping.
|
CollectionTableMetadata |
getCollectionTable()
INTERNAL:
Used for OX mapping.
|
protected java.lang.String |
getDefaultCollectionTableName()
INTERNAL:
|
java.lang.String |
getDefaultFetchType()
INTERNAL:
|
java.lang.String |
getJoinFetch()
INTERNAL:
Used for OX mapping.
|
protected abstract java.lang.String |
getKeyConverter()
INTERNAL:
Return the converter name for a map key.
|
java.lang.Boolean |
getNonCacheable()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getPrivateOwned()
INTERNAL:
Used for OX mapping.
|
protected DatabaseTable |
getReferenceDatabaseTable()
INTERNAL:
The reference table in a direct collection case is the collection table.
|
MetadataDescriptor |
getReferenceDescriptor()
INTERNAL:
In a direct collection case, there is no notion of a reference
descriptor, therefore we return this accessors descriptor.
|
protected java.lang.String |
getValueConverter()
INTERNAL:
Return the converter name for a collection value.
|
int |
hashCode() |
protected boolean |
hasMapKeyClass()
INTERNAL:
Return true if this accessor has a map key class specified.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
java.lang.Boolean |
isCascadeOnDelete()
INTERNAL:
|
boolean |
isDirectCollection()
INTERNAL:
Return true if this accessor represents a direct collection mapping,
which include basic collection, basic map and element collection
accessors.
|
boolean |
isNonCacheable()
INTERNAL:
Used for OX mapping.
|
protected boolean |
isValidDirectCollectionType()
INTERNAL:
Returns true if the given class is a valid basic collection type.
|
protected boolean |
isValidDirectMapType()
INTERNAL:
Returns true if the given class is a valid basic map type.
|
protected void |
process(DatabaseMapping mapping)
INTERNAL:
|
protected void |
processBatchFetch(ForeignReferenceMapping mapping)
INTERNAL:
Set the batch fetch type on the foreign reference mapping.
|
protected void |
processCollectionTable(CollectionMapping mapping)
INTERNAL:
Process a MetadataCollectionTable.
|
protected void |
processDirectCollectionMapping()
INTERNAL:
|
protected void |
processDirectMapMapping()
INTERNAL:
|
void |
setBatchFetch(BatchFetchMetadata batchFetch)
INTERNAL:
Used for OX mapping.
|
void |
setCascadeOnDelete(java.lang.Boolean cascadeOnDelete)
INTERNAL:
Used for OX mapping.
|
void |
setCollectionTable(CollectionTableMetadata collectionTable)
INTERNAL:
Used for OX mapping.
|
void |
setJoinFetch(java.lang.String joinFetch)
INTERNAL:
Used for OX mapping.
|
void |
setNonCacheable(java.lang.Boolean nonCacheable)
INTERNAL:
Used for OX mapping.
|
addConvert, getConvert, getConverts, getEnumerated, getEnumerated, getFetch, getLob, getLob, getOptional, getTemporal, getTemporal, hasEnumerated, hasLob, hasTemporal, isOptional, setConverts, setEnumerated, setFetch, setLob, setOptional, setTemporal, setTemporal, usesIndirectionaddConvertMetadata, addFieldNameTranslation, addMapKeyConvert, derivesId, getAnnotation, getAssociationOverrides, getAttributeName, getAttributeOverride, getAttributeOverrides, getAttributeType, getClassAccessor, getColumn, getConverts, getDatabaseField, getDefaultTableForEntityMapKey, getField, getForeignKey, getGetMethodName, getJoinColumns, getJoinColumnsAndValidate, getMapKey, getMapKeyConverts, getMapKeyReferenceClass, getMapKeyReferenceClassName, getMapKeyReferenceClassWithGenerics, getMapping, getOwningDescriptor, getOwningDescriptors, getRawClass, getRawClassWithGenerics, getReferenceAccessors, getReferenceClass, getReferenceClassFromGeneric, getReferenceClassName, getReferenceClassWithGenerics, getSetMethodName, hasAttributeOverride, hasAttributeType, hasMapKey, hasReturnInsert, hasReturnUpdate, initXMLMappingAccessor, isAnnotationPresent, isBasic, isBasicCollection, isBasicMap, isCollectionAccessor, isDerivedIdClass, isDirectEmbeddableCollection, 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, 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 DirectCollectionAccessor(java.lang.String xmlElement)
protected DirectCollectionAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
public boolean equals(java.lang.Object objectToCompare)
equals in class DirectAccessorpublic int hashCode()
hashCode in class DirectAccessorpublic BatchFetchMetadata getBatchFetch()
public java.lang.Boolean getCascadeOnDelete()
public CollectionTableMetadata getCollectionTable()
protected java.lang.String getDefaultCollectionTableName()
public java.lang.String getDefaultFetchType()
getDefaultFetchType in class DirectAccessorpublic java.lang.String getJoinFetch()
public java.lang.String getPrivateOwned()
protected DatabaseTable getReferenceDatabaseTable()
getReferenceDatabaseTable in class MappingAccessorDirectCollectionAccessor,
ManyToManyAccessorpublic MetadataDescriptor getReferenceDescriptor()
getReferenceDescriptor in class MappingAccessorprotected abstract java.lang.String getKeyConverter()
public java.lang.Boolean getNonCacheable()
protected java.lang.String getValueConverter()
protected boolean hasMapKeyClass()
ElementCollectionAccessorpublic void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class DirectAccessorpublic java.lang.Boolean isCascadeOnDelete()
public boolean isDirectCollection()
isDirectCollection in class MappingAccessorpublic boolean isNonCacheable()
protected boolean isValidDirectCollectionType()
protected boolean isValidDirectMapType()
protected void process(DatabaseMapping mapping)
protected void processBatchFetch(ForeignReferenceMapping mapping)
protected void processCollectionTable(CollectionMapping mapping)
protected void processDirectCollectionMapping()
protected void processDirectMapMapping()
public void setBatchFetch(BatchFetchMetadata batchFetch)
public void setCascadeOnDelete(java.lang.Boolean cascadeOnDelete)
public void setCollectionTable(CollectionTableMetadata collectionTable)
public void setNonCacheable(java.lang.Boolean nonCacheable)
public void setJoinFetch(java.lang.String joinFetch)