|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.metadata.fieldaccess.AnonymousPersistentField
This class handle an anonymous persistent fiels for 1-1 association, and ojbConcreteClass
| Constructor Summary | |
AnonymousPersistentField(java.lang.String fieldname)
|
|
| 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()
Always returns null. |
java.lang.String |
getName()
|
java.lang.Class |
getType()
Always returns null. |
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()
Returns false. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnonymousPersistentField(java.lang.String fieldname)
| Method Detail |
public void set(java.lang.Object obj,
java.lang.Object value)
throws MetadataException
PersistentField
set in interface PersistentFieldobj - The target object (no proxy objects allowed).value - The value to set.
MetadataException - if there is an error setting this field value on objField
public java.lang.Object get(java.lang.Object anObject)
throws MetadataException
PersistentField
get in interface PersistentFieldanObject - - 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 objFieldpublic java.lang.Class getDeclaringClass()
getDeclaringClass in interface PersistentFieldPersistentField.getDeclaringClass()public java.lang.String getName()
getName in interface PersistentFieldPersistentField.getName()public java.lang.Class getType()
getType in interface PersistentFieldPersistentField.getType()public boolean usesAccessorsAndMutators()
usesAccessorsAndMutators in interface PersistentFieldPersistentField.usesAccessorsAndMutators()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||