atg.cortex
Class Property

java.lang.Object
  extended by atg.cortex.Property
Direct Known Subclasses:
ColumnProperty

public class Property
extends java.lang.Object

This represents a single property of a particular class.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
Property(java.lang.Class pBeanClass, java.lang.String pPropertyName)
          Constructs a new Property
 
Method Summary
 java.lang.Class getBeanClass()
          Returns the class of the bean whose property is mapped to the specified column.
 java.beans.PropertyDescriptor getPropertyDescriptor()
          Returns the PropertyDescriptor corresponding to the property
 java.lang.String getPropertyName()
          Returns the name of the property to which this column descriptor corresponds.
 java.lang.Class getPropertyType()
          Returns the type of the property
 boolean isPrimitive()
          Returns true if the type of the property is a primitive
 java.lang.Object readPropertyValue(java.lang.Object pObject)
          Reads and returns the value of the property from the given object.
 void writePropertyValue(java.lang.Object pObject, java.lang.Object pValue)
          Writes the value of the property of the given object with the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

Property

public Property(java.lang.Class pBeanClass,
                java.lang.String pPropertyName)
Constructs a new Property

Parameters:
pBeanClass - the class of the bean containing the property to which the column corresponds
pPropertyName - the name of the property to which this column corresponds
Method Detail

getPropertyDescriptor

public java.beans.PropertyDescriptor getPropertyDescriptor()
                                                    throws java.beans.IntrospectionException
Returns the PropertyDescriptor corresponding to the property

Throws:
java.beans.IntrospectionException

getPropertyType

public java.lang.Class getPropertyType()
                                throws java.beans.IntrospectionException
Returns the type of the property

Throws:
java.beans.IntrospectionException

isPrimitive

public boolean isPrimitive()
Returns true if the type of the property is a primitive


readPropertyValue

public java.lang.Object readPropertyValue(java.lang.Object pObject)
                                   throws java.sql.SQLException
Reads and returns the value of the property from the given object.

Throws:
java.sql.SQLException

writePropertyValue

public void writePropertyValue(java.lang.Object pObject,
                               java.lang.Object pValue)
                        throws java.sql.SQLException
Writes the value of the property of the given object with the specified value.

Throws:
java.sql.SQLException

getBeanClass

public java.lang.Class getBeanClass()
Returns the class of the bean whose property is mapped to the specified column.


getPropertyName

public java.lang.String getPropertyName()
Returns the name of the property to which this column descriptor corresponds.