org.exolab.castor.dtx
public class DTXQuery extends Object
... WHERE foo.id = $2 AND bar.name = $1 ...then the statement bind(1, 12) will bind the value 12 to the first parameter, even though it's named "$2." This may or may not be changed in future releases.
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:05 $
| Field Summary | |
|---|---|
| protected HashMap | _classes |
| protected ClassMapping | _clsMapping |
| protected HashMap | _cols |
| protected DTXEngine | _eng |
| protected DocumentHandler | _handler |
| protected ArrayList | _ids |
| protected int | _lastCol |
| protected PrintWriter | _logWriter |
| protected String | _objName |
| protected String | _objType |
| protected PreparedStatement | _stmt |
| Constructor Summary | |
|---|---|
| DTXQuery() | |
| Method Summary | |
|---|---|
| void | bind(int param, Object value)
Binds an Object value to a parameter in the query.
|
| void | bind(int param, String value)
Binds an String value to a parameter in the query.
|
| void | bind(int param, int value)
Binds an integer value to a parameter in the query.
|
| void | bind(int param, long value)
Binds a long integer value to a parameter in the query.
|
| void | bind(int param, float value)
Binds a float value to a parameter in the query.
|
| void | bind(int param, double value)
Binds a double value to a parameter in the query.
|
| void | bind(int param, boolean value)
Binds a boolean value to a parameter in the query.
|
| protected void | emitSaxEvents(ResultSet rs) |
| protected boolean | emitSaxInt(ResultSet rs, int idIndex) |
| void | execute()
This method executes the query. |
| protected void | initQuery(ClassMapping clsMapping, QueryExpression expr) |
| protected String | parseOQL(String oql) |
| void | prepare(String oql) |
| void | setEngine(DTXEngine eng) |
| void | setHandler(DocumentHandler handler)
Set the DocumentHandler that will receive the results (as SAX
events) for this query. |
| void | setLogWriter(PrintWriter logWriter)
Set the DocumentHandler that will receive the results (as SAX
events) for this query. |
Parameters: param 1-based index of the param (see note above). value Object to bind.
Parameters: param 1-based index of the param (see note above). value String to bind.
Parameters: param 1-based index of the param (see note above). value int to bind.
Parameters: param 1-based index of the param (see note above). value long integer to bind.
Parameters: param 1-based index of the param (see note above). value float to bind.
Parameters: param 1-based index of the param (see note above). value double to bind.
Parameters: param 1-based index of the param (see note above). value boolean to bind.
Parameters: handler The DocumentHandler to use.
Parameters: handler The DocumentHandler to use.
Parameters: handler The DocumentHandler to use.