com.caucho.quercus.lib.db
Class PostgresStatement

java.lang.Object
  extended by com.caucho.quercus.lib.db.JdbcStatementResource
      extended by com.caucho.quercus.lib.db.JdbcPreparedStatementResource
          extended by com.caucho.quercus.lib.db.PostgresStatement

public class PostgresStatement
extends JdbcPreparedStatementResource

Postgres statement class. Since Postgres has no object oriented API, this is essentially a JdbcStatementResource.


Method Summary
 boolean prepare(Env env, java.lang.String query)
          Prepares this statement with the given query.
protected  boolean prepareForExecute(Env env)
           
 
Methods inherited from class com.caucho.quercus.lib.db.JdbcPreparedStatementResource
bindParams, executeImpl, getParam, getParamLength, getPreparedStatement, isPreparable, paramCount, setObject, setPreparedStatement
 
Methods inherited from class com.caucho.quercus.lib.db.JdbcStatementResource
bindResults, close, createResultSet, dataSeek, execute, execute, fetch, freeResult, getColumnCount, getConnection, getErrorCode, getErrorMessage, getFieldCount, getJavaConnection, getMetaData, getNumRows, getQuery, getResultSet, getStatementType, isFetchFieldIndexBeforeFieldName, lastInsertId, setError, setErrorCode, setErrorMessage, setQuery, setResultSet, setStatement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

prepareForExecute

protected boolean prepareForExecute(Env env)
                             throws java.sql.SQLException
Overrides:
prepareForExecute in class JdbcPreparedStatementResource
Throws:
java.sql.SQLException

prepare

public boolean prepare(Env env,
                       java.lang.String query)
Prepares this statement with the given query.

Overrides:
prepare in class JdbcPreparedStatementResource
Parameters:
query - SQL query
Returns:
true on success or false on failure