com.caucho.quercus.lib.db
Class Oracle

java.lang.Object
  extended by com.caucho.quercus.lib.db.JdbcConnectionResource
      extended by com.caucho.quercus.lib.db.Oracle
All Implemented Interfaces:
EnvCleanup

public class Oracle
extends JdbcConnectionResource

oracle connection class (oracle has NO object oriented API)


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.quercus.lib.db.JdbcConnectionResource
JdbcConnectionResource.SqlParseToken
 
Field Summary
 
Fields inherited from class com.caucho.quercus.lib.db.JdbcConnectionResource
_conn, _driver, _flags, _host, _port, _socket, _sqlParseToken, _url, ENCODING
 
Constructor Summary
Oracle(Env env, java.lang.String host, java.lang.String user, java.lang.String password, java.lang.String db, int port, java.lang.String driver, java.lang.String url)
           
 
Method Summary
protected  ConnectionEntry connectImpl(Env env, java.lang.String host, java.lang.String userName, java.lang.String password, java.lang.String dbname, int port, java.lang.String socket, int flags, java.lang.String driver, java.lang.String url, boolean isNewLink)
          Connects to the underlying database.
protected  JdbcResultResource createResult(Env env, java.sql.Statement stmt, java.sql.ResultSet rs)
          Creates a database-specific result.
 OracleStatement prepare(Env env, StringValue query)
          returns a prepared statement
 java.lang.String toString()
          Converts to a string.
 
Methods inherited from class com.caucho.quercus.lib.db.JdbcConnectionResource
cleanup, clearErrors, close, closeStatement, commit, connectInternal, error, getAffectedRows, getCatalog, getCatalogs, getCharacterSetName, getClientEncoding, getClientInfo, getConnection, getDbName, getDriver, getEnv, getErrorCode, getErrorMessage, getFieldCount, getHost, getHostInfo, getJavaConnection, getPassword, getPort, getResultResource, getServerInfo, getTableMetaData, getUrl, getURL, getUserName, getWarnings, isConnected, isSeekable, keepResourceValues, keepStatementOpen, parseSqlToken, ping, realEscapeString, realQuery, rollback, saveErrors, setAffectedRows, setAutoCommit, setCatalog, setClientEncoding, setResultResource, setWarnings, toObject, validateConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Oracle

public Oracle(Env env,
              java.lang.String host,
              java.lang.String user,
              java.lang.String password,
              java.lang.String db,
              int port,
              java.lang.String driver,
              java.lang.String url)
Method Detail

connectImpl

protected ConnectionEntry connectImpl(Env env,
                                      java.lang.String host,
                                      java.lang.String userName,
                                      java.lang.String password,
                                      java.lang.String dbname,
                                      int port,
                                      java.lang.String socket,
                                      int flags,
                                      java.lang.String driver,
                                      java.lang.String url,
                                      boolean isNewLink)
Connects to the underlying database.

Specified by:
connectImpl in class JdbcConnectionResource

prepare

public OracleStatement prepare(Env env,
                               StringValue query)
returns a prepared statement


createResult

protected JdbcResultResource createResult(Env env,
                                          java.sql.Statement stmt,
                                          java.sql.ResultSet rs)
Creates a database-specific result.

Overrides:
createResult in class JdbcConnectionResource

toString

public java.lang.String toString()
Description copied from class: JdbcConnectionResource
Converts to a string.

Overrides:
toString in class JdbcConnectionResource