public class ColumnProperty extends Property
This represents a pairing of a Property to a Column of a table.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
ColumnProperty(java.lang.Class pBeanClass,
              java.lang.String pPropertyName,
              java.lang.String pTableName,
              java.lang.String pColumnName)
Constructs a new read/write ColumnProperty 
 | 
ColumnProperty(java.lang.Class pBeanClass,
              java.lang.String pPropertyName,
              java.lang.String pTableName,
              java.lang.String pColumnName,
              boolean pReadOnly)
Constructs a new ColumnProperty 
 | 
ColumnProperty(java.lang.Class pBeanClass,
              java.lang.String pPropertyName,
              java.lang.String pTableName,
              java.lang.String pColumnName,
              boolean pReadOnly,
              java.lang.String pInsertSQL,
              java.lang.String pUpdateSQL,
              int pJDBCType)
Constructs a new ColumnProperty 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getColumnName()
Returns the name of the column within the table. 
 | 
java.lang.String | 
getFullColumnName()
Returns the full name of the column, as {table name}.{column
 name}. 
 | 
java.lang.String | 
getInsertSQL()
Returns the SQL clause that will be used for this column in an
 INSERT statement. 
 | 
int | 
getJDBCType()
If the JDBC type is known, this contains the JDBC type 
 | 
java.lang.String | 
getTableName()
Returns the name of the table containing this column. 
 | 
java.lang.String | 
getUpdateSQL()
Returns the SQL clause that will be used for this column in an
 UPDATE statement. 
 | 
boolean | 
isJDBCTypeKnown()
Returns the flag indicating if the JDBC type of the column is
 known (i.e., was specified in the constructor) 
 | 
boolean | 
isReadOnly()
Returns the flag indicating if this column can only be read 
 | 
getBeanClass, getPropertyDescriptor, getPropertyName, getPropertyType, isPrimitive, readPropertyValue, writePropertyValuepublic ColumnProperty(java.lang.Class pBeanClass,
                      java.lang.String pPropertyName,
                      java.lang.String pTableName,
                      java.lang.String pColumnName,
                      boolean pReadOnly,
                      java.lang.String pInsertSQL,
                      java.lang.String pUpdateSQL,
                      int pJDBCType)
pBeanClass - the class of the bean containing the property
 to which the column correspondspPropertyName - the name of the property to which this
 column correspondspTableName - the name of the table containing this columnpColumnName - the name of the columnpReadOnly - flag indicating if the column is read-only.  If
 so, then Cortex operations such as insert and update will ignore
 this column.pInsertSQL - the SQL to be used for an insert statement.  If
 null, then the property value will be used in the insert.
 Otherwise, the SQL here will be substituted in directly as the
 value.  This can be used to set a field using a database function
 call as opposed to an application-generated value.pUpdateSQL - the SQL to be used for an update statement.  If
 null, then the property value will be used in the update.
 Otherwise, the SQL here will be substituted in directly as the
 value.  This can be used to set a field using a database function
 call as opposed to an application-generated value.pJDBCType - the JDBC type of the column (from
 java.sql.Types).  Unless this is specified, setting null column
 values may not work correctlypublic ColumnProperty(java.lang.Class pBeanClass,
                      java.lang.String pPropertyName,
                      java.lang.String pTableName,
                      java.lang.String pColumnName,
                      boolean pReadOnly)
pBeanClass - the class of the bean containing the property
 to which the column correspondspPropertyName - the name of the property to which this
 column correspondspTableName - the name of the table containing this columnpColumnName - the name of the columnpReadOnly - flag indicating if the column is read-only.  If
 so, then Cortex operations such as insert and update will ignore
 this column.public ColumnProperty(java.lang.Class pBeanClass,
                      java.lang.String pPropertyName,
                      java.lang.String pTableName,
                      java.lang.String pColumnName)
pBeanClass - the class of the bean containing the property
 to which the column correspondspPropertyName - the name of the property to which this
 column correspondspTableName - the name of the table containing this columnpColumnName - the name of the columnpublic java.lang.String getFullColumnName()
public java.lang.String getTableName()
public java.lang.String getColumnName()
public boolean isReadOnly()
public java.lang.String getInsertSQL()
public java.lang.String getUpdateSQL()
public boolean isJDBCTypeKnown()
public int getJDBCType()