02/28/2005
 

com.epicentric.common
Class DBColumnDescriptor

java.lang.Object
  |
  +--com.epicentric.common.DBColumnDescriptor

Deprecated. As of version 4.5, to be removed in 8.0 or later. No replacement.

public class DBColumnDescriptor
extends Object

A container for moving values between object attributes and database.


Field Summary
static int[] allowedTypes
          Deprecated.  
protected  String attributeName
          Deprecated.  
static int BOOLEAN
          Deprecated.  
static int CHAR
          Deprecated.  
protected  String columnName
          Deprecated.  
static int DATE
          Deprecated.  
protected  int dbType
          Deprecated.  
static int DECIMAL
          Deprecated.  
static int INTEGER
          Deprecated.  
static int NULL
          Deprecated.  
static int TIMESTAMP
          Deprecated.  
protected  Object value
          Deprecated.  
 
Constructor Summary
DBColumnDescriptor(String columnName, Object value, int dbType)
          Deprecated. This constructor sets everything except the attribute name.
 
Method Summary
 String getAttributeName()
          Deprecated.  
 String getColumnName()
          Deprecated.  
 Object getValue()
          Deprecated.  
 void setAttributeName(String attributeName)
          Deprecated. Sets the name of the instance attribute.
 void setColumnName(String columnName)
          Deprecated. Sets the database column name.
 void setDbType(int dbType)
          Deprecated. Set database type.
 void setStatementParam(PreparedStatement statement, int index)
          Deprecated. Given a statement and index position, set my value as the appropriate type.
 void setValue(Object value)
          Deprecated. Hold on to the value for this database column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN

public static final int BOOLEAN
Deprecated. 

CHAR

public static final int CHAR
Deprecated. 

INTEGER

public static final int INTEGER
Deprecated. 

DATE

public static final int DATE
Deprecated. 

DECIMAL

public static final int DECIMAL
Deprecated. 

NULL

public static final int NULL
Deprecated. 

TIMESTAMP

public static final int TIMESTAMP
Deprecated. 

allowedTypes

public static final int[] allowedTypes
Deprecated. 

attributeName

protected String attributeName
Deprecated. 

columnName

protected String columnName
Deprecated. 

value

protected Object value
Deprecated. 

dbType

protected int dbType
Deprecated. 
Constructor Detail

DBColumnDescriptor

public DBColumnDescriptor(String columnName,
                          Object value,
                          int dbType)
Deprecated. 
This constructor sets everything except the attribute name.
Method Detail

setAttributeName

public void setAttributeName(String attributeName)
Deprecated. 
Sets the name of the instance attribute. Will be useful for reflective methods.

getAttributeName

public String getAttributeName()
Deprecated. 

setColumnName

public void setColumnName(String columnName)
Deprecated. 
Sets the database column name.

getColumnName

public String getColumnName()
Deprecated. 

setValue

public void setValue(Object value)
Deprecated. 
Hold on to the value for this database column. Note that if the value is null, we'll automatically do a setNull when building updates (regardless of dbType).

getValue

public Object getValue()
Deprecated. 

setDbType

public void setDbType(int dbType)
               throws IllegalArgumentException
Deprecated. 
Set database type. Must be one of the allowed values in allowedTypes array.

setStatementParam

public void setStatementParam(PreparedStatement statement,
                              int index)
                       throws SQLException,
                              ClassCastException
Deprecated. 
Given a statement and index position, set my value as the appropriate type.
Parameters:
statement -  
index - into statement for this column

02/28/2005
 

Copyright and Trademark Notices