|
||||||||||
| 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
public class AnonymousPersistentField
This class handle an anonymous persistent fiels for 1-1 association, and ojbConcreteClass
| Constructor Summary | |
|---|---|
AnonymousPersistentField(String fieldname)
|
|
| Method Summary | |
|---|---|
Object |
get(Object anObject)
Returns the value of the field represented by this PersistentField, on the specified object. |
Class |
getDeclaringClass()
Always returns null. |
protected Object |
getFromFieldCache(Object key)
|
String |
getName()
|
Class |
getType()
Always returns null. |
protected void |
putToFieldCache(Object key,
Object value)
|
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()
Returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnonymousPersistentField(String fieldname)
| Method Detail |
|---|
public void set(Object obj,
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 Object get(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 objField
protected void putToFieldCache(Object key,
Object value)
protected Object getFromFieldCache(Object key)
public Class getDeclaringClass()
getDeclaringClass in interface PersistentFieldPersistentField.getDeclaringClass()public String getName()
getName in interface PersistentFieldPersistentField.getName()public 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 | |||||||||