|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jbo.common.CommonCriteriaAdapter
oracle.jbo.server.BaseSQLBuilderImpl
oracle.jbo.server.OLiteSQLBuilderImpl
OracleLite specific implementation of the SQLBuilder interface.
| Field Summary | |
static int |
ERROR_OLITE_RESOURCE_BUSY_AND_NOWAIT_SPECIFIEDOLite specific error code for resource busy exception. |
protected static java.lang.String |
ORACLE_ROWID_COLUMNOracle specific column name for ROWID. |
| 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 |
| Constructor Summary | |
protected |
OLiteSQLBuilderImpl()This is a singleton class. |
| Method Summary | |
protected static java.lang.String |
addSqlTypeText(java.lang.String sqlText, java.lang.String inputType)A helper method for getTableList. |
protected int |
bindWhereAttrValue(EntityImpl entityContext, DBTransactionImpl trans, java.sql.PreparedStatement stmt, AttributeDefImpl attrDef, int bindIndex, boolean skipNull)Binds an attribute value to the Statement's WHERE clause parameter index dealing with Null values appropriately. |
protected boolean |
capabilityCanReuseLockStatements()Cannot reuse lock statements for OLite database . |
java.lang.Object |
doLoadFromResultSet(java.lang.Object theTypeFactory, java.lang.Object theElemFactory, java.lang.Class theJavaType, byte attrLoad, java.sql.ResultSet rs, int index, DBTransactionImpl trans)Loads an object from a result set. |
java.lang.String |
getBaseTable(java.sql.Connection conn, java.lang.String schema, java.lang.String name)Unroll any synonyms that may be present, and get the real objectname. |
java.lang.String |
getCreateSequenceInsertTriggerSQL(java.lang.String triggerName, java.lang.String tableName, java.lang.String sequenceName, java.lang.String colName)This method is not implemented for OLite SQLBuilder. |
java.lang.String |
getCreateSequenceSQL(java.lang.String sequenceName, int startVal)This method is not implemented for OLite SQLBuilder. |
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. |
int |
getDefaultBindingStyle()Default binding style for this SQLBuilder is JDBC. |
java.lang.String |
getDropSequenceSQL(java.lang.String sequenceName)This method is not implemented for OLite SQLBuilder. |
java.lang.String |
getDropTableSQL(java.lang.String dbObjectName)Returns a SQL statement that drops a specified table. |
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()This defines the string that will be post-fixed to SQL statements to have the rows locked - if the DB is incapable of this then it should return null. |
java.util.Vector |
getTableList(java.sql.Connection conn, java.lang.String defaultUserName, java.lang.String userName, boolean bTable, boolean bAlias, boolean bView, boolean bSnap)Return a list of tables visible in this connection. |
protected static java.lang.String |
getTableListSqlStatement(java.lang.String _defaultUserName, java.lang.String userName, boolean bTable, boolean bAlias, boolean bView, boolean _bSnap, boolean bCount)A helper method for getTableListSqlStatement. |
java.lang.String |
getTypeMapName()The default type map for a OLite database is OLITE. |
java.lang.String |
getVersion()Gets a string describing the version of this implentation of this interface. |
boolean |
isDisplayBindValueUI()For Oracle database the test SQL wizards provide additional functionality to bind the parameters with test values. |
| Methods inherited from class oracle.jbo.common.CommonCriteriaAdapter |
convertValueToWhereFragment, getCriteriaClause, isCharType, isNumericType |
| 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 |
| Field Detail |
public static final int ERROR_OLITE_RESOURCE_BUSY_AND_NOWAIT_SPECIFIED
protected static final java.lang.String ORACLE_ROWID_COLUMN
| Constructor Detail |
protected OLiteSQLBuilderImpl()
| Method Detail |
public static SQLBuilder getInterface()
protected java.lang.String getJDBCDriverClassName(java.lang.String url)
BaseSQLBuilderImplgetJDBCDriverClassName in class BaseSQLBuilderImplurl - JDBC Connection url.public java.lang.String getVersion()
SQLBuildergetVersion in interface SQLBuildergetVersion in class BaseSQLBuilderImplpublic java.lang.String getDbType()
SQLBuildergetDbType in interface SQLBuildergetDbType in class BaseSQLBuilderImplpublic java.lang.String getTypeMapName()
getTypeMapName in interface SQLBuildergetTypeMapName in class BaseSQLBuilderImplpublic java.lang.String getPersistManagerClassName()
SQLBuildergetPersistManagerClassName in interface SQLBuildergetPersistManagerClassName in class BaseSQLBuilderImplpublic int getDefaultBindingStyle()
getDefaultBindingStyle in interface SQLBuildergetDefaultBindingStyle in class BaseSQLBuilderImpl
public java.util.Vector getTableList(java.sql.Connection conn,
java.lang.String defaultUserName,
java.lang.String userName,
boolean bTable,
boolean bAlias,
boolean bView,
boolean bSnap)
throws java.lang.Exception
SQLBuildergetTables(Connection, String, String, boolean, boolean, boolean, boolean).
Note: this method is subject to change.
getTableList in interface SQLBuildergetTableList in class BaseSQLBuilderImpljava.lang.Exception
protected static java.lang.String getTableListSqlStatement(java.lang.String _defaultUserName,
java.lang.String userName,
boolean bTable,
boolean bAlias,
boolean bView,
boolean _bSnap,
boolean bCount)
_defaultUserName - the user name of the connection. This is will also be treated as the schema name for non-oracle databases.userName - the user name for which the tables need to be listed.bTable - flag to include Table objects in the list.bAlias - flag to include Synonyms in the list - Oracle database only.bView - flag to include View objects in the list._bSnap - flag to include Snapshot objects in the list.bCount - flag to retrieve the number of objects that will be fetched based on the object type flags.
protected static java.lang.String addSqlTypeText(java.lang.String sqlText,
java.lang.String inputType)
sqlText - a String containing a list of object types included so far.inputType - a new object type to be added to the list.
public java.lang.String getBaseTable(java.sql.Connection conn,
java.lang.String schema,
java.lang.String name)
throws java.sql.SQLException
SQLBuilderNote: this method is subject to change.
getBaseTable in interface SQLBuildergetBaseTable in class BaseSQLBuilderImpljava.sql.SQLException
protected int bindWhereAttrValue(EntityImpl entityContext,
DBTransactionImpl trans,
java.sql.PreparedStatement stmt,
AttributeDefImpl attrDef,
int bindIndex,
boolean skipNull)
throws java.sql.SQLException
BaseSQLBuilderImplbindWhereAttrValue in class BaseSQLBuilderImplentityContext - the entity object.trans - the transaction object.stmt - the Statement object carrying out the SQL.attrDef - the defintion of the attribute to which the value belongs.bindIndex - the parameter index in the PreparedStatement.skipNull - indicates if the null values need to be bound or skipped.java.sql.SQLExceptionprotected boolean capabilityCanReuseLockStatements()
capabilityCanReuseLockStatements in class BaseSQLBuilderImpl
public java.lang.Object doLoadFromResultSet(java.lang.Object theTypeFactory,
java.lang.Object theElemFactory,
java.lang.Class theJavaType,
byte attrLoad,
java.sql.ResultSet rs,
int index,
DBTransactionImpl trans)
SQLBuilderNote: this method is subject to change.
doLoadFromResultSet in interface SQLBuilderdoLoadFromResultSet in class BaseSQLBuilderImplprotected java.lang.String getSqlVariantLockTrailer()
BaseSQLBuilderImplgetSqlVariantLockTrailer in class BaseSQLBuilderImplpublic java.lang.String getDbTimeQuery()
BaseSQLBuilderImplgetDbTimeQuery in class BaseSQLBuilderImplpublic java.lang.String getDropTableSQL(java.lang.String dbObjectName)
SQLBuilderNote: this method is subject to change.
getDropTableSQL in interface SQLBuildergetDropTableSQL in class BaseSQLBuilderImplpublic boolean isDisplayBindValueUI()
SQLBuilderisDisplayBindValueUI in interface SQLBuilderisDisplayBindValueUI in class BaseSQLBuilderImpl
public java.lang.String getCreateSequenceInsertTriggerSQL(java.lang.String triggerName,
java.lang.String tableName,
java.lang.String sequenceName,
java.lang.String colName)
getCreateSequenceInsertTriggerSQL in interface SQLBuildergetCreateSequenceInsertTriggerSQL in class BaseSQLBuilderImpl
public java.lang.String getCreateSequenceSQL(java.lang.String sequenceName,
int startVal)
getCreateSequenceSQL in interface SQLBuildergetCreateSequenceSQL in class BaseSQLBuilderImplpublic java.lang.String getDropSequenceSQL(java.lang.String sequenceName)
getDropSequenceSQL in interface SQLBuildergetDropSequenceSQL in class BaseSQLBuilderImpl
|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||