Package org.apache.cayenne.reflect
Class IdMapKeyAccessor
java.lang.Object
org.apache.cayenne.reflect.IdMapKeyAccessor
- All Implemented Interfaces:
- Serializable,- Accessor
public class IdMapKeyAccessor extends Object implements Accessor
A stateless read-only accessor of the map key value that is based on the Persistent
 object id. For single-column ID's the accessor returns a single value (e.g. an
 Integer). For multi-column ID's it returns the ObjectId.
- Since:
- 3.0
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description static AccessorSHARED_ACCESSOR
- 
Constructor SummaryConstructors Constructor Description IdMapKeyAccessor()
- 
Method SummaryModifier and Type Method Description StringgetName()Returns property name.ObjectgetValue(Object object)Returns a property value of an object without disturbing the object fault status.voidsetValue(Object object, Object newValue)Sets a property value of an object without disturbing the object fault status.
- 
Field Details- 
SHARED_ACCESSOR
 
- 
- 
Constructor Details- 
IdMapKeyAccessorpublic IdMapKeyAccessor()
 
- 
- 
Method Details- 
getNameDescription copied from interface:AccessorReturns property name.
- 
getValueDescription copied from interface:AccessorReturns a property value of an object without disturbing the object fault status.- Specified by:
- getValuein interface- Accessor
- Throws:
- PropertyException
 
- 
setValueDescription copied from interface:AccessorSets a property value of an object without disturbing the object fault status. Old value of the property is specified as a hint.- Specified by:
- setValuein interface- Accessor
- Throws:
- PropertyException
 
 
-