org.apache.ojb.broker.metadata.fieldaccess
Interface PersistentField
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- AbstractPersistentField, AnonymousPersistentField, PersistentFieldAutoProxyImpl
- public interface PersistentField
- extends java.io.Serializable
- Version:
- $Id: PersistentField.java,v 1.5 2004/01/07 11:41:21 thma Exp $
- Author:
- Thomas Mahler
Method Summary |
java.lang.Object |
get(java.lang.Object anObject)
Returns the value of the field represented by this PersistentField, on the specified object. |
java.lang.Class |
getDeclaringClass()
|
java.lang.String |
getName()
|
java.lang.Class |
getType()
|
void |
set(java.lang.Object obj,
java.lang.Object value)
Sets the field represented by this PersistentField object on the specified object argument to the specified new value. |
boolean |
usesAccessorsAndMutators()
|
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
getDeclaringClass
public java.lang.Class getDeclaringClass()
getName
public java.lang.String getName()
getType
public java.lang.Class getType()
set
public void set(java.lang.Object obj,
java.lang.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.
- Throws:
MetadataException
- if there is an error setting this field value on obj- See Also:
Field
get
public java.lang.Object get(java.lang.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 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
public boolean usesAccessorsAndMutators()
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14