|
OOP SimpleDaoHelper Version 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bentofw.dao.QueryData
public class QueryData
To set the values within the PreparedStatement
object, please add the intended values to this object.
As the parameter of its constructor, this object takes the
String object for the arbitrary SQL statement.
And you can call a series of addXX( ) methods
on this object.
The parameters of these addXX( ) methods will
be inserted into the PreparedStatement object automatically
by SimpleDaoHelper.
SimpleDaoHelper| Field Summary | |
|---|---|
static int |
BIG_DECIMAL
|
static int |
BINARY
|
static int |
BOOLEAN
|
static int |
BYTE
|
static int |
DOUBLE
|
static int |
FLOAT
|
static int |
INT
|
static int |
LONG
|
static int |
SHORT
|
static int |
SQL_DATE
|
static int |
SQL_TIME
|
static int |
SQL_TIME_STAMP
|
static int |
STRING
|
| Constructor Summary | |
|---|---|
QueryData(java.lang.String st)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addBigDecimal(java.math.BigDecimal query)
By this method, you can specify the BigDecimal object which will be inserted into the PreparedStatement object. |
void |
addBinary(byte[] query)
By this method, you can specify the byte[ ] object which will be inserted into the PreparedStatement object. |
void |
addBoolean(boolean query)
By this method, you can specify the boolean value which will be inserted into the PreparedStatement object. |
void |
addByte(byte query)
By this method, you can specify the byte value which will be inserted into the PreparedStatement object. |
void |
addDouble(double query)
By this method, you can specify the double value which will be inserted into the PreparedStatement object. |
void |
addFloat(float query)
By this method, you can specify the float value which will be inserted into the PreparedStatement object. |
void |
addInt(int query)
By this method, you can specify the int value which will be inserted into the PreparedStatement object. |
void |
addLong(long query)
By this method, you can specify the long value which will be inserted into the PreparedStatement object. |
void |
addNull(int sqlType)
By this method, you can specify the null object which will be inserted into the PreparedStatement object. |
void |
addShort(short query)
By this method, you can specify the short value which will be inserted into the PreparedStatement object. |
void |
addSqlDate(java.sql.Date query)
By this method, you can specify the java.sql.Date object which will be inserted into the PreparedStatement object. |
void |
addSqlTime(java.sql.Time query)
By this method, you can specify the java.sql.Time object which will be inserted into the PreparedStatement object. |
void |
addSqlTimestamp(java.sql.Timestamp query)
By this method, you can specify the java.sql.Timestamp object which will be inserted into the PreparedStatement object. |
void |
addString(java.lang.String query)
By this method, you can specify the String object which will be inserted into the PreparedStatement object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STRING
public static final int INT
public static final int LONG
public static final int BINARY
public static final int BOOLEAN
public static final int BYTE
public static final int SHORT
public static final int FLOAT
public static final int DOUBLE
public static final int BIG_DECIMAL
public static final int SQL_DATE
public static final int SQL_TIME
public static final int SQL_TIME_STAMP
| Constructor Detail |
|---|
public QueryData(java.lang.String st)
SimpleDaoHelper.
st - The arbitrary SQL statement.
| Method Detail |
|---|
public void addString(java.lang.String query)
query - The String object to be inserted
into the PreparedStatement object.public void addInt(int query)
query - The int value to be inserted
into the PreparedStatement object.public void addLong(long query)
query - The long value to be inserted
into the PreparedStatement object.public void addBinary(byte[] query)
query - The byte[ ] object to be inserted
into the PreparedStatement object.public void addNull(int sqlType)
sqlType - The SQL type code defined in java.sql.Typespublic void addBoolean(boolean query)
query - The boolean value to be inserted
into the PreparedStatement object.public void addByte(byte query)
query - The byte value to be inserted
into the PreparedStatement object.public void addShort(short query)
query - The short value to be inserted
into the PreparedStatement object.public void addFloat(float query)
query - The float value to be inserted
into the PreparedStatement object.public void addDouble(double query)
query - The double value to be inserted
into the PreparedStatement object.public void addBigDecimal(java.math.BigDecimal query)
query - The BigDecimal object to be
inserted into the PreparedStatement object.public void addSqlDate(java.sql.Date query)
query - The java.sql.Date object to be
inserted into the PreparedStatement object.public void addSqlTime(java.sql.Time query)
query - The java.sql.Time object to be
inserted into the PreparedStatement object.public void addSqlTimestamp(java.sql.Timestamp query)
query - The java.sql.Timestamp object to
be inserted into the PreparedStatement object.
|
OOP SimpleDaoHelper Version 1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.