com.xavax.xstore
Class AttributeMap

Object
  extended byPersistenceMap
      extended byAttributeMap

public class AttributeMap
extends PersistenceMap

AttributeMap encapsulates the metadata for an attribute (or field) within a class and includes methods to get and set the value of an attribute in an instance of the class. The metadata consists of the attribute name, data type, position within the attribute list, and the name of the ColumnMap to which this attribute is mapped. All metadata except the attribute and column name are determined at initialization time using reflection.


Method Summary
 ClassMap classMap()
          Returns the ClassMap for the class to which this attribute belongs.
 ColumnMap column()
          Returns the ColumnMap to which this attribute is mapped.
 void outputXML(PrintWriter out)
          Output an XML representation of this attribute on the specified print writer.
 void show()
          Output a description of this attribute on stdout.
 int type()
          Returns the Java data type of this attribute.
 
Methods inherited from class PersistenceMap
hashCode, manager, name, toString
 
Methods inherited from class Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

show

public void show()
Output a description of this attribute on stdout.


outputXML

public void outputXML(PrintWriter out)
Output an XML representation of this attribute on the specified print writer.

Parameters:
out - the print writer to use for all output.

classMap

public ClassMap classMap()
Returns the ClassMap for the class to which this attribute belongs.

Returns:
the ClassMap for the class to which this attribute belongs.

column

public ColumnMap column()
Returns the ColumnMap to which this attribute is mapped.

Returns:
the ColumnMap to which this attribute is mapped.

type

public int type()
Returns the Java data type of this attribute.

Returns:
the Java data type of this attribute.
See Also:
JTypes