public class PersistentFieldDirectImpl extends PersistentFieldBase
PersistentField
implementation
is the high-speed version of the access strategies.
PATH_TOKEN
Constructor and Description |
---|
PersistentFieldDirectImpl() |
PersistentFieldDirectImpl(java.lang.Class type,
java.lang.String fieldname) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object target)
do not override this method, have a look at
getValueFrom(java.lang.reflect.Field, Object) |
java.lang.Class |
getType() |
void |
set(java.lang.Object target,
java.lang.Object value)
do not override this method, have a look at
setValueFor(java.lang.reflect.Field, Object, Object) |
boolean |
usesAccessorsAndMutators()
Always returns 'false'.
|
getDeclaringClass, getName, toString
public PersistentFieldDirectImpl()
public PersistentFieldDirectImpl(java.lang.Class type, java.lang.String fieldname)
public java.lang.Class getType()
public void set(java.lang.Object target, java.lang.Object value) throws MetadataException
setValueFor(java.lang.reflect.Field, Object, Object)
target
- 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 target) throws MetadataException
getValueFrom(java.lang.reflect.Field, Object)
target
- - 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 boolean 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