|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jbo.server.DBTransactionImpl
oracle.jbo.server.DBTransactionImpl2
Implementation of DBTransaction interface for representing
both "connected" and "not connected" state.
In pre 9.0.3 versions the disconnected and connected state implementation was
provided by NullDBTransactionImpl and DBTransactionImpl respectivey.
DBTransactionImpl instance was created
only when clients initiated the acquisition of a jdbc connection by calling
the one of Transaction.connect() or Transaction.connectToDataSource() methods.
DatabaseTransactionFactory| Field Summary |
| Fields inherited from class oracle.jbo.server.DBTransactionImpl |
MAX_CURSORS_UNINITIALIZED, mConnectionCredentials, mInternalCredentials, mSQLBuilder, mTxnListeners, POST_ABORT_ON_FIRST_EXCEPTION, POST_ALL_NO_RESET_ON_EXCEPTION, POST_ALL_RESET_ON_EXCEPTION |
| Fields inherited from interface oracle.jbo.server.DBTransaction |
DEFAULT |
| Fields inherited from interface oracle.jbo.Transaction |
LOCK_NONE, LOCK_OPTIMISTIC, LOCK_OPTUPDATE, LOCK_PESSIMISTIC |
| Constructor Summary | |
DBTransactionImpl2()
|
|
| Method Summary | |
void |
connect(java.sql.Connection sqlConnection)
Implementation of connect
method. |
void |
connect(java.lang.String url)
Implementation of connect method. |
void |
connect(java.lang.String url,
java.util.Properties info)
Implementation of connect
method. |
void |
connect(java.lang.String url,
java.lang.String user,
java.lang.String password)
Implementation of connect
method. |
void |
connectToDataSource(javax.sql.DataSource ds,
boolean isJTAbased)
Implementation of connectToDataSource
method. |
void |
connectToDataSource(javax.sql.DataSource ds,
java.lang.String user,
java.lang.String passwd,
boolean isJTAbased)
Implementation of connectToDataSource
method. |
void |
connectToDataSource(java.util.Hashtable env,
java.lang.String dsName,
boolean isJTABased)
Implementation of connectToDataSource
method. |
void |
connectToDataSource(java.util.Hashtable env,
java.lang.String dsName,
java.lang.String user,
java.lang.String passwd,
boolean isJTABased)
Implementation of connectToDataSource
method. |
void |
connectToDataSource(java.lang.String nsUrl,
java.lang.String nsUser,
java.lang.String nsPasswd,
java.lang.String dsUrl)
Looks up a datasource from Oracle 8i namespace using the jdbc_access protocol and acquires the default jdbc connection from the looked up datasource using the javax.sql.Datasource.getConnection() method. |
void |
connectToDataSource(java.lang.String nsUrl,
java.lang.String nsUser,
java.lang.String nsPasswd,
java.lang.String dsUrl,
java.lang.String user,
java.lang.String passwd)
Looks up a datasource from Oracle 8i namespace using the jdbc_access protocol and acquires the jdbc connection from the looked up datasource using the javax.sql.Datasource.getConnection(String user, String password) method. |
java.sql.CallableStatement |
createCallableStatement(java.lang.String str,
int noRowsPrefetch)
Implementation of createCallableStatement
method. |
EntityImpl |
createEntityInstance(EntityDefImpl entityDef,
AttributeList al)
Implementation of createEntityInstance
method. |
EntityImpl |
createEntityInstance(java.lang.String entityDefName,
AttributeList al)
Implementation of createEntityInstance
method. |
java.sql.PreparedStatement |
createPreparedStatement(java.lang.String str,
int noRowsPrefetch)
Implementation of createPreparedStatement
method. |
java.lang.Object |
createRef(java.lang.String structName,
byte[] data)
Checks to see if jdbc connection was acquired. |
java.sql.Statement |
createStatement(int noRowsPrefetch)
Implementation of createStatement
method. |
ViewObject |
createViewObjectFromQueryClauses(java.lang.String eoName,
java.lang.String selectClause,
java.lang.String fromClause,
java.lang.String whereClause,
java.lang.String orderByClause)
Implementation of createViewObjectFromQueryClauses
method. |
ViewObject |
createViewObjectFromQueryStmt(java.lang.String sqlStatement)
Implementation of createViewObjectFromQueryStmt
method. |
void |
disconnect(boolean retainState)
Implementation of disconnect
method. |
EntityImpl |
findByPrimaryKey(EntityDefImpl entityDef,
Key key)
Implementation of findByPrimaryKey
method. |
EntityImpl |
findByPrimaryKey(java.lang.String entityDefName,
Key key)
Implementation of findByPrimaryKey
method. |
java.sql.Timestamp |
getCurrentDbTime()
Checks to see if jdbc connection was acquired. |
void |
reconnect()
Implementation of recconnect
method. |
void |
reconnect(boolean force)
Implementation of reconnect
method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBTransactionImpl2()
| Method Detail |
public void connect(java.sql.Connection sqlConnection)
connect
method.
connect in interface DBTransactionconnect in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.public void connect(java.lang.String url)
connect method.
connect in interface Transactionconnect in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connect(java.lang.String url,
java.util.Properties info)
connect
method.
connect in interface Transactionconnect in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connect(java.lang.String url,
java.lang.String user,
java.lang.String password)
connect
method.
connect in interface Transactionconnect in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connectToDataSource(java.lang.String nsUrl,
java.lang.String nsUser,
java.lang.String nsPasswd,
java.lang.String dsUrl)
Transaction
connectToDataSource in interface TransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
java.lang.UnSupportedOperationException - if not connected.
public void connectToDataSource(java.lang.String nsUrl,
java.lang.String nsUser,
java.lang.String nsPasswd,
java.lang.String dsUrl,
java.lang.String user,
java.lang.String passwd)
Transaction
connectToDataSource in interface TransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
java.lang.UnSupportedOperationException - if not connected.
public void connectToDataSource(javax.sql.DataSource ds,
boolean isJTAbased)
connectToDataSource
method.
connectToDataSource in interface DBTransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connectToDataSource(javax.sql.DataSource ds,
java.lang.String user,
java.lang.String passwd,
boolean isJTAbased)
connectToDataSource
method.
connectToDataSource in interface DBTransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connectToDataSource(java.util.Hashtable env,
java.lang.String dsName,
java.lang.String user,
java.lang.String passwd,
boolean isJTABased)
connectToDataSource
method.
connectToDataSource in interface TransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.
public void connectToDataSource(java.util.Hashtable env,
java.lang.String dsName,
boolean isJTABased)
connectToDataSource
method.
connectToDataSource in interface TransactionconnectToDataSource in class DBTransactionImplAlreadyConnectedException - if the jdbc connection has already been acquired.public void disconnect(boolean retainState)
disconnect
method.
disconnect in interface DBTransactiondisconnect in class DBTransactionImplpublic void reconnect()
recconnect
method.
reconnect in interface DBTransactionreconnect in class DBTransactionImplDBTransactionImpl.disconnect(boolean)public void reconnect(boolean force)
reconnect
method.
reconnect in interface Transactionreconnect in class DBTransactionImplforce - force a reconnect, should usually be false.public java.sql.Statement createStatement(int noRowsPrefetch)
createStatement
method.
createStatement in interface DBTransactioncreateStatement in class DBTransactionImplNotConnectedException - if no jdbc connection was acquired
public java.sql.CallableStatement createCallableStatement(java.lang.String str,
int noRowsPrefetch)
createCallableStatement
method.
createCallableStatement in interface DBTransactioncreateCallableStatement in class DBTransactionImplNotConnectedException - if no jdbc connection was acquired
public java.sql.PreparedStatement createPreparedStatement(java.lang.String str,
int noRowsPrefetch)
createPreparedStatement
method.
createPreparedStatement in interface DBTransactioncreatePreparedStatement in class DBTransactionImplNotConnectedException - if no jdbc connection was acquired
public EntityImpl createEntityInstance(EntityDefImpl entityDef,
AttributeList al)
createEntityInstance
method.
createEntityInstance in interface DBTransactioncreateEntityInstance in class DBTransactionImplentityDef - the EntityDef defintion to use to create the EntityImpl.al - attribute list to pass to the create() method on the
EntityImpl.
NotConnectedException - if no jdbc connection was acquired
public EntityImpl createEntityInstance(java.lang.String entityDefName,
AttributeList al)
createEntityInstance
method.
createEntityInstance in interface DBTransactioncreateEntityInstance in class DBTransactionImplentityDefName - the String name of entity defintion to use to create the EntityImpl.al - attribute list to pass to the create method on the
EntityImpl.
NotConnectedException - if no jdbc connection was acquired
public EntityImpl findByPrimaryKey(EntityDefImpl entityDef,
Key key)
findByPrimaryKey
method.
findByPrimaryKey in interface DBTransactionfindByPrimaryKey in class DBTransactionImplentityDef - the Entity Def object to to be used to find the instance.key - the Primary Key.
NotConnectedException - if no jdbc connection was acquired
public EntityImpl findByPrimaryKey(java.lang.String entityDefName,
Key key)
findByPrimaryKey
method.
findByPrimaryKey in interface DBTransactionfindByPrimaryKey in class DBTransactionImplentityDefName - the name of the defintion to to be used to find the instance.key - the Primary Key.
NotConnectedException - if no jdbc connection was acquired
public ViewObject createViewObjectFromQueryClauses(java.lang.String eoName,
java.lang.String selectClause,
java.lang.String fromClause,
java.lang.String whereClause,
java.lang.String orderByClause)
createViewObjectFromQueryClauses
method.
createViewObjectFromQueryClauses in interface DBTransactioncreateViewObjectFromQueryClauses in class DBTransactionImpleoName - the name of a EntityObject beaninfo class.selectClause - an SQL statement SELECT clause.fromClause - an SQL statement FROM clause.whereClause - an SQL statement WHERE clause.
NotConnectedException - if no jdbc connection was acquiredpublic ViewObject createViewObjectFromQueryStmt(java.lang.String sqlStatement)
createViewObjectFromQueryStmt
method.
createViewObjectFromQueryStmt in interface DBTransactioncreateViewObjectFromQueryStmt in class DBTransactionImplsqlStatement - a SQL statement.
NotConnectedException - if no jdbc connection was acquired
public java.lang.Object createRef(java.lang.String structName,
byte[] data)
createRef in interface TransactioncreateRef in class DBTransactionImplNotConnectedException - if no jdbc connection was acquiredpublic java.sql.Timestamp getCurrentDbTime()
getCurrentDbTime in class DBTransactionImplNotConnectedException - if no jdbc connection was acquired
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.