Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


oracle.jbo.server
Class DB2SQLBuilderImpl

java.lang.Object
  extended byoracle.jbo.server.BaseSQLBuilderImpl
      extended byoracle.jbo.server.SQL92SQLBuilderImpl
          extended byoracle.jbo.server.DB2SQLBuilderImpl

All Implemented Interfaces:
SQLBuilder, ViewCriteriaAdapter

public class DB2SQLBuilderImpl
extends SQL92SQLBuilderImpl

Field Summary

Fields inherited from class oracle.jbo.server.SQL92SQLBuilderImpl
ERROR_OLITE_RESOURCE_BUSY_AND_NOWAIT_SPECIFIED, mSQLBuilderInterface, ORACLE_ROWID_COLUMN

Fields inherited from interface oracle.jbo.server.SQLBuilder
BINDING_STYLE_JDBC, BINDING_STYLE_ORACLE, BINDING_STYLE_UNKNOWN, DML_DELETE, DML_INSERT, DML_UPDATE

Constructor Summary
DB2SQLBuilderImpl()

Method Summary
java.lang.String getDbTimeQuery()
java.lang.String getDbType()
returns a string uniquely identifying this type of SQLBuilder.
static SQLBuilder getInterface()
Gets the singleton instance of this class.
protected java.lang.String getJDBCDriverClassName()
required override: provide the name of the default jdbc driver class KM: 2001-09-26 - now
java.lang.String getPersistManagerClassName()
Returns the name of default PersistManager class name.
protected java.lang.String getSqlVariantLockTrailer()
This defines the string that will be post-fixed to SQL ststements to have the rows locked - if the DB is incapable of this then is should return null.
java.lang.String getVersion()
Gets a string describing the version of this implentation of this interface.
void releaseSavepoint(java.sql.Connection conn, java.lang.String id)
release SAVEPOINT - if possible
void rollbackToSavepoint(java.sql.Connection conn, java.lang.String id)
rollback to SAVEPOINT - if possible
void setSavepoint(java.sql.Connection conn, java.lang.String id)
issue a SAVEPOINT - if possible

Methods inherited from class oracle.jbo.server.SQL92SQLBuilderImpl
getCreateSequenceInsertTriggerSQL, getCreateSequenceSQL, getDropSequenceSQL, getDropTableSQL, getQueryHitCountSQL, getTypeMapName, isDisplayBindValueUI

Methods inherited from class oracle.jbo.server.BaseSQLBuilderImpl
bindDeleteStatement, bindInsertStatement, bindOptUpdateWhereClause, bindUpdateStatement, bindWhereAttrValue, bindWhereClause, bindWhereClause, buildDeleteStatement, buildInsertStatement, buildOptUpdateWhereClause, buildSelectString, buildSelectString, buildUpdateStatement, buildWhereClause, capabilityCanReuseLockStatements, checkTableNameForQuotes, compareFetchedValue, convertFlags, convertValueToStorageType, convertValueToWhereFragment, convertValueToWhereFragment, doEntityDML, doEntitySelect, doLoadBulkFromResultSet, doLoadFromResultSet, doLoadFromStatement, doPreparedStatementDefineColumnType, doPreparedStatementDefines, doRefreshSQL, doRegisterDefaultDriver, doStatementSetBindingStyle, doStatementSetBindingStyleDefault, doStatementSetRowPrefetch, dumpConstraint, executeBatch, generatePKBasedRef, generateRefAndOID, generateRowID, getBaseTable, getColumnNameWithFormatForQuery, getConstraints, getConstraintsList, getCurrentDbTime, getDefaultBindingStyle, getFormattedLHSCompareFragment, getFormattedLHSCompareFragment, getFormattedRHSCompareFragment, getFormattedRHSCompareFragment, getLockTrailerIsAtEnd, getQuotationMarkLeft, getQuotationMarkRight, getROWID, getSchemaList, getSchemas, getSupportsAliasInUpdateStatements, getTableList, getTables, getViewCriteriaAdapter, getViewCriteriaClause, getWarningText, isCharType, isConnectionAlive, isDataSourceJTABased, isNumericType, isStreamType, jdbcClientSideSecurity, lookupDataSource, needsQuotedTableName, populateJboTypeMapEntries, shouldSkipDML, supportsReturningClause, supportsRowNumQuery

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DB2SQLBuilderImpl

public DB2SQLBuilderImpl()

Method Detail

getInterface

public static SQLBuilder getInterface()
Gets the singleton instance of this class.

getVersion

public java.lang.String getVersion()
Description copied from interface: SQLBuilder
Gets a string describing the version of this implentation of this interface.
Specified by:
getVersion in interface SQLBuilder
Overrides:
getVersion in class SQL92SQLBuilderImpl

getDbType

public java.lang.String getDbType()
Description copied from interface: SQLBuilder
returns a string uniquely identifying this type of SQLBuilder. Examples are: "Oracle", "OLite", "SQL92"
Specified by:
getDbType in interface SQLBuilder
Overrides:
getDbType in class SQL92SQLBuilderImpl

getPersistManagerClassName

public java.lang.String getPersistManagerClassName()
Description copied from interface: SQLBuilder
Returns the name of default PersistManager class name.
Specified by:
getPersistManagerClassName in interface SQLBuilder
Overrides:
getPersistManagerClassName in class SQL92SQLBuilderImpl

getJDBCDriverClassName

protected java.lang.String getJDBCDriverClassName()
Description copied from class: SQL92SQLBuilderImpl
required override: provide the name of the default jdbc driver class KM: 2001-09-26 - now
Overrides:
getJDBCDriverClassName in class SQL92SQLBuilderImpl

setSavepoint

public void setSavepoint(java.sql.Connection conn,
                         java.lang.String id)
                  throws java.sql.SQLException
Description copied from interface: SQLBuilder
issue a SAVEPOINT - if possible
Specified by:
setSavepoint in interface SQLBuilder
Overrides:
setSavepoint in class BaseSQLBuilderImpl
Throws:
java.sql.SQLException

rollbackToSavepoint

public void rollbackToSavepoint(java.sql.Connection conn,
                                java.lang.String id)
                         throws java.sql.SQLException
Description copied from interface: SQLBuilder
rollback to SAVEPOINT - if possible
Specified by:
rollbackToSavepoint in interface SQLBuilder
Overrides:
rollbackToSavepoint in class BaseSQLBuilderImpl
Throws:
java.sql.SQLException

releaseSavepoint

public void releaseSavepoint(java.sql.Connection conn,
                             java.lang.String id)
                      throws java.sql.SQLException
Description copied from interface: SQLBuilder
release SAVEPOINT - if possible
Specified by:
releaseSavepoint in interface SQLBuilder
Overrides:
releaseSavepoint in class BaseSQLBuilderImpl
Throws:
java.sql.SQLException

getSqlVariantLockTrailer

protected java.lang.String getSqlVariantLockTrailer()
Description copied from class: BaseSQLBuilderImpl
This defines the string that will be post-fixed to SQL ststements to have the rows locked - if the DB is incapable of this then is should return null. Examples are: SQL Server - "WITH (HOLDLOCK)" Oracle - "FOR UPDATE NOWAIT"
Overrides:
getSqlVariantLockTrailer in class SQL92SQLBuilderImpl

getDbTimeQuery

public java.lang.String getDbTimeQuery()
Overrides:
getDbTimeQuery in class SQL92SQLBuilderImpl

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


Copyright © 1997, 2005, Oracle. All rights reserved.