|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.jdbc.sql.SQLBuffer
Buffer for SQL statements that can be used to create java.sql.PreparedStatements.
| Constructor Summary | |
SQLBuffer(DBDictionary dict)
Default constructor. |
|
SQLBuffer(SQLBuffer buf)
Copy constructor. |
|
| Method Summary | |
SQLBuffer |
append(Column col)
|
SQLBuffer |
append(SQLBuffer buf)
Append all SQL and parameters of the given buffer. |
SQLBuffer |
append(String s)
|
SQLBuffer |
append(Table table)
|
SQLBuffer |
appendClause(Column col,
String operator,
Object o)
Append a clause. |
SQLBuffer |
appendClause(Column col,
String operator,
Object o,
Select sel,
Joins joins)
Append a clause using the column's alias in the given select statemenet. |
SQLBuffer |
appendNull()
|
SQLBuffer |
appendValue(boolean b)
Deprecated. use appendValue(boolean,Column) instead |
SQLBuffer |
appendValue(boolean b,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(byte b)
Deprecated. use appendValue(byte,Column) instead |
SQLBuffer |
appendValue(byte b,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(char c)
Deprecated. use appendValue(char,Column) instead |
SQLBuffer |
appendValue(char c,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(double d)
Deprecated. use appendValue(double,Column) instead |
SQLBuffer |
appendValue(double d,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(float f)
Deprecated. use appendValue(float,Column) instead |
SQLBuffer |
appendValue(float f,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(int i)
Deprecated. use appendValue(int,Column) instead |
SQLBuffer |
appendValue(int i,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(long l)
Deprecated. use appendValue(long,Column) instead |
SQLBuffer |
appendValue(long l,
Column col)
Append a parameter value. |
SQLBuffer |
appendValue(Object o)
Deprecated. use appendValue(Object,Column) instead |
SQLBuffer |
appendValue(Object o,
Column col)
Append a parameter value for a specific column. |
SQLBuffer |
appendValue(short s)
Deprecated. use appendValue(short,Column) instead |
SQLBuffer |
appendValue(short s,
Column col)
Append a parameter value. |
Object |
clone()
Perform a shallow clone of this SQL Buffer. |
List |
getParameters()
Return the list of parameter values. |
String |
getSQL()
Return the SQL for this buffer. |
String |
getSQL(boolean replaceParams)
Returns the SQL for this buffer. |
boolean |
isEmpty()
Return true if the buffer is emtpy. |
CallableStatement |
prepareCall(Connection conn)
Create and populate the parameters of a prepared statement using the SQL in this buffer. |
CallableStatement |
prepareCall(Connection conn,
int rsType,
int rsConcur)
Create and populate the parameters of a prepared statement using the SQL in this buffer. |
CallableStatement |
prepareCall(Connection conn,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
Create and populate the parameters of a prepred statement using the SQL in this buffer and the given fetch configuration. |
PreparedStatement |
prepareStatement(Connection conn)
Create and populate the parameters of a prepared statement using the SQL in this buffer. |
PreparedStatement |
prepareStatement(Connection conn,
int rsType,
int rsConcur)
Create and populate the parameters of a prepared statement using the SQL in this buffer. |
PreparedStatement |
prepareStatement(Connection conn,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
Create and populate the parameters of a prepred statement using the SQL in this buffer and the given fetch configuration. |
void |
setParameters(PreparedStatement ps)
Populate the parameters of an existing PreparedStatement with values from this buffer. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLBuffer(DBDictionary dict)
public SQLBuffer(SQLBuffer buf)
| Method Detail |
public Object clone()
clone in class Objectpublic boolean isEmpty()
public SQLBuffer append(SQLBuffer buf)
public SQLBuffer append(Table table)
public SQLBuffer append(Column col)
public SQLBuffer append(String s)
public SQLBuffer appendValue(Object o)
appendValue(Object,Column) instead
public SQLBuffer appendNull()
public SQLBuffer appendClause(Column col,
String operator,
Object o)
public SQLBuffer appendClause(Column col,
String operator,
Object o,
Select sel,
Joins joins)
public SQLBuffer appendValue(Object o,
Column col)
public SQLBuffer appendValue(boolean b)
appendValue(boolean,Column) instead
public SQLBuffer appendValue(boolean b,
Column col)
public SQLBuffer appendValue(byte b)
appendValue(byte,Column) instead
public SQLBuffer appendValue(byte b,
Column col)
public SQLBuffer appendValue(char c)
appendValue(char,Column) instead
public SQLBuffer appendValue(char c,
Column col)
public SQLBuffer appendValue(double d)
appendValue(double,Column) instead
public SQLBuffer appendValue(double d,
Column col)
public SQLBuffer appendValue(float f)
appendValue(float,Column) instead
public SQLBuffer appendValue(float f,
Column col)
public SQLBuffer appendValue(int i)
appendValue(int,Column) instead
public SQLBuffer appendValue(int i,
Column col)
public SQLBuffer appendValue(long l)
appendValue(long,Column) instead
public SQLBuffer appendValue(long l,
Column col)
public SQLBuffer appendValue(short s)
appendValue(short,Column) instead
public SQLBuffer appendValue(short s,
Column col)
public List getParameters()
public String getSQL()
public String getSQL(boolean replaceParams)
replaceParams - if true, then replace parameters with the
actual parameter values
public PreparedStatement prepareStatement(Connection conn)
throws SQLException
public PreparedStatement prepareStatement(Connection conn,
int rsType,
int rsConcur)
throws SQLException
public PreparedStatement prepareStatement(Connection conn,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
throws SQLException
public CallableStatement prepareCall(Connection conn)
throws SQLException
public CallableStatement prepareCall(Connection conn,
int rsType,
int rsConcur)
throws SQLException
public CallableStatement prepareCall(Connection conn,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
throws SQLException
public void setParameters(PreparedStatement ps)
throws SQLException
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||