Class CMPPolicy.KeyIsElementAccessor
- java.lang.Object
-
- org.eclipse.persistence.descriptors.CMPPolicy.KeyIsElementAccessor
-
- All Implemented Interfaces:
java.io.Serializable,CMPPolicy.KeyElementAccessor
- Enclosing class:
- CMPPolicy
protected static final 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
Fields Modifier and Type Field Description protected java.lang.StringattributeNameprotected org.eclipse.persistence.internal.helper.DatabaseFielddatabaseFieldprotected DatabaseMappingmapping
-
Constructor Summary
Constructors Constructor Description KeyIsElementAccessor(java.lang.String attributeName, org.eclipse.persistence.internal.helper.DatabaseField databaseField, DatabaseMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeName()org.eclipse.persistence.internal.helper.DatabaseFieldgetDatabaseField()DatabaseMappinggetMapping()java.lang.ObjectgetValue(java.lang.Object object, org.eclipse.persistence.internal.sessions.AbstractSession session)booleanisNestedAccessor()voidsetValue(java.lang.Object object, java.lang.Object value)
-
-
-
Field Detail
-
attributeName
protected java.lang.String attributeName
-
databaseField
protected org.eclipse.persistence.internal.helper.DatabaseField databaseField
-
mapping
protected DatabaseMapping mapping
-
-
Constructor Detail
-
KeyIsElementAccessor
public KeyIsElementAccessor(java.lang.String attributeName, org.eclipse.persistence.internal.helper.DatabaseField databaseField, DatabaseMapping mapping)
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
- Specified by:
getAttributeNamein interfaceCMPPolicy.KeyElementAccessor
-
getDatabaseField
public org.eclipse.persistence.internal.helper.DatabaseField getDatabaseField()
- Specified by:
getDatabaseFieldin interfaceCMPPolicy.KeyElementAccessor
-
getMapping
public DatabaseMapping getMapping()
- Specified by:
getMappingin interfaceCMPPolicy.KeyElementAccessor
-
getValue
public java.lang.Object getValue(java.lang.Object object, org.eclipse.persistence.internal.sessions.AbstractSession session)- Specified by:
getValuein interfaceCMPPolicy.KeyElementAccessor
-
isNestedAccessor
public boolean isNestedAccessor()
- Specified by:
isNestedAccessorin interfaceCMPPolicy.KeyElementAccessor
-
setValue
public void setValue(java.lang.Object object, java.lang.Object value)- Specified by:
setValuein interfaceCMPPolicy.KeyElementAccessor
-
-