|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.base.DatabaseTypeField
Field Summary | |
private static java.lang.String |
copyright
|
static int |
INOUT
|
static int |
INPUT
|
private int |
length
|
protected int |
mode
|
private java.lang.String |
name
|
static int |
OUTPUT
|
private int |
scale
|
private boolean |
searchable
|
(package private) static long |
serialVersionUID
|
protected int |
sqlType
|
protected java.lang.String |
sqlTypeName
|
Constructor Summary | |
DatabaseTypeField()
Constructs a new DatabaseTypeField. |
|
DatabaseTypeField(java.lang.String aName)
Constructs a new DatabaseTypeField with the specified name. |
Method Summary | |
java.lang.Object |
clone()
This method was created by a SmartGuide. |
abstract java.lang.Class |
getFieldClass()
Returns the Java class used to hold a value of this field. |
int |
getLength()
Returns the length associated with the source SQLType. |
int |
getMode()
Returns the mode of this field (input, output, inout). |
java.lang.String |
getName()
Returns the name of the DatabaseTypeField. |
java.lang.Object |
getObject(java.sql.CallableStatement aStatement,
int anIndex)
Retrieves the parameter value at the specified column index from the specified CallableStatement |
abstract java.lang.Object |
getObject(java.sql.ResultSet aResultSet,
int anIndex)
Retrieves the column value at the specified column index from the specified ResultSet |
int |
getScale()
Returns the scale associated with the source SQLType. |
abstract int |
getSQLType()
Returns the SQLType associated with this DatabaseTypeField. |
java.lang.String |
getSQLTypeName()
Returns the name of the SQL type associated with this DatabaseTypeField. |
boolean |
isSearchable()
Returns true if the column is searchable. |
abstract void |
setFieldObject(java.lang.Object anObject,
java.sql.PreparedStatement aStatement,
int anIndex)
Sets the parameter with the specified index in the specified PreparedStatement to the specified value. |
void |
setLength(int aLength)
Sets the length to be associated with the SQLType of the field. |
void |
setMode(int aMode)
Sets the mode of the DatabaseTypeField. |
void |
setName(java.lang.String aName)
Sets the name of the DatabaseTypeField. |
void |
setObject(java.lang.Object anObject,
java.sql.PreparedStatement aStatement,
int anIndex)
Sets the parameter with the specified index in the specified PreparedStatement to the specified value. |
void |
setScale(int aScale)
Sets the scale to be associated with the SQLType of the field. |
void |
setSearchable(boolean aSearchable)
Sets if the column is searchable |
void |
setSQLType(int anSQLType)
Sets the SQLType of this DatabaseTypeField. |
void |
setSQLTypeName(java.lang.String aTypeName)
Sets the SQLTypeName of this DatabaseTypeField. |
java.lang.String |
toString()
Returns the string 'javaClass:fieldName', where javaClass is the Java class of the field and fieldName is the name of the DatabaseTypeField. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int INPUT
public static final int INOUT
public static final int OUTPUT
private java.lang.String name
protected int sqlType
private int length
private int scale
private boolean searchable
protected int mode
protected java.lang.String sqlTypeName
static final long serialVersionUID
private static final java.lang.String copyright
Constructor Detail |
public DatabaseTypeField()
public DatabaseTypeField(java.lang.String aName)
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public abstract java.lang.Class getFieldClass()
public int getLength()
public int getMode()
public java.lang.String getName()
public java.lang.Object getObject(java.sql.CallableStatement aStatement, int anIndex) throws java.sql.SQLException
anIndex
- the index of columnaStatement
- the CallableStatement that contains the valuespublic abstract java.lang.Object getObject(java.sql.ResultSet aResultSet, int anIndex) throws java.sql.SQLException
aResult
- the ResultSet that contains the valuesanIndex
- the index of columnpublic int getScale()
public abstract int getSQLType()
public java.lang.String getSQLTypeName()
public boolean isSearchable()
public abstract void setFieldObject(java.lang.Object anObject, java.sql.PreparedStatement aStatement, int anIndex) throws java.sql.SQLException
anObject
- the object value for the parametersStatement
- the PreparedStatementanIndex
- the index of the parameterpublic void setLength(int aLength)
aLength
- the lengthpublic void setMode(int aMode)
aMode
- the mode (input, output, inout) (used only for fields that are parameters)public void setName(java.lang.String aName)
aName
- the namepublic void setObject(java.lang.Object anObject, java.sql.PreparedStatement aStatement, int anIndex) throws java.sql.SQLException
anObject
- the object value for the parametersStatement
- the PreparedStatementanIndex
- the index of the parameterpublic void setScale(int aScale)
aScale
- the scalepublic void setSearchable(boolean aSearchable)
aScale
- the scalepublic void setSQLType(int anSQLType)
anSQLType
- the SQLTypepublic void setSQLTypeName(java.lang.String aTypeName)
aTypeName
- the name of the SQL Typepublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |