com.caucho.quercus.lib.db
Class PostgresResult

java.lang.Object
  extended by com.caucho.quercus.lib.db.JdbcResultResource
      extended by com.caucho.quercus.lib.db.PostgresResult

public class PostgresResult
extends JdbcResultResource

postgres result set class (postgres has NO object oriented API)


Field Summary
 
Fields inherited from class com.caucho.quercus.lib.db.JdbcResultResource
_metaData, _rs, BLOB, DATE, DATETIME, FETCH_ASSOC, FETCH_BOTH, FETCH_NUM, INTEGER, REAL, STRING, TIME, TIMESTAMP, UNKNOWN, YEAR
 
Constructor Summary
PostgresResult(Env env, java.sql.ResultSetMetaData metaData, Postgres conn)
          Constructor for PostgresResult
PostgresResult(Env env, java.sql.Statement stmt, java.sql.ResultSet rs, Postgres conn)
          Constructor for PostgresResult
 
Method Summary
protected  Value getColumnDate(Env env, java.sql.ResultSet rs, int column)
           
protected  Value getColumnTime(Env env, java.sql.ResultSet rs, int column)
           
protected  Value getColumnTimestamp(Env env, java.sql.ResultSet rs, int column)
           
 boolean getPassedNullRow()
          Returns whether a NULL row parameter has been passed in or not.
 void setPassedNullRow()
          Sets that a NULL row parameter has been passed in.
 
Methods inherited from class com.caucho.quercus.lib.db.JdbcResultResource
close, fetchArray, fetchAssoc, fetchField, fetchObject, fetchRow, getAffectedRows, getColumnNumber, getColumnNumber, getColumnString, getColumnValue, getConnection, getFieldCatalog, getFieldCount, getFieldLength, getFieldName, getFieldNameAlias, getFieldNotNull, getFieldOffset, getFieldScale, getFieldSchema, getFieldTable, getFieldType, getFieldType, getJavaStatement, getJdbcType, getLengths, getMetaData, getNumFields, getNumRows, getNumRows, getResultField, getResultSet, getStatement, getUnicodeColumnString, isInResultString, isValidFieldOffset, seek, setAffectedRows, setFieldOffset, setRowNumber, setRowNumber, toKey, toString, validateResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostgresResult

public PostgresResult(Env env,
                      java.sql.Statement stmt,
                      java.sql.ResultSet rs,
                      Postgres conn)
Constructor for PostgresResult

Parameters:
stmt - the corresponding statement
rs - the corresponding result set
conn - the corresponding connection

PostgresResult

public PostgresResult(Env env,
                      java.sql.ResultSetMetaData metaData,
                      Postgres conn)
Constructor for PostgresResult

Parameters:
metaData - the corresponding result set meta data
conn - the corresponding connection
Method Detail

setPassedNullRow

public void setPassedNullRow()
Sets that a NULL row parameter has been passed in.


getPassedNullRow

public boolean getPassedNullRow()
Returns whether a NULL row parameter has been passed in or not.


getColumnTime

protected Value getColumnTime(Env env,
                              java.sql.ResultSet rs,
                              int column)
                       throws java.sql.SQLException
Overrides:
getColumnTime in class JdbcResultResource
Throws:
java.sql.SQLException

getColumnDate

protected Value getColumnDate(Env env,
                              java.sql.ResultSet rs,
                              int column)
                       throws java.sql.SQLException
Overrides:
getColumnDate in class JdbcResultResource
Throws:
java.sql.SQLException

getColumnTimestamp

protected Value getColumnTimestamp(Env env,
                                   java.sql.ResultSet rs,
                                   int column)
                            throws java.sql.SQLException
Overrides:
getColumnTimestamp in class JdbcResultResource
Throws:
java.sql.SQLException