Modifier and Type | Field and Description |
---|---|
protected List<DatabaseMapping> |
ClassDescriptor.lockableMappings |
protected Vector<DatabaseMapping> |
ClassDescriptor.mappings |
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ClassDescriptor.addDirectMapping(String attributeName,
String fieldName)
PUBLIC:
Add a direct mapping to the receiver.
|
DatabaseMapping |
ClassDescriptor.addDirectMapping(String attributeName,
String getMethodName,
String setMethodName,
String fieldName)
PUBLIC:
Add a direct mapping to the receiver.
|
DatabaseMapping |
ClassDescriptor.addMapping(DatabaseMapping mapping)
PUBLIC:
Add a database mapping to the receiver.
|
DatabaseMapping |
ClassDescriptor.getMappingForAttributeName(String attributeName)
PUBLIC:
Returns the mapping associated with a given attribute name.
|
protected DatabaseMapping |
VersionLockingPolicy.mappingFromLockField()
INTERNAL:
returns the mapping from the writelock field.
|
DatabaseMapping |
ClassDescriptor.removeMappingForAttributeName(String attributeName)
ADVANCED:
Removes the locally defined mapping associated with a given attribute name.
|
Modifier and Type | Method and Description |
---|---|
List<DatabaseMapping> |
ClassDescriptor.getLockableMappings()
INTERNAL:
Returns a reference to the mappings that must be traverse when locking
|
Vector<DatabaseMapping> |
ClassDescriptor.getMappings()
PUBLIC:
Returns mappings
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ClassDescriptor.addMapping(DatabaseMapping mapping)
PUBLIC:
Add a database mapping to the receiver.
|
protected void |
ClassDescriptor.prepareCascadeLockingPolicy(DatabaseMapping mapping)
INTERNAL:
|
protected void |
ClassDescriptor.validateMappingType(DatabaseMapping mapping) |
Modifier and Type | Method and Description |
---|---|
void |
ClassDescriptor.setLockableMappings(List<DatabaseMapping> lockableMappings)
INTERNAL:
Set the list of lockable mappings for this project
This method is provided for CMP use.
|
void |
ClassDescriptor.setMappings(Vector<DatabaseMapping> mappings)
INTERNAL:
Set the mappings.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
DescriptorException.mapping |
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
DescriptorException.getMapping()
PUBLIC:
Return the mapping that the problem was detected in.
|
Constructor and Description |
---|
DescriptorException(String theMessage,
DatabaseMapping mapping)
INTERNAL:
TopLink exceptions should only be thrown by TopLink.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
DescriptorIterator.currentMapping |
Modifier and Type | Field and Description |
---|---|
protected List<DatabaseMapping> |
ObjectBuilder.cloningMappings
PERF: Cache mappings that require cloning.
|
protected Map<String,DatabaseMapping> |
ObjectBuilder.mappingsByAttribute |
protected Map<DatabaseField,DatabaseMapping> |
ObjectBuilder.mappingsByField |
protected Vector<DatabaseMapping> |
ObjectBuilder.nonPrimaryKeyMappings |
protected Vector<DatabaseMapping> |
ObjectBuilder.primaryKeyMappings |
protected Map<DatabaseField,Vector<DatabaseMapping>> |
ObjectBuilder.readOnlyMappingsByField |
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ObjectBuilder.getBaseMappingForField(DatabaseField databaseField)
Return the base mapping for the given DatabaseField.
|
DatabaseMapping |
DescriptorIterator.getCurrentMapping() |
DatabaseMapping |
ObjectBuilder.getMappingForAttributeName(String name)
Return the mapping for the specified attribute name.
|
DatabaseMapping |
ObjectBuilder.getMappingForField(DatabaseField field)
Return al the mapping for the specified field.
|
Modifier and Type | Method and Description |
---|---|
List<DatabaseMapping> |
ObjectBuilder.getCloningMappings()
PERF:
Return all mappings that require cloning.
|
protected Map<String,DatabaseMapping> |
ObjectBuilder.getMappingsByAttribute()
Return all the mapping to attribute associations
|
Map<DatabaseField,DatabaseMapping> |
ObjectBuilder.getMappingsByField()
INTERNAL:
Return all the mapping to field associations
|
protected Vector<DatabaseMapping> |
ObjectBuilder.getNonPrimaryKeyMappings()
Return the non primary key mappings.
|
Vector<DatabaseMapping> |
ObjectBuilder.getPrimaryKeyMappings()
Return primary key mappings.
|
Map<DatabaseField,Vector<DatabaseMapping>> |
ObjectBuilder.getReadOnlyMappingsByField()
INTERNAL:
Return all the read-only mapping to field associations
|
Vector<DatabaseMapping> |
ObjectBuilder.getReadOnlyMappingsForField(DatabaseField field)
Return all the read-only mapping for the specified field.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectBuilder.assignReturnValueToMapping(Object object,
ReadObjectQuery query,
AbstractRecord row,
DatabaseField field,
DatabaseMapping mapping,
Collection handledMappings)
INTERNAL:
Assign values from objectRow to the object through the mapping.
|
boolean |
ObjectBuilder.isPrimaryKeyMapping(DatabaseMapping mapping) |
void |
DescriptorIterator.iterateForAggregateMapping(Object aggregateObject,
DatabaseMapping mapping,
ClassDescriptor descriptor)
Iterate on the mapping's reference object and
recursively iterate on the reference object's
reference objects.
|
void |
DescriptorIterator.iterateIndirectContainerForMapping(IndirectContainer container,
DatabaseMapping mapping)
Iterate on the indirection object for its mapping.
|
void |
DescriptorIterator.iteratePrimitiveForMapping(Object primitiveValue,
DatabaseMapping mapping)
Iterate on the primitive value for its mapping.
|
void |
DescriptorIterator.iterateReferenceObjectForMapping(Object referenceObject,
DatabaseMapping mapping)
Iterate on the mapping's reference object and
recursively iterate on the reference object's
reference objects.
|
void |
DescriptorIterator.iterateValueHolderForMapping(ValueHolderInterface valueHolder,
DatabaseMapping mapping)
Iterate on the value holder for its mapping.
|
void |
DescriptorIterator.setCurrentMapping(DatabaseMapping currentMapping) |
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectBuilder.setMappingsByAttribute(Map<String,DatabaseMapping> theAttributeMappings)
All the mappings and their respective attribute associations are cached for performance improvement.
|
void |
ObjectBuilder.setMappingsByField(Map<DatabaseField,DatabaseMapping> theFieldMappings)
INTERNAL:
All the mappings and their respective field associations are cached for performance improvement.
|
protected void |
ObjectBuilder.setNonPrimaryKeyMappings(Vector<DatabaseMapping> theNonPrimaryKeyMappings)
The non primary key mappings are cached to improve performance.
|
protected void |
ObjectBuilder.setPrimaryKeyMappings(Vector<DatabaseMapping> thePrimaryKeyMappings)
The primary key mappings are cached to improve performance.
|
void |
ObjectBuilder.setReadOnlyMappingsByField(Map<DatabaseField,Vector<DatabaseMapping>> theReadOnlyFieldMappings)
INTERNAL:
All the read-only mappings and their respective field associations are cached for performance improvement.
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
MetadataDescriptor.getMappingForAttributeName(String attributeName)
INTERNAL:
|
DatabaseMapping |
MetadataDescriptor.getMappingForAttributeName(String attributeName,
MetadataAccessor referencingAccessor)
INTERNAL:
Non-owning mappings that need to look up the owning mapping, should call
this method with their respective accessor to check for circular mappedBy
references.
|
Modifier and Type | Method and Description |
---|---|
List<DatabaseMapping> |
MetadataDescriptor.getMappings()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataDescriptor.addMapping(DatabaseMapping mapping)
INTERNAL:
|
void |
MetadataValidator.throwCouldNotFindMapKey(String fieldOrPropertyName,
Class referenceClass,
DatabaseMapping mapping)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
protected DatabaseMapping |
RelationshipAccessor.getOwningMapping()
INTERNAL:
Method to return an owner mapping.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DirectAccessor.processEnumerated(DatabaseMapping mapping)
INTERNAL: (Overridden in BasicAccessor and BasicMapAccessor)
Process an @Enumerated.
|
protected void |
BasicAccessor.processEnumerated(DatabaseMapping mapping)
INTERNAL: (Override from DirectAccessor)
Process an @Enumerated.
|
protected void |
DirectAccessor.processJPAConverters(DatabaseMapping mapping)
INTERNAL:
Process an @Enumerated, @Lob or @Temporal annotation.
|
protected void |
DirectAccessor.processLob(DatabaseMapping mapping)
INTERNAL: (Overridden in BasicAccessor)
Process a @Lob or lob sub-element.
|
protected void |
BasicAccessor.processLob(DatabaseMapping mapping)
INTERNAL: (Override from DirectAccessor)
Process a @Lob or lob sub-element.
|
protected void |
DirectAccessor.processMappingConverter(DatabaseMapping mapping)
INTERNAL:
Process a converter for the given mapping.
|
protected void |
DirectAccessor.processSerialized(DatabaseMapping mapping)
INTERNAL:
Process a potential serializable attribute.
|
protected void |
DirectAccessor.processTemporal(DatabaseMapping mapping)
INTERNAL:
Process a temporal type accessor.
|
protected void |
MetadataAccessor.setAccessorMethods(DatabaseMapping mapping)
INTERNAL:
Set the getter and setter access methods for this accessor.
|
abstract void |
DirectAccessor.setConverter(DatabaseMapping mapping,
Converter converter)
INTERNAL:
|
void |
BasicAccessor.setConverter(DatabaseMapping mapping,
Converter converter)
INTERNAL:
|
abstract void |
DirectAccessor.setFieldClassification(DatabaseMapping mapping,
Class classification)
INTERNAL:
|
void |
BasicAccessor.setFieldClassification(DatabaseMapping mapping,
Class classification)
INTERNAL:
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
QueryKeyExpression.mapping
Same for mappings.
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
QueryKeyExpression.getMapping() |
DatabaseMapping |
DataExpression.getMapping() |
DatabaseMapping |
QueryKeyExpression.getMappingFromQueryKey() |
Modifier and Type | Method and Description |
---|---|
protected CacheKey |
WriteLockManager.checkAndLockObject(Object objectToLock,
Map lockedObjects,
DatabaseMapping mapping,
AbstractSession session)
INTERNAL:
Simply check that the object is not already locked then pass it on to the locking method
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
UnitOfWorkValueHolder.mapping
The mapping for the attribute.
|
protected DatabaseMapping |
IndirectionPolicy.mapping |
Modifier and Type | Method and Description |
---|---|
protected DatabaseMapping |
UnitOfWorkValueHolder.getMapping() |
DatabaseMapping |
IndirectionPolicy.getMapping()
INTERNAL:
Return the database mapping that uses the indirection policy.
|
Modifier and Type | Method and Description |
---|---|
protected void |
UnitOfWorkValueHolder.setMapping(DatabaseMapping mapping) |
void |
IndirectionPolicy.setMapping(DatabaseMapping mapping)
INTERNAL:
set the database mapping that uses the indirection policy.
|
Constructor and Description |
---|
UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue,
Object clone,
DatabaseMapping mapping,
UnitOfWorkImpl unitOfWork) |
UnitOfWorkValueHolder(ValueHolderInterface attributeValue,
Object clone,
DatabaseMapping mapping,
UnitOfWorkImpl unitOfWork) |
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
AttributeNode.getMapping() |
DatabaseMapping |
Node.resolveMapping(GenerationContext context)
resolveMapping: Answer the mapping associated with the contained nodes.
|
DatabaseMapping |
DotNode.resolveMapping(GenerationContext context)
INTERNAL
Answer the mapping resulting from traversing the receiver's nodes
|
DatabaseMapping |
Node.resolveMapping(GenerationContext context,
Class ownerClass)
resolveMapping: Answer the mapping associated with the contained nodes.
|
DatabaseMapping |
AttributeNode.resolveMapping(GenerationContext context,
Class ownerClass)
resolveMapping: Answer the mapping which corresponds to my variableName.
|
Modifier and Type | Method and Description |
---|---|
void |
AttributeNode.setMapping(DatabaseMapping mapping) |
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
ReportItem.mapping
Mapping which relates field to attribute, used to convert value and determine reference descriptor
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ReportItem.getMapping() |
Modifier and Type | Method and Description |
---|---|
void |
ReportItem.setMapping(DatabaseMapping mapping) |
protected void |
DatabaseQueryMechanism.updateChangeSet(DatabaseMapping mapping,
ObjectChangeSet objectChangeSet,
DatabaseField field,
Object object,
Collection handledMappings) |
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
ChangeRecord.mapping
This attribute stores the mapping allong with the attribute so that the mapping does not need to be looked up
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ChangeRecord.getMapping()
ADVANCED:
Returns the mapping for the attribute this ChangeRecord Represents
|
Modifier and Type | Method and Description |
---|---|
void |
CommitManager.addDataModificationEvent(DatabaseMapping mapping,
Object[] event)
Add the data query to be performed at the end of the commit.
|
boolean |
MergeManager.mergeChangesInCollection(Object source,
Object target,
Object backup,
DatabaseMapping mapping)
Merge the changes from the collection of a source object into the target using the backup as the diff.
|
void |
ChangeRecord.setMapping(DatabaseMapping mapping)
Sets the mapping for the attribute that this Record represents
|
void |
ObjectChangeSet.updateChangeRecordForAttribute(DatabaseMapping mapping,
Object value)
INTERNAL:
Used to update a changeRecord that is stored in the CHangeSet with a new value.
|
Modifier and Type | Class and Description |
---|---|
class |
AggregateCollectionMapping
Purpose: The aggregate collection mapping is used to represent the aggregate relationship between a single
source object and a collection of target objects.
|
class |
AggregateMapping
Purpose: Two objects can be considered to be related by aggregation if there is a strict
1:1 relationship between the objects.
|
class |
AggregateObjectMapping
Purpose:Two objects can be considered to be related by aggregation if there is a strict
1:1 relationship between the objects.
|
class |
CollectionMapping
Purpose: Abstract class for relationship mappings which store collection of objects
|
class |
DirectCollectionMapping
Purpose: This mapping is used to store a collection of simple types (String, Number, Date, etc.)
into a single table.
|
class |
DirectMapMapping
Mapping for a collection of key-value pairs.
|
class |
DirectToFieldMapping
Purpose: Maps an attribute to the corresponding database field type.
|
class |
ForeignReferenceMapping
Purpose: Abstract class for relationship mappings
|
class |
ManyToManyMapping
Purpose: Many to many mappings are used to represent the relationships
between a collection of source objects and a collection of target objects.
|
class |
ObjectReferenceMapping
Purpose: Abstract class for 1:1, varibale 1:1 and reference mappings
|
class |
OneToManyMapping
Purpose: This mapping is used to represent the
typical RDBMS relationship between a single
source object and collection of target objects; where,
on the database, the target objects have references
(foreign keys) to the source object.
|
class |
OneToOneMapping
Purpose: One to one mappings are used to represent a pointer references
between two java objects.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
ForeignReferenceMapping.relationshipPartner
Used to reference the other half of a bi-directional relationship.
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ForeignReferenceMapping.getRelationshipPartner()
INTERNAL:
Return the relationshipPartner mapping for this bi-directional mapping.
|
DatabaseMapping |
DirectCollectionMapping.getRelationshipPartner()
INTERNAL:
Return the relationshipPartner mapping for this bi-directional mapping.
|
DatabaseMapping |
DatabaseMapping.getRelationshipPartner()
INTERNAL:
Return the relationshipPartner mapping for this bi-directional mapping.
|
Modifier and Type | Method and Description |
---|---|
void |
ForeignReferenceMapping.setRelationshipPartner(DatabaseMapping mapping)
INTERNAL:
Sets the relationshipPartner mapping for this bi-directional mapping.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseMapping |
TypeConversionConverter.mapping |
protected DatabaseMapping |
SerializedObjectConverter.mapping |
protected DatabaseMapping |
ObjectTypeConverter.mapping |
protected DatabaseMapping |
ClassInstanceConverter.mapping |
Modifier and Type | Method and Description |
---|---|
protected DatabaseMapping |
TypeConversionConverter.getMapping()
INTERNAL:
Return the mapping.
|
protected DatabaseMapping |
SerializedObjectConverter.getMapping()
INTERNAL:
Return the mapping.
|
protected DatabaseMapping |
ObjectTypeConverter.getMapping()
INTERNAL:
Return the mapping.
|
protected DatabaseMapping |
ClassInstanceConverter.getMapping()
INTERNAL:
Return the mapping.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeConversionConverter.initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the mapping.
|
void |
SerializedObjectConverter.initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the mapping.
|
void |
ObjectTypeConverter.initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the mapping.
|
void |
Converter.initialize(DatabaseMapping mapping,
Session session)
PUBLIC:
Allow for any initialization.
|
void |
ClassInstanceConverter.initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the mapping.
|
protected void |
ObjectTypeConverter.setMapping(DatabaseMapping mapping)
INTERNAL:
Set the mapping.
|
Constructor and Description |
---|
EnumTypeConverter(DatabaseMapping mapping,
Class enumClass,
boolean useOrdinalValues)
PUBLIC:
Creating an enum converter this way will create the conversion values
for you using ordinal or name values.
|
EnumTypeConverter(DatabaseMapping mapping,
String enumClassName)
PUBLIC:
Creating an enum converter this way expects that you will provide
the conversion values separately.
|
ObjectTypeConverter(DatabaseMapping mapping)
PUBLIC:
Default constructor.
|
SerializedObjectConverter(DatabaseMapping mapping)
PUBLIC:
Default constructor.
|
TypeConversionConverter(DatabaseMapping mapping)
PUBLIC:
Default constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDirectMapping
Purpose: Maps an attribute to the corresponding database field type.
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
ObjectLevelReadQuery.getLeafMappingFor(Expression expression,
ClassDescriptor rootDescriptor)
INTERNAL:
Lookup the mapping for this item by traversing its expression recursively.
|
Modifier and Type | Method and Description |
---|---|
void |
EntityResult.getValueFromRecordForMapping(DatabaseRecord entityRecord,
DatabaseMapping mapping,
FieldResult fieldResult,
DatabaseRecord databaseRecord)
INTERNAL:
This method is for processing all FieldResults for a mapping.
|
boolean |
ObjectLevelReadQuery.shouldReadMapping(DatabaseMapping mapping)
INTERNAL:
Check if the mapping is part of the partial attributes.
|
boolean |
ObjectBuildingQuery.shouldReadMapping(DatabaseMapping mapping)
INTERNAL:
Check if the mapping is part of the partial attributes.
|
Copyright © 2022. All rights reserved.