org.apache.ojb.broker.metadata
Class AttributeDescriptorBase

java.lang.Object
  extended by org.apache.ojb.broker.metadata.DescriptorBase
      extended by org.apache.ojb.broker.metadata.AttributeDescriptorBase
All Implemented Interfaces:
Serializable, AttributeContainer
Direct Known Subclasses:
FieldDescriptor, ObjectReferenceDescriptor

public class AttributeDescriptorBase
extends DescriptorBase
implements Serializable

Is the base class for all other attribute descriptors. It holds basic the mapping information for a specific attribute.

Version:
$Id: AttributeDescriptorBase.java,v 1.1 2007-08-24 22:17:29 ewestfal Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Field Summary
protected  ClassDescriptor m_ClassDescriptor
           
protected  PersistentField m_PersistentField
           
private static long serialVersionUID
           
 
Constructor Summary
AttributeDescriptorBase(ClassDescriptor descriptor)
          Constructor declaration
 
Method Summary
 String getAttributeName()
           
 ClassDescriptor getClassDescriptor()
          Gets the classDescriptor.
 PersistentField getPersistentField()
           
 void setClassDescriptor(ClassDescriptor classDescriptor)
          Sets the classDescriptor.
 void setPersistentField(Class c, String fieldname)
           
 void setPersistentField(PersistentField pf)
           
 String toString()
           
 
Methods inherited from class org.apache.ojb.broker.metadata.DescriptorBase
addAttribute, getAttribute, getAttribute, getAttributeNames, getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_PersistentField

protected PersistentField m_PersistentField

m_ClassDescriptor

protected ClassDescriptor m_ClassDescriptor
Constructor Detail

AttributeDescriptorBase

public AttributeDescriptorBase(ClassDescriptor descriptor)
Constructor declaration

Method Detail

setPersistentField

public void setPersistentField(Class c,
                               String fieldname)
Throws:
MetadataException - if an error occours when setting the PersistenteField

setPersistentField

public void setPersistentField(PersistentField pf)

getPersistentField

public PersistentField getPersistentField()

getAttributeName

public String getAttributeName()
Returns:
the name of the Attribute

getClassDescriptor

public ClassDescriptor getClassDescriptor()
Gets the classDescriptor.

Returns:
Returns a ClassDescriptor

setClassDescriptor

public void setClassDescriptor(ClassDescriptor classDescriptor)
Sets the classDescriptor.

Parameters:
classDescriptor - The classDescriptor to set

toString

public String toString()
Overrides:
toString in class DescriptorBase


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