org.opencms.db.oracle
Class CmsSqlManager
java.lang.Object
   org.opencms.db.CmsSqlManager
org.opencms.db.CmsSqlManager
       org.opencms.db.generic.CmsSqlManager
org.opencms.db.generic.CmsSqlManager
           org.opencms.db.oracle.CmsSqlManager
org.opencms.db.oracle.CmsSqlManager
- Direct Known Subclasses: 
- CmsSqlManager
- public class CmsSqlManager 
- extends CmsSqlManager
Oracle implementation of the SQL manager.
- Since:
- 6.0.0
- Version:
- $Revision: 1.29 $
- Author:
- Thomas Weckert
 
 
 
| Method Summary | 
| static void | closeAllInTransaction(CmsSqlManager sqlManager,
                      CmsDbContext dbc,
                      java.sql.Connection con,
                      java.sql.PreparedStatement stmnt,
                      java.sql.ResultSet res,
                      java.sql.PreparedStatement commit,
                      boolean wasInTransaction)Attempts to close the connection, statement and result set after a statement has been executed.
 | 
|  byte[] | getBytes(java.sql.ResultSet res,
         java.lang.String attributeName)Retrieves the value of the designated column in the current row of this ResultSet object as 
 a byte array in the Java programming language.
 | 
 
| Methods inherited from class org.opencms.db.generic.CmsSqlManager | 
| closeAll, finalize, getConnection, getInstance, getPreparedStatement, getPreparedStatement, getPreparedStatement, getPreparedStatementForSql, init, loadQueryProperties, readQuery, readQuery, readQuery, replaceProjectPattern, replaceQuerySearchPatterns, setBytes, validateEmpty | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CmsSqlManager
public CmsSqlManager()
- See Also:
- CmsSqlManager.CmsSqlManager()
closeAllInTransaction
public static void closeAllInTransaction(CmsSqlManager sqlManager,
                                         CmsDbContext dbc,
                                         java.sql.Connection con,
                                         java.sql.PreparedStatement stmnt,
                                         java.sql.ResultSet res,
                                         java.sql.PreparedStatement commit,
                                         boolean wasInTransaction)
- Attempts to close the connection, statement and result set after a statement has been executed.
 
 
- 
- Parameters:
- sqlManager- the sql manager to use
- dbc- the current database context
- con- the JDBC connection
- stmnt- the statement
- res- the result set
- commit- the additional statement for the 'commit' command
- wasInTransaction- if using transactions
 
getBytes
public byte[] getBytes(java.sql.ResultSet res,
                       java.lang.String attributeName)
                throws java.sql.SQLException
- Description copied from class: CmsSqlManager
- Retrieves the value of the designated column in the current row of this ResultSet object as 
 a byte array in the Java programming language.
 
 The bytes represent the raw values returned by the driver. Overwrite this method if another 
 database server requires a different handling of byte attributes in tables. 
 
 
- 
- Overrides:
- getBytesin class- CmsSqlManager
 
- 
- Parameters:
- res- the result set
- attributeName- the name of the table attribute
- Returns:
- byte[] the column value; if the value is SQL NULL, the value returned is null
- Throws:
- java.sql.SQLException- if a database access error occurs
- See Also:
- CmsSqlManager.getBytes(java.sql.ResultSet, java.lang.String)