org.apache.ojb.broker.metadata
Class SuperReferenceDescriptor.SuperReferenceField
java.lang.Object
org.apache.ojb.broker.metadata.fieldaccess.AnonymousPersistentField
org.apache.ojb.broker.metadata.SuperReferenceDescriptor.SuperReferenceField
- All Implemented Interfaces:
- Serializable, PersistentField
- Enclosing class:
- SuperReferenceDescriptor
public static final class SuperReferenceDescriptor.SuperReferenceField
- extends AnonymousPersistentField
- See Also:
- Serialized Form
Method Summary |
Object |
get(Object obj)
Field values of specified 'obj' (the derived object) are copied to
'value' (base object) then value is returned as a referenced object. |
void |
set(Object target,
Object value)
Field values of 'value' (base object) are copied to 'obj' (derived object)
then obj is saved in a map |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuperReferenceDescriptor.SuperReferenceField
public SuperReferenceDescriptor.SuperReferenceField(SuperReferenceDescriptor superRef)
set
public void set(Object target,
Object value)
throws MetadataException
- Field values of 'value' (base object) are copied to 'obj' (derived object)
then obj is saved in a map
- Specified by:
set
in interface PersistentField
- Overrides:
set
in class AnonymousPersistentField
- Parameters:
target
- - the base object instancevalue
- - the derived object instance
- Throws:
MetadataException
- See Also:
Field
get
public Object get(Object obj)
throws MetadataException
- Field values of specified 'obj' (the derived object) are copied to
'value' (base object) then value is returned as a referenced object.
If the base object is the super class of the specified 'obj', then
return the specified object.
Else a base class instance will be created at runtime and the field values
from the derived object are copied to the base class object.
- Specified by:
get
in interface PersistentField
- Overrides:
get
in class AnonymousPersistentField
- Parameters:
obj
- - the base object instance
- Throws:
MetadataException
- See Also:
Field
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.