public abstract class CoreMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,ABSTRACT_SESSION extends org.eclipse.persistence.internal.core.sessions.CoreAbstractSession,CONTAINER_POLICY extends org.eclipse.persistence.internal.core.queries.CoreContainerPolicy,DESCRIPTOR extends CoreDescriptor,FIELD extends org.eclipse.persistence.internal.core.helper.CoreField>
extends java.lang.Object
Constructor and Description |
---|
CoreMapping() |
Modifier and Type | Method and Description |
---|---|
abstract ATTRIBUTE_ACCESSOR |
getAttributeAccessor()
ADVANCED: Return the attributeAccessor.
|
abstract java.lang.Class |
getAttributeClassification()
PUBLIC: The classification type for the attribute this mapping represents
|
abstract java.lang.String |
getAttributeName()
PUBLIC:
Return the name of the attribute set in the mapping.
|
abstract java.lang.Object |
getAttributeValueFromObject(java.lang.Object object)
INTERNAL: Return the value of an attribute which this mapping represents
for an object.
|
abstract CONTAINER_POLICY |
getContainerPolicy()
INTERNAL: Return the mapping's containerPolicy.
|
abstract DESCRIPTOR |
getDescriptor()
INTERNAL: Return the descriptor to which this mapping belongs
|
abstract FIELD |
getField()
INTERNAL:
Return the field associated with this mapping if there is exactly one.
|
abstract java.util.Vector<FIELD> |
getFields()
INTERNAL:
Returns a vector of all the fields this mapping represents.
|
abstract DESCRIPTOR |
getReferenceDescriptor()
PUBLIC:
Return the referenceDescriptor.
|
abstract boolean |
isAbstractCompositeCollectionMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isAbstractCompositeDirectCollectionMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isAbstractCompositeObjectMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isAbstractDirectMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isCollectionMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isDirectToFieldMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isReadOnly()
INTERNAL:
Returns true if mapping is read only else false.
|
abstract boolean |
isReferenceMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isTransformationMapping()
INTERNAL:
Related mapping should implement this method to return true.
|
abstract boolean |
isWriteOnly()
INTERNAL:
Some mappings support no attribute (transformation and multitenant primary key).
|
abstract void |
setAttributeAccessor(ATTRIBUTE_ACCESSOR attributeAccessor)
ADVANCED: Set the attributeAccessor.
|
abstract void |
setAttributeName(java.lang.String attributeName)
PUBLIC:
Sets the name of the attribute in the mapping.
|
abstract void |
setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
INTERNAL:
Set the value of the attribute mapped by this mapping.
|
abstract void |
setDescriptor(DESCRIPTOR descriptor)
INTERNAL:
Set the descriptor to which this mapping belongs
|
protected abstract void |
setFields(java.util.Vector<FIELD> fields)
INTERNAL:
Set the mapping's field collection.
|
abstract java.lang.Object |
valueFromObject(java.lang.Object anObject,
FIELD field,
ABSTRACT_SESSION session)
INTERNAL:
A subclass should extract the value from the object for the field, if it does not map the field then
it should return null.
|
public abstract ATTRIBUTE_ACCESSOR getAttributeAccessor()
public abstract java.lang.Class getAttributeClassification()
public abstract java.lang.String getAttributeName()
public abstract java.lang.Object getAttributeValueFromObject(java.lang.Object object)
public abstract CONTAINER_POLICY getContainerPolicy()
public abstract DESCRIPTOR getDescriptor()
public abstract FIELD getField()
public abstract java.util.Vector<FIELD> getFields()
public abstract DESCRIPTOR getReferenceDescriptor()
public abstract boolean isAbstractCompositeCollectionMapping()
public abstract boolean isAbstractCompositeDirectCollectionMapping()
public abstract boolean isAbstractCompositeObjectMapping()
public abstract boolean isAbstractDirectMapping()
public abstract boolean isCollectionMapping()
public abstract boolean isDirectToFieldMapping()
public abstract boolean isReadOnly()
public abstract boolean isReferenceMapping()
public abstract boolean isTransformationMapping()
public abstract boolean isWriteOnly()
public abstract void setAttributeAccessor(ATTRIBUTE_ACCESSOR attributeAccessor)
public abstract void setAttributeName(java.lang.String attributeName)
public abstract void setAttributeValueInObject(java.lang.Object object, java.lang.Object value)
public abstract void setDescriptor(DESCRIPTOR descriptor)
protected abstract void setFields(java.util.Vector<FIELD> fields)
public abstract java.lang.Object valueFromObject(java.lang.Object anObject, FIELD field, ABSTRACT_SESSION session)