|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.query.sql.SQLStatement
public class SQLStatement
INTERNAL: The default SQL statement implementation.
Field Summary | |
---|---|
protected int |
fetchSize
|
protected ObjectAccessIF |
oaccess
|
protected ParameterProcessorIF |
param_processor
|
protected AccessRegistrarIF |
registrar
|
protected FieldHandlerIF[] |
select_fields
|
protected int[] |
select_offsets
|
protected java.lang.String |
sql
|
protected int |
width
|
Constructor Summary | |
---|---|
SQLStatement(java.lang.String sql,
FieldHandlerIF[] select_fields,
ParameterProcessorIF param_processor)
|
Method Summary | |
---|---|
java.sql.ResultSet |
executeQuery(java.sql.Connection conn)
INTERNAL: Execute the statement without any parameters and return a JDBC result set. |
java.sql.ResultSet |
executeQuery(java.sql.Connection conn,
java.util.Map params)
INTERNAL: Execute the statement with parameters and return a JDBC result set. |
java.sql.ResultSet |
executeQuery(java.sql.Connection conn,
java.lang.Object[] params)
INTERNAL: Execute the statement with parameters and return a JDBC result set. |
java.lang.String |
getSQL()
|
TicketIF |
getTicket()
|
int |
getWidth()
INTERNAL: Returns the number of fields that will be selected by the statement. |
java.lang.Object |
readValue(TicketIF ticket,
java.sql.ResultSet rs,
int index,
boolean lookup_identity)
INTERNAL: Read the field value of the specified index from the current row in the result set. |
java.lang.Object[] |
readValues(TicketIF ticket,
java.sql.ResultSet rs,
boolean lookup_identities)
INTERNAL: Reads all the field values from the current row in the result set. |
java.lang.Object[] |
readValues(TicketIF ticket,
java.sql.ResultSet rs,
java.lang.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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ObjectAccessIF oaccess
protected AccessRegistrarIF registrar
protected java.lang.String sql
protected int fetchSize
protected int width
protected int[] select_offsets
protected FieldHandlerIF[] select_fields
protected ParameterProcessorIF param_processor
Constructor Detail |
---|
public SQLStatement(java.lang.String sql, FieldHandlerIF[] select_fields, ParameterProcessorIF param_processor)
Method Detail |
---|
public void setObjectAccess(ObjectAccessIF oaccess)
setObjectAccess
in interface SQLStatementIF
public void setAccessRegistrar(AccessRegistrarIF registrar)
setAccessRegistrar
in interface SQLStatementIF
public TicketIF getTicket()
getTicket
in interface SQLStatementIF
public void setFetchSize(int fetchSize)
public int getWidth()
SQLStatementIF
getWidth
in interface SQLStatementIF
public java.lang.String getSQL()
public java.sql.ResultSet executeQuery(java.sql.Connection conn) throws java.lang.Exception
SQLStatementIF
executeQuery
in interface SQLStatementIF
java.lang.Exception
public java.sql.ResultSet executeQuery(java.sql.Connection conn, java.lang.Object[] params) throws java.lang.Exception
SQLStatementIF
executeQuery
in interface SQLStatementIF
java.lang.Exception
public java.sql.ResultSet executeQuery(java.sql.Connection conn, java.util.Map params) throws java.lang.Exception
SQLStatementIF
executeQuery
in interface SQLStatementIF
java.lang.Exception
public java.lang.Object readValue(TicketIF ticket, java.sql.ResultSet rs, int index, boolean lookup_identity) throws java.lang.Exception
SQLStatementIF
If 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 SQLStatementIF
java.lang.Exception
public java.lang.Object[] readValues(TicketIF ticket, java.sql.ResultSet rs, java.lang.Object[] values, boolean lookup_identities) throws java.lang.Exception
SQLStatementIF
readValues
in interface SQLStatementIF
java.lang.Exception
public java.lang.Object[] readValues(TicketIF ticket, java.sql.ResultSet rs, boolean lookup_identities) throws java.lang.Exception
SQLStatementIF
readValues
in interface SQLStatementIF
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |