public class Property
extends java.lang.Object
This represents a single property of a particular class.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
Property(java.lang.Class pBeanClass,
java.lang.String pPropertyName)
Constructs a new Property
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final java.lang.String CLASS_VERSION
public Property(java.lang.Class pBeanClass,
java.lang.String pPropertyName)
pBeanClass - the class of the bean containing the property
to which the column correspondspPropertyName - the name of the property to which this
column correspondspublic java.beans.PropertyDescriptor getPropertyDescriptor()
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic java.lang.Class getPropertyType()
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic boolean isPrimitive()
public java.lang.Object readPropertyValue(java.lang.Object pObject)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writePropertyValue(java.lang.Object pObject,
java.lang.Object pValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Class getBeanClass()
public java.lang.String getPropertyName()