org.apache.ojb.broker.metadata.fieldaccess
Class PersistentFieldBase

java.lang.Object
  extended by org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldBase
All Implemented Interfaces:
Serializable, PersistentField
Direct Known Subclasses:
PersistentFieldAutoProxyImpl, PersistentFieldDirectImpl, PersistentFieldDynaBeanImpl, PersistentFieldIntrospectorImpl

public abstract class PersistentFieldBase
extends Object
implements PersistentField

Abstract PersistentField base implementation class.

Version:
$Id: PersistentFieldBase.java,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
Author:
Armin Waibel
See Also:
Serialized Form

Field Summary
static String PATH_TOKEN
           
protected  Class rootObjectType
           
 
Constructor Summary
PersistentFieldBase()
          For internal use only!! TODO: Default constructor only needed to support PersistentFieldFactory#usesAccessorsAndMutators() method - find a better solution.
PersistentFieldBase(Class clazz, String fieldname)
           
 
Method Summary
protected  String buildErrorGetMsg(Object obj, Field aField)
          Build a String representation of given arguments.
protected  String buildErrorSetMsg(Object obj, Object value, Field aField)
          Build a String representation of given arguments.
 Class getDeclaringClass()
           
protected  List getFieldGraph(boolean makeAccessible)
           
protected  Logger getLog()
           
 String getName()
           
protected abstract  boolean makeAccessible()
          A value of true indicates that this field should suppress Java language access checking when it is used.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.ojb.broker.metadata.fieldaccess.PersistentField
get, getType, set, usesAccessorsAndMutators
 

Field Detail

PATH_TOKEN

public static final String PATH_TOKEN
See Also:
Constant Field Values

rootObjectType

protected Class rootObjectType
Constructor Detail

PersistentFieldBase

public PersistentFieldBase()
For internal use only!! TODO: Default constructor only needed to support PersistentFieldFactory#usesAccessorsAndMutators() method - find a better solution. Make 'public' to allow helper class to instantiate class.


PersistentFieldBase

public PersistentFieldBase(Class clazz,
                           String fieldname)
Method Detail

makeAccessible

protected abstract boolean makeAccessible()
A value of true indicates that this field should suppress Java language access checking when it is used.


getName

public String getName()
Specified by:
getName in interface PersistentField

getDeclaringClass

public Class getDeclaringClass()
Specified by:
getDeclaringClass in interface PersistentField

getFieldGraph

protected List getFieldGraph(boolean makeAccessible)

getLog

protected Logger getLog()

toString

public String toString()
Overrides:
toString in class Object

buildErrorSetMsg

protected String buildErrorSetMsg(Object obj,
                                  Object value,
                                  Field aField)
Build a String representation of given arguments.


buildErrorGetMsg

protected String buildErrorGetMsg(Object obj,
                                  Field aField)
Build a String representation of given arguments.



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.