| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| protected static final String | KEY_DOT_NOTATION
Dot notation key prefix. |
| private String | |
| private ClassAccessor | |
| protected ColumnMetadata | |
| private DatabaseMapping | |
| private DatabaseMapping | |
| private Map | |
| protected static final String | VALUE_DOT_NOTATION
Dot notation value prefix. |
| Access | Constructor and Description |
|---|---|
| protected | MappingAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
INTERNAL: |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addConvert(ConvertMetadata convert)
INTERNAL: Subclasses that support converts need to override this method otherwise an exception will be thrown from those accessors that do not support them when a user has defined them on that accessor. |
| protected void | addConvertMetadata(ConvertMetadata convert)
INTERNAL: Add a JPA convert annotation to the converts list. |
| protected void | addFieldNameTranslation(EmbeddableMapping embeddableMapping, String overrideName, DatabaseField overrideField, MappingAccessor aggregatesAccessor)
INTERNAL: Process an attribute override for either an embedded object mapping, or an element collection mapping containing embeddable objects. |
| protected void | addMapKeyConvert(ConvertMetadata convert)
INTERNAL: Subclasses that support converts need to override this method otherwise an exception will be thrown from those accessors that do not support them when a user has defined them on that accessor. |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. objectToCompare)Overrides org. |
| protected MetadataAnnotation | getAnnotation(String annotation)
Implements abstract org. |
| protected Map | getAssociationOverrides(List<AssociationOverrideMetadata> associationOverrides)
INTERNAL: Process the list of association overrides into a map, merging and overriding any association overrides where necessary with descriptor level association overrides. |
| public String | getAttributeName()
Overrides org. |
| protected AttributeOverrideMetadata | |
| protected Map | getAttributeOverrides(List<AttributeOverrideMetadata> attributeOverrides)
INTERNAL: Process the list of attribute overrides into a map, merging and overriding any attribute overrides where necessary with descriptor level attribute overrides. |
| public String | |
| public ClassAccessor | |
| protected ColumnMetadata | |
| protected List | getConverts(List<ConvertMetadata> potentialConverts)
INTERNAL: Given the potential converts return them for processing unless there are overrides available from the descriptor. |
| protected DatabaseField | getDatabaseField(DatabaseTable defaultTable, String loggingCtx)
INTERNAL: Process column metadata details into a database field. |
| protected String | |
| protected DatabaseTable | getDefaultTableForEntityMapKey()
INTERNAL: Return the default table to hold the foreign key of a MapKey when and Entity is used as the MapKey |
| public EnumeratedMetadata | |
| public ColumnMetadata | |
| protected ForeignKeyMetadata | getForeignKey(ForeignKeyMetadata potentialForeignKey, MetadataDescriptor descriptor)
INTERNAL: Return the foreign key to use with this mapping accessor. |
| public String | |
| protected List | getJoinColumns(List<JoinColumnMetadata> potentialJoinColumns, MetadataDescriptor descriptor)
INTERNAL: Return the join columns to use with this mapping accessor. |
| protected List | getJoinColumnsAndValidate(List<JoinColumnMetadata> joinColumns, MetadataDescriptor referenceDescriptor)
INTERNAL: This method will validate the join columns and default any where necessary. |
| public LobMetadata | |
| public MapKeyMetadata | |
| protected List | getMapKeyConverts(List<ConvertMetadata> potentialMapKeyConverts)
INTERNAL: Given the potential converts return them for processing unless there are overrides available from the descriptor. |
| public MetadataClass | getMapKeyReferenceClass()
INTERNAL: Return the map key reference class for this accessor if applicable. |
| public String | |
| public MetadataClass | getMapKeyReferenceClassWithGenerics()
INTERNAL: Return the map key reference class for this accessor if applicable. |
| public DatabaseMapping | |
| public MetadataDescriptor | |
| public List | |
| public MetadataClass | |
| public MetadataClass | getRawClassWithGenerics()
INTERNAL: Return the raw class with any generic specifications for this accessor. |
| public Collection | getReferenceAccessors()
INTERNAL: Return the mapping accessors associated with the reference descriptor. |
| public MetadataClass | |
| public MetadataClass | getReferenceClassFromGeneric()
INTERNAL: Attempts to return a reference class from a generic specification. |
| public String | |
| public MetadataClass | |
| protected DatabaseTable | |
| public MetadataDescriptor | |
| public String | |
| public TemporalMetadata | |
| protected boolean | hasAttributeOverride(String loggingCtx)
INTERNAL: Return true if we have an attribute override for this accessor. |
| public boolean | hasAttributeType()
INTERNAL: Those accessors that do not require a separate attribute-type specification for VIRTUAL accessors should override this method. |
| protected boolean | |
| public int | hashCode()
Overrides org. |
| protected boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| public void | initXMLMappingAccessor(ClassAccessor classAccessor)
INTERNAL: Init an xml mapping accessor with its necessary components. |
| public void | initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
Overrides org. |
| public boolean | isAnnotationPresent(String annotation)
Implements abstract org. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isDirectCollection()
INTERNAL: Return true if this accessor represents a direct collection mapping, which include basic collection, basic map and element collection accessors. |
| public boolean | isDirectEmbeddableCollection()
INTERNAL: Return true if this accessor represents an element collection that contains embeddable objects. |
| public boolean | |
| public boolean | |
| protected boolean | isEnumerated(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this represents an enum type mapping. |
| public boolean | |
| protected boolean | isJson(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this represents a JSON type mapping. |
| protected boolean | isLob(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this accessor represents a BLOB/CLOB mapping. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected boolean | isPrimitiveWrapperClass(MetadataClass cls)
INTERNAL: Returns true is the given class is primitive wrapper type. |
| public boolean | isProcessed()
Implements abstract org. |
| public boolean | |
| public boolean | isSerialized(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this accessor represents a serialized mapping. |
| protected boolean | isTemporal(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this represents a temporal type mapping. |
| protected boolean | |
| public boolean | |
| protected boolean | isUUID(MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Return true if this represents a UUID type mapping. |
| protected boolean | Returns: Value oftrue if the given class is valid for JsonMapping
or false otherwiseclass to validate cls)INTERNAL: Check whether given class is valid for JsonMapping. |
| protected boolean | isValidSerializedType(MetadataClass cls)
INTERNAL: Returns true if the given class is valid for SerializedObjectMapping. |
| public boolean | isVariableOneToOne()
INTERNAL: Return true if this accessor represents a variable one to one mapping. |
| 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 | processAssociationOverrides(List<AssociationOverrideMetadata> associationOverrides, EmbeddableMapping embeddableMapping, MetadataDescriptor embeddableDescriptor)
INTERNAL: Process the association overrides for the given embeddable mapping which is either an embedded or element collection mapping. |
| protected void | processAttributeOverrides(List<AttributeOverrideMetadata> attributeOverrides, AggregateObjectMapping aggregateObjectMapping, MetadataDescriptor embeddableDescriptor)
INTERNAL: Process the attribute overrides for the given embedded mapping. |
| protected void | processContainerPolicyAndIndirection(ContainerMapping mapping)
INTERNAL: Process the map metadata if this is a valid map accessor. |
| protected void | processConvert(DatabaseMapping mapping, String converterName, MetadataClass referenceClass, boolean isForMapKey, boolean hasConverts)
INTERNAL: Process a Convert annotation or convert element to apply to specified EclipseLink converter (Converter, TypeConverter, ObjectTypeConverter) to the given mapping. |
| protected void | processConverts(List<ConvertMetadata> converts, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process the JPA defined convert(s) |
| protected AbstractDirectMapping | |
| protected AggregateObjectMapping | |
| protected OneToOneMapping | processEntityMapKeyClass(MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL: Process the map key to be an entity class. |
| protected void | processEnumerated(EnumeratedMetadata enumerated, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process an Enumerated setting. |
| protected void | processForeignKeyRelationship(ForeignReferenceMapping mapping, List<JoinColumnMetadata> joinColumns, ForeignKeyMetadata foreignKey, MetadataDescriptor referenceDescriptor, String defaultFKFieldName, DatabaseTable defaultFKTable)
INTERNAL: Process the join columns for the owning side of a one to one mapping. |
| protected void | processIndirection(ForeignReferenceMapping mapping)
INTERNAL: Process the indirection (aka fetch type) |
| protected void | processJoinFetch(String joinFetch, ForeignReferenceMapping mapping)
INTERNAL: Return the mapping join fetch type. |
| protected void | processJson(DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process JSON value attribute for classes that extend JsonValue interface. |
| protected void | processLob(LobMetadata lob, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process a lob specification. |
| protected void | processMapKeyClass(ContainerMapping mapping, MappedKeyMapAccessor mappedKeyMapAccessor)
INTERNAL: Process a map key class for the given map key map accessor. |
| protected void | processMappingConverter(DatabaseMapping mapping, String convertValue, List<ConvertMetadata> converts, MetadataClass referenceClass, MetadataClass referenceClassWithGenerics, boolean isForMapKey)
INTERNAL: Process a convert value which specifies the name of an EclipseLink converter to process with this accessor's mapping. |
| protected void | processMappingKeyConverter(DatabaseMapping mapping, String convertValue, List<ConvertMetadata> converts, MetadataClass referenceClass, MetadataClass referenceClassWithGenerics)
INTERNAL: Process a mapping key converter either from an EclipseLink convert specification or a JPA converter specification (map-key-convert, map-key-temporal, map-key-enumerated) to be applied to the given mapping. |
| protected void | processMappingValueConverter(DatabaseMapping mapping, String convertValue, List<ConvertMetadata> converts, MetadataClass referenceClass, MetadataClass referenceClassWithGenerics)
INTERNAL: Process a convert value which specifies the name of an EclipseLink converter to process with this accessor's mapping. |
| protected void | |
| protected void | processProperty(DatabaseMapping mapping, PropertyMetadata property)
INTERNAL: Adds properties to the mapping. |
| protected void | processReturnInsert()
INTERNAL: Subclasses should call this method if they want the warning message or override the method if they want/support different behavior. |
| protected void | processReturnInsertAndUpdate()
INTERNAL: Subclasses should call this method if they want the warning message. |
| protected void | processReturnUpdate()
INTERNAL: Subclasses should call this method if they want the warning message or override the method if they want/support different behavior. |
| protected void | processSerialized(DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process a potential serializable attribute. |
| protected void | processSerialized(DatabaseMapping mapping, MetadataClass referenceClass, MetadataClass classification, boolean isForMapKey)
INTERNAL: Process a potential serializable attribute. |
| protected void | processTemporal(TemporalMetadata temporal, DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process a temporal type accessor. |
| protected void | processUUID(DatabaseMapping mapping, MetadataClass referenceClass, boolean isForMapKey)
INTERNAL: Process a UUID attribute. |
| protected void | setAccessorMethods(DatabaseMapping mapping)
INTERNAL: Set the getter and setter access methods for this accessor. |
| public void | |
| public void | setClassAccessor(ClassAccessor classAccessor)
INTERNAL: Sets the class accessor for this mapping accessor. |
| public void | |
| protected void | setIndirectionPolicy(ContainerMapping mapping, String mapKey, boolean usesIndirection)
INTERNAL: Set the correct indirection policy on a collection mapping. |
| protected void | setMapping(DatabaseMapping mapping)
INTERNAL: This will do three things: 1 - process any common level metadata for all mappings. |
| protected void | setOverrideMapping(DatabaseMapping mapping)
INTERNAL: An override mapping is created when an association override is specified to a relationship accessor on an embeddable class. |
| protected void | setTemporal(TemporalMetadata metadata, boolean isForMapKey)
INTERNAL: Set the temporal metadata for this accessor. |
| public String | |
| protected void | updatePrimaryKeyField(MappingAccessor idAccessor, DatabaseField overrideField)
INTERNAL: Update the primary key field on the owning descriptor the override field given. |
| public boolean | |
| protected boolean | |
| public boolean | |
| public boolean |