|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField
org.apache.ojb.broker.metadata.fieldaccess.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 |
Fields inherited from class org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField |
PATH_TOKEN, PERSISTENT_FIELD_IMPL_FOR_NESTED |
Constructor Summary | |
PersistentFieldAutoProxyImpl()
Being nice to Class.newInstance() seems popular. |
|
PersistentFieldAutoProxyImpl(java.lang.Class type,
java.lang.String fieldName)
Creates a new auto handler object for the indicated field. |
Method Summary | |
java.lang.Object |
doGet(java.lang.Object targetObject)
Gets the field value from the given target object. |
void |
doSet(java.lang.Object targetObject,
java.lang.Object value)
Set the field value for the given target object. |
java.lang.Class |
getDeclaringClass()
|
java.lang.String |
getName()
|
java.lang.Class |
getType()
|
boolean |
makeAccessible()
A value of true indicates that this field should suppress Java language access checking when it is used. |
java.lang.String |
toString()
|
boolean |
usesAccessorsAndMutators()
|
Methods inherited from class org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField |
buildMessageString, get, set |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PersistentFieldAutoProxyImpl()
public PersistentFieldAutoProxyImpl(java.lang.Class type, java.lang.String fieldName)
type
- The type of the object containing the fieldfieldName
- The name of the fieldMethod Detail |
public void doSet(java.lang.Object targetObject, java.lang.Object value)
doSet
in class AbstractPersistentField
targetObject
- The object that contains the field to setvalue
- The value to setpublic java.lang.Object doGet(java.lang.Object targetObject)
doGet
in class AbstractPersistentField
targetObject
- The object that contains the field to set
public java.lang.Class getDeclaringClass()
getDeclaringClass
in interface PersistentField
getDeclaringClass
in class AbstractPersistentField
public boolean usesAccessorsAndMutators()
public java.lang.String getName()
getName
in interface PersistentField
getName
in class AbstractPersistentField
public java.lang.Class getType()
getType
in interface PersistentField
getType
in class AbstractPersistentField
public boolean makeAccessible()
AbstractPersistentField
makeAccessible
in class AbstractPersistentField
public java.lang.String toString()
toString
in class AbstractPersistentField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |