|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.metadata.fieldaccess.PersistentFieldBase
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldAutoProxyImpl
public class PersistentFieldAutoProxyImpl
PeristentField implementation that attempts to detect the nature of the field it is persisting.
First checks to see if it is a Field, then Property, then DynaBean
It will match in that order.
| Field Summary | |
|---|---|
protected Class[] |
persistentFieldClasses
Define the number and ordering of the used PersistentField
implementaions. |
| Fields inherited from class org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldBase |
|---|
PATH_TOKEN, rootObjectType |
| Constructor Summary | |
|---|---|
PersistentFieldAutoProxyImpl()
|
|
PersistentFieldAutoProxyImpl(Class clazz,
String fieldname)
|
|
| Method Summary | |
|---|---|
Object |
get(Object anObject)
Returns the value of the field represented by this PersistentField, on the specified object. |
Class |
getType()
|
protected boolean |
makeAccessible()
A value of true indicates that this field should suppress Java language access checking when it is used. |
void |
set(Object obj,
Object value)
Sets the field represented by this PersistentField object on the specified object argument to the specified new value. |
boolean |
usesAccessorsAndMutators()
|
| Methods inherited from class org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldBase |
|---|
buildErrorGetMsg, buildErrorSetMsg, getDeclaringClass, getFieldGraph, getLog, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class[] persistentFieldClasses
PersistentField
implementaions. Override this field to add new classes or to change
setection order.
| Constructor Detail |
|---|
public PersistentFieldAutoProxyImpl()
public PersistentFieldAutoProxyImpl(Class clazz,
String fieldname)
| Method Detail |
|---|
public Object get(Object anObject)
throws MetadataException
PersistentField
anObject - - The object instance (proxy objects are not allowed here) which we are
trying to get the field value from.
MetadataException - if there is an error getting this field value from objField
public void set(Object obj,
Object value)
throws MetadataException
PersistentField
obj - The target object (no proxy objects allowed).value - The value to set.
MetadataException - if there is an error setting this field value on objFieldpublic Class getType()
protected boolean makeAccessible()
PersistentFieldBase
makeAccessible in class PersistentFieldBasepublic boolean usesAccessorsAndMutators()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||