EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.descriptors
Class CMPPolicy.KeyIsElementAccessor

java.lang.Object
  extended by org.eclipse.persistence.descriptors.CMPPolicy.KeyIsElementAccessor
All Implemented Interfaces:
java.io.Serializable, CMPPolicy.KeyElementAccessor
Enclosing class:
CMPPolicy

protected class CMPPolicy.KeyIsElementAccessor
extends java.lang.Object
implements CMPPolicy.KeyElementAccessor, java.io.Serializable

INTERNAL: This class will be used when the keyClass is a primitive

See Also:
Serialized Form

Field Summary
protected  java.lang.String attributeName
           
protected  org.eclipse.persistence.internal.helper.DatabaseField databaseField
           
protected  DatabaseMapping mapping
           
 
Constructor Summary
CMPPolicy.KeyIsElementAccessor(java.lang.String attributeName, org.eclipse.persistence.internal.helper.DatabaseField databaseField, DatabaseMapping mapping)
           
 
Method Summary
 java.lang.String getAttributeName()
           
 org.eclipse.persistence.internal.helper.DatabaseField getDatabaseField()
           
 DatabaseMapping getMapping()
           
 java.lang.Object getValue(java.lang.Object object, org.eclipse.persistence.internal.sessions.AbstractSession session)
           
 void setValue(java.lang.Object object, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeName

protected java.lang.String attributeName

databaseField

protected org.eclipse.persistence.internal.helper.DatabaseField databaseField

mapping

protected DatabaseMapping mapping
Constructor Detail

CMPPolicy.KeyIsElementAccessor

public CMPPolicy.KeyIsElementAccessor(java.lang.String attributeName,
                                      org.eclipse.persistence.internal.helper.DatabaseField databaseField,
                                      DatabaseMapping mapping)
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Specified by:
getAttributeName in interface CMPPolicy.KeyElementAccessor

getDatabaseField

public org.eclipse.persistence.internal.helper.DatabaseField getDatabaseField()
Specified by:
getDatabaseField in interface CMPPolicy.KeyElementAccessor

getMapping

public DatabaseMapping getMapping()
Specified by:
getMapping in interface CMPPolicy.KeyElementAccessor

getValue

public java.lang.Object getValue(java.lang.Object object,
                                 org.eclipse.persistence.internal.sessions.AbstractSession session)
Specified by:
getValue in interface CMPPolicy.KeyElementAccessor

setValue

public void setValue(java.lang.Object object,
                     java.lang.Object value)
Specified by:
setValue in interface CMPPolicy.KeyElementAccessor

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference