public class AnonymousPersistentField extends java.lang.Object implements PersistentField
Constructor and Description |
---|
AnonymousPersistentField(java.lang.String fieldname) |
Modifier and Type | Method and Description |
---|---|
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.
|
public AnonymousPersistentField(java.lang.String fieldname)
public void set(java.lang.Object obj, java.lang.Object value) throws MetadataException
PersistentField
set
in interface 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 objField
public java.lang.Object get(java.lang.Object anObject) throws MetadataException
PersistentField
get
in interface 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 java.lang.Class getDeclaringClass()
getDeclaringClass
in interface PersistentField
PersistentField.getDeclaringClass()
public java.lang.String getName()
getName
in interface PersistentField
PersistentField.getName()
public java.lang.Class getType()
getType
in interface PersistentField
PersistentField.getType()
public boolean usesAccessorsAndMutators()
usesAccessorsAndMutators
in interface PersistentField
PersistentField.usesAccessorsAndMutators()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30