public class BasicAccessor extends DirectAccessor
KEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONm_project| Constructor and Description |
|---|
BasicAccessor()
INTERNAL:
Used for OX mapping.
|
BasicAccessor(MetadataAnnotation annotation,
MetadataAccessibleObject accessibleObject,
ClassAccessor classAccessor)
INTERNAL:
|
BasicAccessor(java.lang.String xmlElement)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
CacheIndexMetadata |
getCacheIndex()
INTERNAL:
Used for OX mapping.
|
ColumnMetadata |
getColumn()
INTERNAL:
Used for OX mapping.
|
protected ColumnMetadata |
getColumn(java.lang.String loggingCtx)
INTERNAL:
Return the column from xml if there is one, otherwise look for an
annotation.
|
protected DatabaseField |
getDatabaseField()
INTERNAL:
|
java.lang.String |
getDefaultFetchType()
INTERNAL:
|
GeneratedValueMetadata |
getGeneratedValue()
INTERNAL:
Used for OX mapping.
|
IndexMetadata |
getIndex()
INTERNAL:
Used for OX mapping.
|
java.lang.Boolean |
getMutable()
INTERNAL:
Used for OX mapping.
|
ReturnInsertMetadata |
getReturnInsert()
INTERNAL:
Used for OX mapping.
|
java.lang.Boolean |
getReturnUpdate()
INTERNAL:
Used for OX mapping.
|
SequenceGeneratorMetadata |
getSequenceGenerator()
INTERNAL:
Used for OX mapping.
|
TableGeneratorMetadata |
getTableGenerator()
INTERNAL:
Used for OX mapping.
|
UuidGeneratorMetadata |
getUuidGenerator()
INTERNAL:
Used for OX mapping.
|
int |
hashCode() |
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isBasic()
INTERNAL:
Return true if this accessor represents a basic mapping.
|
protected boolean |
isCollectionClass(MetadataClass cls)
INTERNAL:
Method to return whether a class is a collection or not.
|
protected boolean |
isMapClass(MetadataClass cls)
INTERNAL:
Method to return whether a class is a map or not.
|
java.lang.Boolean |
isReturnUpdate()
INTERNAL:
USed for OX mapping
|
void |
process()
INTERNAL:
Process a basic accessor.
|
protected void |
processCacheIndex()
INTERNAL:
Process cache index.
|
protected void |
processEnumerated(EnumeratedMetadata enumerated,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process an Enumerated annotation.
|
protected void |
processGeneratedValue()
INTERNAL:
Process the generated value metadata.
|
protected void |
processIndex()
INTERNAL:
Process index information for the given mapping.
|
protected void |
processLob(LobMetadata lob,
DatabaseMapping mapping,
MetadataClass referenceClass,
boolean isForMapKey)
INTERNAL:
Process a Lob metadata.
|
protected void |
processReturnInsert()
INTERNAL:
Process a ReturnInsert annotation.
|
protected void |
processReturnUpdate()
INTERNAL:
Process a return update setting.
|
void |
setCacheIndex(CacheIndexMetadata index)
INTERNAL:
Used for OX mapping.
|
void |
setColumn(ColumnMetadata column)
INTERNAL:
Used for OX mapping.
|
void |
setGeneratedValue(GeneratedValueMetadata value)
INTERNAL:
Used for OX mapping.
|
void |
setIndex(IndexMetadata index)
INTERNAL:
Used for OX mapping.
|
void |
setMutable(java.lang.Boolean mutable)
INTERNAL:
Used for OX mapping.
|
void |
setReturnInsert(ReturnInsertMetadata returnInsert)
INTERNAL:
Used for OX mapping.
|
void |
setReturnUpdate(java.lang.Boolean returnUpdate)
INTERNAL:
Used for OX mapping.
|
void |
setSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator)
INTERNAL:
Used for OX mapping.
|
void |
setTableGenerator(TableGeneratorMetadata tableGenerator)
INTERNAL:
Used for OX mapping.
|
void |
setUuidGenerator(UuidGeneratorMetadata uuidGenerator)
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, getConverts, getDatabaseField, getDefaultTableForEntityMapKey, getField, getForeignKey, getGetMethodName, getJoinColumns, getJoinColumnsAndValidate, getMapKey, getMapKeyConverts, getMapKeyReferenceClass, getMapKeyReferenceClassName, getMapKeyReferenceClassWithGenerics, getMapping, getOwningDescriptor, getOwningDescriptors, getRawClass, getRawClassWithGenerics, getReferenceAccessors, getReferenceClass, getReferenceClassFromGeneric, getReferenceClassName, getReferenceClassWithGenerics, getReferenceDatabaseTable, getReferenceDescriptor, getSetMethodName, hasAttributeOverride, hasAttributeType, hasMapKey, hasReturnInsert, hasReturnUpdate, initXMLMappingAccessor, isAnnotationPresent, 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, processAssociationOverride, processAssociationOverrides, processAttributeOverrides, processContainerPolicyAndIndirection, processConvert, processConverts, processDirectMapKeyClass, processEmbeddableMapKeyClass, processEntityMapKeyClass, processForeignKeyRelationship, processIndirection, processJoinFetch, processMapKeyClass, processMappingConverter, processMappingKeyConverter, processMappingValueConverter, processProperties, processProperty, processReturnInsertAndUpdate, 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 BasicAccessor()
public BasicAccessor(java.lang.String xmlElement)
public BasicAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
public boolean equals(java.lang.Object objectToCompare)
equals in class DirectAccessorpublic int hashCode()
hashCode in class DirectAccessorpublic ColumnMetadata getColumn()
protected ColumnMetadata getColumn(java.lang.String loggingCtx)
getColumn in class MappingAccessorBasicAccessor,
BasicCollectionAccessor,
BasicMapAccessor,
ElementCollectionAccessor,
CollectionAccessorpublic java.lang.String getDefaultFetchType()
getDefaultFetchType in class DirectAccessorprotected DatabaseField getDatabaseField()
public GeneratedValueMetadata getGeneratedValue()
public java.lang.Boolean getMutable()
public ReturnInsertMetadata getReturnInsert()
public java.lang.Boolean getReturnUpdate()
public SequenceGeneratorMetadata getSequenceGenerator()
public TableGeneratorMetadata getTableGenerator()
public UuidGeneratorMetadata getUuidGenerator()
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class DirectAccessorpublic boolean isBasic()
isBasic in class MappingAccessorprotected boolean isCollectionClass(MetadataClass cls)
protected boolean isMapClass(MetadataClass cls)
public java.lang.Boolean isReturnUpdate()
public void process()
process in class MetadataAccessorprotected void processEnumerated(EnumeratedMetadata enumerated, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
processEnumerated in class MappingAccessorprotected void processGeneratedValue()
protected void processIndex()
protected void processCacheIndex()
protected void processLob(LobMetadata lob, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
processLob in class MappingAccessorprotected void processReturnInsert()
processReturnInsert in class MappingAccessorBasicAccessorprotected void processReturnUpdate()
processReturnUpdate in class MappingAccessorBasicAccessorpublic IndexMetadata getIndex()
public void setIndex(IndexMetadata index)
public CacheIndexMetadata getCacheIndex()
public void setCacheIndex(CacheIndexMetadata index)
public void setColumn(ColumnMetadata column)
public void setGeneratedValue(GeneratedValueMetadata value)
public void setMutable(java.lang.Boolean mutable)
public void setReturnInsert(ReturnInsertMetadata returnInsert)
public void setReturnUpdate(java.lang.Boolean returnUpdate)
public void setSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator)
public void setTableGenerator(TableGeneratorMetadata tableGenerator)
public void setUuidGenerator(UuidGeneratorMetadata uuidGenerator)