org.apache.ojb.broker.metadata.fieldaccess
Class PersistentFieldIntrospectorImpl
java.lang.Object
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl
- All Implemented Interfaces:
- PersistentField, java.io.Serializable
- public class PersistentFieldIntrospectorImpl
- extends AbstractPersistentField
A PersistentField
implementation using
JavaBeans compliant calls only to access persistent attributes.
No Reflection is needed. But for each attribute xxx there must be
public getXxx() and setXxx() methods.
- Version:
- $Id: PersistentFieldIntrospectorImpl.java,v 1.11 2004/06/26 23:51:37 arminw Exp $
- Author:
- Jakob Braeuchi, Armin Waibel
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
doGet(java.lang.Object anObject)
Get the Value from anObject |
void |
doSet(java.lang.Object anObject,
java.lang.Object aValue)
Sets aValue for anObject |
java.lang.Class |
getDeclaringClass()
|
java.lang.String |
getName()
|
java.lang.Class |
getType()
|
boolean |
makeAccessible()
This implementation returns always 'false'. |
boolean |
usesAccessorsAndMutators()
Always returns 'false'. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersistentFieldIntrospectorImpl
public PersistentFieldIntrospectorImpl()
PersistentFieldIntrospectorImpl
public PersistentFieldIntrospectorImpl(java.lang.Class aClass,
java.lang.String aPropertyName)
getName
public java.lang.String getName()
- Specified by:
getName
in interface PersistentField
- Overrides:
getName
in class AbstractPersistentField
getType
public java.lang.Class getType()
- Specified by:
getType
in interface PersistentField
- Overrides:
getType
in class AbstractPersistentField
getDeclaringClass
public java.lang.Class getDeclaringClass()
- Specified by:
getDeclaringClass
in interface PersistentField
- Overrides:
getDeclaringClass
in class AbstractPersistentField
doSet
public void doSet(java.lang.Object anObject,
java.lang.Object aValue)
throws MetadataException
- Sets aValue for anObject
- Specified by:
doSet
in class AbstractPersistentField
- Throws:
MetadataException
doGet
public java.lang.Object doGet(java.lang.Object anObject)
throws MetadataException
- Get the Value from anObject
- Specified by:
doGet
in class AbstractPersistentField
- Throws:
MetadataException
makeAccessible
public boolean makeAccessible()
- This implementation returns always 'false'.
- Specified by:
makeAccessible
in class AbstractPersistentField
- See Also:
AbstractPersistentField.makeAccessible()
usesAccessorsAndMutators
public boolean usesAccessorsAndMutators()
- Always returns 'false'.
- See Also:
PersistentField.usesAccessorsAndMutators()
(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2