net.ontopia.persistence.query.sql
Interface SQLStatementIF

All Known Implementing Classes:
SQLStatement

public interface SQLStatementIF

INTERNAL: Represents a concrete SQL query.


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.
 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_identities)
          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 setObjectAccess(ObjectAccessIF oaccess)
           
 

Method Detail

setObjectAccess

void setObjectAccess(ObjectAccessIF oaccess)

setAccessRegistrar

void setAccessRegistrar(AccessRegistrarIF registrar)

getTicket

TicketIF getTicket()

getWidth

int getWidth()
INTERNAL: Returns the number of fields that will be selected by the statement.


executeQuery

java.sql.ResultSet executeQuery(java.sql.Connection conn)
                                throws java.lang.Exception
INTERNAL: Execute the statement without any parameters and return a JDBC result set.

Throws:
java.lang.Exception

executeQuery

java.sql.ResultSet executeQuery(java.sql.Connection conn,
                                java.lang.Object[] params)
                                throws java.lang.Exception
INTERNAL: Execute the statement with parameters and return a JDBC result set.

Throws:
java.lang.Exception

executeQuery

java.sql.ResultSet executeQuery(java.sql.Connection conn,
                                java.util.Map params)
                                throws java.lang.Exception
INTERNAL: Execute the statement with parameters and return a JDBC result set.

Throws:
java.lang.Exception

readValue

java.lang.Object readValue(TicketIF ticket,
                           java.sql.ResultSet rs,
                           int index,
                           boolean lookup_identities)
                           throws java.lang.Exception
INTERNAL: Read the field value of the specified index from the current row in the result set.

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.

Throws:
java.lang.Exception

readValues

java.lang.Object[] readValues(TicketIF ticket,
                              java.sql.ResultSet rs,
                              java.lang.Object[] values,
                              boolean lookup_identities)
                              throws java.lang.Exception
INTERNAL: Reads all the field values from the current row into the specified value array. Note that this array must have a width that is equal or greater than the width of the result.

Throws:
java.lang.Exception

readValues

java.lang.Object[] readValues(TicketIF ticket,
                              java.sql.ResultSet rs,
                              boolean lookup_identities)
                              throws java.lang.Exception
INTERNAL: Reads all the field values from the current row in the result set.

Throws:
java.lang.Exception


Copyright © 2000-2012 Ontopia.