org.apache.ojb.broker.metadata.fieldaccess
Interface PersistentField
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- AnonymousPersistentField, PersistentFieldAutoProxyImpl, PersistentFieldAutoProxyImplNew, PersistentFieldBase, PersistentFieldDirectAccessImplNew, PersistentFieldDirectImpl, PersistentFieldDynaBeanImpl, PersistentFieldDynaBeanImplNew, PersistentFieldIntrospectorImpl, PersistentFieldIntrospectorImplNew, PersistentFieldPrivilegedImpl, PersistentFieldPrivilegedImplNew, SuperReferenceDescriptor.SuperReferenceField
public interface PersistentField
- extends Serializable
- Version:
- $Id: PersistentField.java,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
- Author:
- Thomas Mahler
getDeclaringClass
Class getDeclaringClass()
getName
String getName()
getType
Class getType()
set
void set(Object obj,
Object value)
throws MetadataException
- Sets the field represented by this PersistentField object on the specified object argument to the specified new value.
The new value is automatically unwrapped if the underlying field has a primitive type.
This implementation invokes set() on its underlying Field object if the argument is not null.
OBS IllegalArgumentExceptions are wrapped as PersistenceBrokerExceptions.
- Parameters:
obj
- The target object (no proxy objects allowed).value
- The value to set.
- Throws:
MetadataException
- if there is an error setting this field value on obj- See Also:
Field
get
Object get(Object anObject)
throws MetadataException
- Returns the value of the field represented by this PersistentField, on the specified object.
This implementation invokes get() on its underlying Field object.
- Parameters:
anObject
- - The object instance (proxy objects are not allowed here) which we are
trying to get the field value from.
- Throws:
MetadataException
- if there is an error getting this field value from obj- See Also:
Field
usesAccessorsAndMutators
boolean usesAccessorsAndMutators()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.