|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.CommonCriteriaAdapter
oracle.jbo.server.CriteriaAdapterImpl
oracle.jbo.server.BaseSQLBuilderImpl
oracle.jbo.server.SQL92SQLBuilderImpl
oracle.jbo.server.DB2SQLBuilderImpl
public class DB2SQLBuilderImpl
DB2 specific implementation of the SQLBuilder interface.
Field Summary |
---|
Fields inherited from class oracle.jbo.server.SQL92SQLBuilderImpl |
---|
ERROR_OLITE_RESOURCE_BUSY_AND_NOWAIT_SPECIFIED, mSQLBuilderInterface, ORACLE_ROWID_COLUMN |
Fields inherited from class oracle.jbo.server.BaseSQLBuilderImpl |
---|
LOGGER_NAME |
Fields inherited from interface oracle.jbo.server.SQLBuilder |
---|
BINDING_STYLE_JDBC, BINDING_STYLE_ORACLE, BINDING_STYLE_ORACLE_NAME, BINDING_STYLE_UNKNOWN, DML_DELETE, DML_INSERT, DML_UPDATE, MAX_COLUMN_IDENTIFIER_LEN, RANGE_PAGE_BIND_HIGH_ROWNUM, RANGE_PAGE_BIND_LOW_ROWNUM |
Constructor Summary | |
---|---|
DB2SQLBuilderImpl()
|
Method Summary | |
---|---|
java.lang.String |
buildEffDtDateDayAddStatement()
Returns a statement that returns a date that is 'x' number of days apart from the specified date. |
java.lang.String |
getClauseForDateLiteral(java.util.Date date)
Creates a database platform specific clause for converting a date string literal to date datatype. |
java.util.ArrayList |
getConstraintsList(java.sql.Connection conn,
java.lang.String catalog,
java.lang.String user_or_schema,
java.lang.String full_tablename)
Return vector with constraint details for this table where each detail is in a String array with this structure: 0 String owner |
java.lang.String |
getDbTimeQuery()
Returns a SQL statement to obtain the current time from the database. |
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(java.lang.String url)
Concrete implementations of SQLBuilder must elect a default driver name. |
java.lang.String |
getPersistManagerClassName()
Returns the name of default PersistManager class name. |
protected java.lang.String |
getSqlVariantLockTrailer()
Returns the lock trailer from the System properties. |
java.lang.String |
getVersion()
Gets a string describing the version of this implentation of this interface. |
boolean |
isNewLineAllowedInSQL(java.sql.Connection conn)
Checks if the JDBC driver supports new line character in SQL statements. |
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.CriteriaAdapterImpl |
---|
formatAttributeValue, getBindValsForSqlGen, getFormattedLHSCompareFragment, getFormattedRHSCompareFragment, getRowSetForSqlGen, getViewCriteriaClause, getWhereFragmentFromVO, isCriteriaItemOuterJoined, isLHSFragmentOptional, setupBindVarExtendedData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.server.SQLBuilder |
---|
isCharType, isNumericType |
Constructor Detail |
---|
public DB2SQLBuilderImpl()
Method Detail |
---|
public static SQLBuilder getInterface()
public java.lang.String getVersion()
SQLBuilder
getVersion
in interface SQLBuilder
getVersion
in class SQL92SQLBuilderImpl
public java.lang.String getDbType()
SQLBuilder
getDbType
in interface SQLBuilder
getDbType
in class SQL92SQLBuilderImpl
public java.lang.String getPersistManagerClassName()
SQLBuilder
getPersistManagerClassName
in interface SQLBuilder
getPersistManagerClassName
in class SQL92SQLBuilderImpl
protected java.lang.String getJDBCDriverClassName(java.lang.String url)
BaseSQLBuilderImpl
getJDBCDriverClassName
in class SQL92SQLBuilderImpl
url
- JDBC Connection url.
public void setSavepoint(java.sql.Connection conn, java.lang.String id) throws java.sql.SQLException
SQLBuilder
setSavepoint
in interface SQLBuilder
setSavepoint
in class BaseSQLBuilderImpl
conn
- the Connection used to create a savepoint.id
- the id for a savepoint.
java.sql.SQLException
public void rollbackToSavepoint(java.sql.Connection conn, java.lang.String id) throws java.sql.SQLException
SQLBuilder
rollbackToSavepoint
in interface SQLBuilder
rollbackToSavepoint
in class BaseSQLBuilderImpl
conn
- the Connection used to rollback the savepoint.id
- the id for a savepoint
java.sql.SQLException
public void releaseSavepoint(java.sql.Connection conn, java.lang.String id) throws java.sql.SQLException
SQLBuilder
releaseSavepoint
in interface SQLBuilder
releaseSavepoint
in class BaseSQLBuilderImpl
conn
- the Connection used to release the savepoint.id
- the id for a savepoint
java.sql.SQLException
protected java.lang.String getSqlVariantLockTrailer()
SQL92SQLBuilderImpl
getSqlVariantLockTrailer
in class SQL92SQLBuilderImpl
public java.lang.String getDbTimeQuery()
BaseSQLBuilderImpl
getDbTimeQuery
in class SQL92SQLBuilderImpl
public boolean isNewLineAllowedInSQL(java.sql.Connection conn)
SQLBuilder
isNewLineAllowedInSQL
in interface SQLBuilder
isNewLineAllowedInSQL
in class BaseSQLBuilderImpl
conn
- the Database connection object
public java.util.ArrayList getConstraintsList(java.sql.Connection conn, java.lang.String catalog, java.lang.String user_or_schema, java.lang.String full_tablename) throws java.sql.SQLException
SQLBuilder
1 String constraint_name
2 String constraint_type
3 String table_name
4 String search_condition
5 Integer delete_rule (cascade)
6 Integer status (enabled)
7 Integerdeferrable
8 Integer deferred
9 Integer validated
10 String column_name
11 Integer position
12 String fkname
13 String fkother
Note: this method is subject to change.
getConstraintsList
in interface SQLBuilder
getConstraintsList
in class BaseSQLBuilderImpl
conn
- the connection object.catalog
- the database catalog.user_or_schema
- the database schema.full_tablename
- the name of the table.
java.sql.SQLException
public java.lang.String buildEffDtDateDayAddStatement()
SQLBuilder
buildEffDtDateDayAddStatement
in interface SQLBuilder
buildEffDtDateDayAddStatement
in class SQL92SQLBuilderImpl
String
that contains the necessary SQL.public java.lang.String getClauseForDateLiteral(java.util.Date date)
SQLBuilder
getClauseForDateLiteral
in interface SQLBuilder
getClauseForDateLiteral
in class SQL92SQLBuilderImpl
date
- The date object that will be formatted and passed as a String
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |