org.apache.ojb.broker.metadata.fieldaccess
Class PersistentFieldDirectImpl
java.lang.Object
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldBase
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectImpl
- All Implemented Interfaces:
- java.io.Serializable, PersistentField
- Direct Known Subclasses:
- PersistentFieldDirectAccessImplNew, PersistentFieldPrivilegedImpl
public class PersistentFieldDirectImpl
- extends PersistentFieldBase
This PersistentField
implementation
is the high-speed version of the access strategies.
It does not cooperate with an AccessController,
but accesses the fields directly. This implementation persistent
attributes don't need getters and setters
and don't have to be declared public or protected. Only the the
metadata field names have to match the class fields.
- Version:
- $Id: PersistentFieldDirectImpl.java 365232 2005-12-21 22:36:07Z tomdz $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersistentFieldDirectImpl
public PersistentFieldDirectImpl()
PersistentFieldDirectImpl
public PersistentFieldDirectImpl(java.lang.Class type,
java.lang.String fieldname)
getType
public java.lang.Class getType()
set
public void set(java.lang.Object target,
java.lang.Object value)
throws MetadataException
- do not override this method, have a look at
setValueFor(java.lang.reflect.Field, Object, Object)
- Parameters:
target
- The target object (no proxy objects allowed).value
- The value to set.
- Throws:
MetadataException
- if there is an error setting this field value on obj- See Also:
Field
get
public java.lang.Object get(java.lang.Object target)
throws MetadataException
- do not override this method, have a look at
getValueFrom(java.lang.reflect.Field, Object)
- Parameters:
target
- - The object instance (proxy objects are not allowed here) which we are
trying to get the field value from.
- Throws:
MetadataException
- if there is an error getting this field value from obj- See Also:
Field
usesAccessorsAndMutators
public boolean usesAccessorsAndMutators()
- Always returns 'false'.
- See Also:
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