|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.DBColumnDescriptor
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 |
public static final int BOOLEAN
public static final int CHAR
public static final int INTEGER
public static final int DATE
public static final int DECIMAL
public static final int NULL
public static final int TIMESTAMP
public static final int[] allowedTypes
protected String attributeName
protected String columnName
protected Object value
protected int dbType
| Constructor Detail |
public DBColumnDescriptor(String columnName,
Object value,
int dbType)
| Method Detail |
public void setAttributeName(String attributeName)
public String getAttributeName()
public void setColumnName(String columnName)
public String getColumnName()
public void setValue(Object value)
public Object getValue()
public void setDbType(int dbType)
throws IllegalArgumentException
public void setStatementParam(PreparedStatement statement,
int index)
throws SQLException,
ClassCastException
statement - index - into statement for this column
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||