- java.lang.Object
-
- org.eclipse.persistence.descriptors.CMPPolicy.KeyIsElementAccessor
-
- All Implemented Interfaces:
Serializable
,CMPPolicy.KeyElementAccessor
- Enclosing class:
- CMPPolicy
protected static final class CMPPolicy.KeyIsElementAccessor extends Object implements CMPPolicy.KeyElementAccessor, 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 String
attributeName
protected org.eclipse.persistence.internal.helper.DatabaseField
databaseField
protected DatabaseMapping
mapping
-
Constructor Summary
Constructors Constructor Description KeyIsElementAccessor(String attributeName, org.eclipse.persistence.internal.helper.DatabaseField databaseField, DatabaseMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeName()
org.eclipse.persistence.internal.helper.DatabaseField
getDatabaseField()
DatabaseMapping
getMapping()
Object
getValue(Object object, org.eclipse.persistence.internal.sessions.AbstractSession session)
boolean
isNestedAccessor()
void
setValue(Object object, Object value)
-
-
-
Field Detail
-
attributeName
protected String attributeName
-
databaseField
protected org.eclipse.persistence.internal.helper.DatabaseField databaseField
-
mapping
protected DatabaseMapping mapping
-
-
Constructor Detail
-
KeyIsElementAccessor
public KeyIsElementAccessor(String attributeName, org.eclipse.persistence.internal.helper.DatabaseField databaseField, DatabaseMapping mapping)
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
- Specified by:
getAttributeName
in interfaceCMPPolicy.KeyElementAccessor
-
getDatabaseField
public org.eclipse.persistence.internal.helper.DatabaseField getDatabaseField()
- Specified by:
getDatabaseField
in interfaceCMPPolicy.KeyElementAccessor
-
getMapping
public DatabaseMapping getMapping()
- Specified by:
getMapping
in interfaceCMPPolicy.KeyElementAccessor
-
getValue
public Object getValue(Object object, org.eclipse.persistence.internal.sessions.AbstractSession session)
- Specified by:
getValue
in interfaceCMPPolicy.KeyElementAccessor
-
isNestedAccessor
public boolean isNestedAccessor()
- Specified by:
isNestedAccessor
in interfaceCMPPolicy.KeyElementAccessor
-
setValue
public void setValue(Object object, Object value)
- Specified by:
setValue
in interfaceCMPPolicy.KeyElementAccessor
-
-