Module org.eclipse.persistence.jpa
Class BasicAccessor
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor
org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.MappingAccessor
org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DirectAccessor
org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.BasicAccessor
- Direct Known Subclasses:
IdAccessor,TransformationAccessor,VersionAccessor
INTERNAL:
A relational accessor. A Basic annotation may or may not be present on the
accessible object.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- any metadata mapped from XML to this class must be handled in the merge
method. (merging is done at the accessor/mapping level)
- any metadata mapped from XML to this class must be initialized in the
initXMLObject method.
- methods should be preserved in alphabetical order.
- Since:
- TopLink EJB 3.0 Reference Implementation
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.MappingAccessor
KEY_DOT_NOTATION, m_field, VALUE_DOT_NOTATIONFields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Used for OX mapping.BasicAccessor(String xmlElement) INTERNAL:BasicAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.protected ColumnMetadataINTERNAL: Return the column from xml if there is one, otherwise look for an annotation.protected DatabaseFieldINTERNAL:INTERNAL:INTERNAL: Used for OX mapping.getIndex()INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.inthashCode()voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:booleanisBasic()INTERNAL: Return true if this accessor represents a basic mapping.protected booleanINTERNAL: Method to return whether a class is a collection or not.protected booleanisMapClass(MetadataClass cls) INTERNAL: Method to return whether a class is a map or not.INTERNAL: USed for OX mappingvoidprocess()INTERNAL: Process a basic accessor.protected voidINTERNAL: Process cache index.protected voidprocessEnumerated(EnumeratedMetadata enumerated, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Process an Enumerated annotation.protected voidINTERNAL: Process the generated value metadata.protected voidINTERNAL: Process index information for the given mapping.protected voidprocessLob(LobMetadata lob, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Process a Lob metadata.protected voidINTERNAL: Process a ReturnInsert annotation.protected voidINTERNAL: Process a return update setting.voidsetCacheIndex(CacheIndexMetadata index) INTERNAL: Used for OX mapping.voidsetColumn(ColumnMetadata column) INTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidsetIndex(IndexMetadata index) INTERNAL: Used for OX mapping.voidsetMutable(Boolean mutable) INTERNAL: Used for OX mapping.voidsetReturnInsert(ReturnInsertMetadata returnInsert) INTERNAL: Used for OX mapping.voidsetReturnUpdate(Boolean returnUpdate) INTERNAL: Used for OX mapping.voidsetSequenceGenerator(SequenceGeneratorMetadata sequenceGenerator) INTERNAL: Used for OX mapping.voidsetTableGenerator(TableGeneratorMetadata tableGenerator) INTERNAL: Used for OX mapping.voidsetUuidGenerator(UuidGeneratorMetadata uuidGenerator) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DirectAccessor
addConvert, getConvert, getConverts, getEnumerated, getEnumerated, getFetch, getLob, getLob, getOptional, getTemporal, getTemporal, hasEnumerated, hasLob, hasTemporal, isOptional, setConverts, setEnumerated, setFetch, setLob, setOptional, setTemporal, setTemporal, usesIndirectionMethods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.MappingAccessor
addConvertMetadata, 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, isJson, isLob, isManyToMany, isManyToOne, isMapAccessor, isMappedKeyMapAccessor, isMultitenantId, isOneToMany, isOneToOne, isPrimitiveWrapperClass, isProcessed, isRelationship, isSerialized, isTemporal, isTimeClass, isTransient, isUUID, isValidJsonType, isValidSerializedType, isVariableOneToOne, processAssociationOverride, processAssociationOverrides, processAttributeOverrides, processContainerPolicyAndIndirection, processConvert, processConverts, processDirectMapKeyClass, processEmbeddableMapKeyClass, processEntityMapKeyClass, processForeignKeyRelationship, processIndirection, processJoinFetch, processJson, processMapKeyClass, processMappingConverter, processMappingKeyConverter, processMappingValueConverter, processProperties, processProperty, processReturnInsertAndUpdate, processSerialized, processSerialized, processTemporal, processUUID, setAccessorMethods, setAttributeType, setClassAccessor, setField, setIndirectionPolicy, setMapping, setOverrideMapping, toString, updatePrimaryKeyField, usesFieldAccess, usesPropertyAccess, usesVirtualAccessMethods inherited from class org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor
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, 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, setValuePartitioningMethods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObjectName, 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, valuesMatch
-
Constructor Details
-
BasicAccessor
public BasicAccessor()INTERNAL: Used for OX mapping. -
BasicAccessor
INTERNAL: -
BasicAccessor
public BasicAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor) INTERNAL:
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equalsin classDirectAccessor
-
hashCode
public int hashCode()- Overrides:
hashCodein classDirectAccessor
-
getColumn
INTERNAL: Used for OX mapping. -
getColumn
INTERNAL: Return the column from xml if there is one, otherwise look for an annotation.- Overrides:
getColumnin classMappingAccessor- See Also:
-
getDefaultFetchType
INTERNAL:- Specified by:
getDefaultFetchTypein classDirectAccessor
-
getDatabaseField
INTERNAL: -
getGeneratedValue
INTERNAL: Used for OX mapping. -
getMutable
INTERNAL: Used for OX mapping. -
getReturnInsert
INTERNAL: Used for OX mapping. -
getReturnUpdate
INTERNAL: Used for OX mapping. -
getSequenceGenerator
INTERNAL: Used for OX mapping. -
getTableGenerator
INTERNAL: Used for OX mapping. -
getUuidGenerator
INTERNAL: Used for OX mapping. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObjectin classDirectAccessor
-
isBasic
public boolean isBasic()INTERNAL: Return true if this accessor represents a basic mapping.- Overrides:
isBasicin classMappingAccessor
-
isCollectionClass
INTERNAL: Method to return whether a class is a collection or not. -
isMapClass
INTERNAL: Method to return whether a class is a map or not. -
isReturnUpdate
INTERNAL: USed for OX mapping -
process
public void process()INTERNAL: Process a basic accessor.- Specified by:
processin classMetadataAccessor
-
processEnumerated
protected void processEnumerated(EnumeratedMetadata enumerated, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Process an Enumerated annotation. The method may still be called if no Enumerated annotation has been specified but the accessor's reference class is a valid enumerated type.- Overrides:
processEnumeratedin classMappingAccessor
-
processGeneratedValue
protected void processGeneratedValue()INTERNAL: Process the generated value metadata. -
processIndex
protected void processIndex()INTERNAL: Process index information for the given mapping. -
processCacheIndex
protected void processCacheIndex()INTERNAL: Process cache index. -
processLob
protected void processLob(LobMetadata lob, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey) INTERNAL: Process a Lob metadata. The lob must be specified to process and create a lob type mapping.- Overrides:
processLobin classMappingAccessor
-
processReturnInsert
protected void processReturnInsert()INTERNAL: Process a ReturnInsert annotation.- Overrides:
processReturnInsertin classMappingAccessor- See Also:
-
processReturnUpdate
protected void processReturnUpdate()INTERNAL: Process a return update setting.- Overrides:
processReturnUpdatein classMappingAccessor- See Also:
-
getIndex
INTERNAL: Used for OX mapping. -
setIndex
INTERNAL: Used for OX mapping. -
getCacheIndex
INTERNAL: Used for OX mapping. -
setCacheIndex
INTERNAL: Used for OX mapping. -
setColumn
INTERNAL: Used for OX mapping. -
setGeneratedValue
INTERNAL: Used for OX mapping. -
setMutable
INTERNAL: Used for OX mapping. -
setReturnInsert
INTERNAL: Used for OX mapping. -
setReturnUpdate
INTERNAL: Used for OX mapping. -
setSequenceGenerator
INTERNAL: Used for OX mapping. -
setTableGenerator
INTERNAL: Used for OX mapping. -
setUuidGenerator
INTERNAL: Used for OX mapping.
-