public class SQLStatement extends Object implements SQLStatementIF
| Modifier and Type | Field and Description |
|---|---|
protected int |
fetchSize |
protected ObjectAccessIF |
oaccess |
protected ParameterProcessorIF |
param_processor |
protected AccessRegistrarIF |
registrar |
protected FieldHandlerIF[] |
select_fields |
protected int[] |
select_offsets |
protected String |
sql |
protected int |
width |
| Constructor and Description |
|---|
SQLStatement(String sql,
FieldHandlerIF[] select_fields,
ParameterProcessorIF param_processor) |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
executeQuery(Connection conn)
INTERNAL: Execute the statement without any parameters and return
a JDBC result set.
|
ResultSet |
executeQuery(Connection conn,
Map params)
INTERNAL: Execute the statement with parameters and return a JDBC
result set.
|
ResultSet |
executeQuery(Connection conn,
Object[] params)
INTERNAL: Execute the statement with parameters and return a JDBC
result set.
|
String |
getSQL() |
TicketIF |
getTicket() |
int |
getWidth()
INTERNAL: Returns the number of fields that will be selected by
the statement.
|
Object |
readValue(TicketIF ticket,
ResultSet rs,
int index,
boolean lookup_identity)
INTERNAL: Read the field value of the specified index from the
current row in the result set.
|
Object[] |
readValues(TicketIF ticket,
ResultSet rs,
boolean lookup_identities)
INTERNAL: Reads all the field values from the current row in the
result set.
|
Object[] |
readValues(TicketIF ticket,
ResultSet rs,
Object[] values,
boolean lookup_identities)
INTERNAL: Reads all the field values from the current row into
the specified value array.
|
void |
setAccessRegistrar(AccessRegistrarIF registrar) |
void |
setFetchSize(int fetchSize) |
void |
setObjectAccess(ObjectAccessIF oaccess) |
String |
toString() |
protected ObjectAccessIF oaccess
protected AccessRegistrarIF registrar
protected String sql
protected int fetchSize
protected int width
protected int[] select_offsets
protected FieldHandlerIF[] select_fields
protected ParameterProcessorIF param_processor
public SQLStatement(String sql, FieldHandlerIF[] select_fields, ParameterProcessorIF param_processor)
public void setObjectAccess(ObjectAccessIF oaccess)
setObjectAccess in interface SQLStatementIFpublic void setAccessRegistrar(AccessRegistrarIF registrar)
setAccessRegistrar in interface SQLStatementIFpublic TicketIF getTicket()
getTicket in interface SQLStatementIFpublic void setFetchSize(int fetchSize)
public int getWidth()
SQLStatementIFgetWidth in interface SQLStatementIFpublic String getSQL()
public ResultSet executeQuery(Connection conn) throws Exception
SQLStatementIFexecuteQuery in interface SQLStatementIFExceptionpublic ResultSet executeQuery(Connection conn, Object[] params) throws Exception
SQLStatementIFexecuteQuery in interface SQLStatementIFExceptionpublic ResultSet executeQuery(Connection conn, Map params) throws Exception
SQLStatementIFexecuteQuery in interface SQLStatementIFExceptionpublic Object readValue(TicketIF ticket, ResultSet rs, int index, boolean lookup_identity) throws Exception
SQLStatementIFIf the field is an identity field or a reference field, the object identity will be extracted and the identity will be used to look up the object in the transaction.
readValue in interface SQLStatementIFExceptionpublic Object[] readValues(TicketIF ticket, ResultSet rs, Object[] values, boolean lookup_identities) throws Exception
SQLStatementIFreadValues in interface SQLStatementIFExceptionpublic Object[] readValues(TicketIF ticket, ResultSet rs, boolean lookup_identities) throws Exception
SQLStatementIFreadValues in interface SQLStatementIFException