Business Components

oracle.jbo.server
Class NullDBTransactionImpl

java.lang.Object
  |
  +--oracle.jbo.server.NullDBTransactionImpl

public class NullDBTransactionImpl
extends java.lang.Object
implements DBTransaction

Internal: Applications should not use this class.


Field Summary
protected  ConnectionCredentials mConnectionCredentials
           
 
Fields inherited from interface oracle.jbo.Transaction
LOCK_NONE, LOCK_OPTIMISTIC, LOCK_PESSIMISTIC
 
Constructor Summary
NullDBTransactionImpl()
           
 
Method Summary
 void addToValidationListeners(ValidationListener w)
          Implementation of the DBTransaction interface.
 void addTransactionListener(TransactionListener listener)
          Implementation of the DBTransaction interface.
 void addTransactionListenerNoCheck(TransactionListener listener)
          Implementation of the DBTransaction interface.
 void addTransactionPostListener(TransactionPostListener listener)
          Implementation of the DBTransaction interface.
 void addTransactionPostListenerNoCheck(TransactionPostListener listener)
          Implementation of the DBTransaction interface.
 void addWarning(JboWarning warn)
          Implementation of the DBTransaction interface.
 void closeTransaction()
          Implementation of the DBTransaction interface.
 void commit()
          Implementation of the DBTransaction interface.
 void connect(java.sql.Connection sqlConnection)
          Implementation of the DBTransaction interface.
 void connect(java.lang.String url)
          Implementation of the DBTransaction interface.
 void connect(java.lang.String url, java.util.Properties info)
          Implementation of the DBTransaction interface.
 void connect(java.lang.String url, java.lang.String user, java.lang.String password)
          Implementation of the DBTransaction interface.
 ApplicationModule createApplicationModule(java.lang.String defName)
          Implementation of the DBTransaction interface.
 java.sql.CallableStatement createCallableStatement(java.lang.String str, int noRowsPrefetch)
          Implementation of the DBTransaction interface.
 EntityImpl createEntityInstance(EntityDefImpl entityDef, AttributeList al)
          Implementation of the DBTransaction interface.
 EntityImpl createEntityInstance(java.lang.String entityDefName, AttributeList al)
          Implementation of the DBTransaction interface.
 java.sql.PreparedStatement createPreparedStatement(java.lang.String str, int noRowsPrefetch)
          Implementation of the DBTransaction interface.
 java.lang.Object createRef(java.lang.String structName, byte[] data)
          Internal: Applications should not use this method.
 java.sql.Statement createStatement(int noRowsPrefetch)
          Implementation of the DBTransaction interface.
 ViewLink createViewLink(java.lang.String viewLinkDefName, ViewObject master, ViewObject detail)
          Implementation of the DBTransaction interface.
 ViewLink createViewLinkBetweenViewObjects(java.lang.String accessorName, ViewObject master, AttributeDef[] srcAttrs, ViewObject detail, AttributeDef[] destAttrs, java.lang.String assocClause)
          Implementation of the DBTransaction interface.
 ViewLink createViewLinkFromEntityAssocName(java.lang.String entityAssocName, ViewObject master, ViewObject detail)
          Implementation of the DBTransaction interface.
 ViewObject createViewObject(java.lang.String voDefName)
          Implementation of the DBTransaction interface.
 ViewObject createViewObjectFromQueryClauses(java.lang.String eoName, java.lang.String selectClause, java.lang.String fromClause, java.lang.String whereClause, java.lang.String orderByClause)
          Implementation of the DBTransaction interface.
 ViewObject createViewObjectFromQueryStmt(java.lang.String sqlStatement)
          Implementation of the DBTransaction interface.
 void disconnect()
          Implementation of the DBTransaction interface.
 java.lang.String dumpQueryResult(java.lang.String query, java.lang.String dumpClassName, java.lang.String[] data)
          Implementation of the DBTransaction interface.
 int executeCommand(java.lang.String command)
          Implementation of the DBTransaction interface.
 EntityImpl findByPrimaryKey(EntityDefImpl entityDef, Key key)
          Implementation of the DBTransaction interface.
 EntityImpl findByPrimaryKey(java.lang.String entityDefName, Key key)
          Implementation of the DBTransaction interface.
 int getLockingMode()
          Implementation of the DBTransaction interface.
 int getPostThreshold()
          Implementation of the DBTransaction interface.
 Session getSession()
          Implementation of the DBTransaction interface.
 SQLBuilder getSQLBuilder()
           
 TransactionHandler getTransactionHandler()
          Internal: Applications should not use this method.
 int getValidationThreshold()
          Implementation of the DBTransaction interface.
 boolean isConnected()
          Implementation of the DBTransaction interface.
 boolean isDirty()
          Implementation of the DBTransaction interface.
 void postChanges()
          Implementation of the DBTransaction interface.
 void reconnect(boolean force)
          Implementation of the DBTransaction interface.
 void removeTransactionListener(TransactionListener listener)
          Implementation of the DBTransaction interface.
 void removeTransactionPostListener(TransactionPostListener listener)
          Implementation of the DBTransaction interface.
 void rollback()
          Implementation of the DBTransaction interface.
 void setLockingMode(int mode)
          Implementation of the DBTransaction interface.
 void setPostThreshold(int count)
          Implementation of the DBTransaction interface.
 void setTransactionHandler(TransactionHandler txnHandler)
          Internal: Applications should not use this method.
 void setValidationThreshold(int count)
          Implementation of the DBTransaction interface.
 void validate()
          Implementation of the DBTransaction interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mConnectionCredentials

protected ConnectionCredentials mConnectionCredentials
Constructor Detail

NullDBTransactionImpl

public NullDBTransactionImpl()
Method Detail

closeTransaction

public void closeTransaction()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
closeTransaction in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

commit

public void commit()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

rollback

public void rollback()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

postChanges

public void postChanges()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

isDirty

public boolean isDirty()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

setPostThreshold

public void setPostThreshold(int count)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
setPostThreshold in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

getPostThreshold

public int getPostThreshold()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
getPostThreshold in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

setValidationThreshold

public void setValidationThreshold(int count)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
setValidationThreshold in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

getValidationThreshold

public int getValidationThreshold()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
getValidationThreshold in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

addTransactionListener

public void addTransactionListener(TransactionListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
addTransactionListener in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

addTransactionListenerNoCheck

public void addTransactionListenerNoCheck(TransactionListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
addTransactionListenerNoCheck in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

removeTransactionListener

public void removeTransactionListener(TransactionListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
removeTransactionListener in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

addTransactionPostListener

public void addTransactionPostListener(TransactionPostListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
addTransactionPostListener in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

addTransactionPostListenerNoCheck

public void addTransactionPostListenerNoCheck(TransactionPostListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
addTransactionPostListenerNoCheck in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

removeTransactionPostListener

public void removeTransactionPostListener(TransactionPostListener listener)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
removeTransactionPostListener in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createStatement

public java.sql.Statement createStatement(int noRowsPrefetch)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createStatement in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createCallableStatement

public java.sql.CallableStatement createCallableStatement(java.lang.String str,
                                                          int noRowsPrefetch)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createCallableStatement in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createPreparedStatement

public java.sql.PreparedStatement createPreparedStatement(java.lang.String str,
                                                          int noRowsPrefetch)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createPreparedStatement in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

executeCommand

public int executeCommand(java.lang.String command)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

dumpQueryResult

public java.lang.String dumpQueryResult(java.lang.String query,
                                        java.lang.String dumpClassName,
                                        java.lang.String[] data)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

validate

public void validate()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

addToValidationListeners

public void addToValidationListeners(ValidationListener w)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

connect

public void connect(java.sql.Connection sqlConnection)
Implementation of the DBTransaction interface. Transitions the application from disconnected to connected state using the DatabaseTransactionFactory.
Specified by:
connect in interface DBTransaction
Parameters:
Connection - Reqeusts the factory to create a DBTransactionImpl object from the given Connection
See Also:
DBTransaction.connect(Connection), DatabaseTransactionFactory

connect

public void connect(java.lang.String url)
Implementation of the DBTransaction interface. Transitions the application from disconnected to connected state using the DatabaseTransactionFactory.
Parameters:
url - Reqeusts the factory to create a DBTransactionImpl object from the given URL
See Also:
Transaction.connect(String), DatabaseTransactionFactory

connect

public void connect(java.lang.String url,
                    java.util.Properties info)
Implementation of the DBTransaction interface. Transitions the application from disconnected to connected state using the DatabaseTransactionFactory.
Parameters:
url - Reqeusts the factory to create a DBTransactionImpl object from the given url and properties
info - Reqeusts the factory to create a DBTransactionImpl object from given the url and properties
See Also:
Transaction.connect(String, Properties), DatabaseTransactionFactory

connect

public void connect(java.lang.String url,
                    java.lang.String user,
                    java.lang.String password)
Implementation of the DBTransaction interface. Transitions the application from disconnected to connected state using the DatabaseTransactionFactory.
Parameters:
url - Reqeusts the factory to create a DBTransactionImpl object from the given url, username and password.
user - Reqeusts the factory to create a DBTransactionImpl object from the given url, username and password.
password - Reqeusts the factory to create a DBTransactionImpl object from the given url, username and password.
See Also:
Transaction.connect(String, Properties), DatabaseTransactionFactory

disconnect

public void disconnect()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

isConnected

public boolean isConnected()
Implementation of the DBTransaction interface. Test if JDBC connection is established
Returns:
Always returns false.

reconnect

public void reconnect(boolean force)
Implementation of the DBTransaction interface. reconnects if possible: ie. if we have been connected before, using the existing credentials.
Throws:
NotConnectedConnection - Always thrown.

setLockingMode

public void setLockingMode(int mode)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

getLockingMode

public int getLockingMode()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Throws:
NotConnectedConnection - Always thrown.

getTransactionHandler

public TransactionHandler getTransactionHandler()
Description copied from interface: DBTransaction
Internal: Applications should not use this method.
Specified by:
getTransactionHandler in interface DBTransaction

setTransactionHandler

public void setTransactionHandler(TransactionHandler txnHandler)
Description copied from interface: DBTransaction
Internal: Applications should not use this method.
Specified by:
setTransactionHandler in interface DBTransaction

createEntityInstance

public EntityImpl createEntityInstance(EntityDefImpl entityDef,
                                       AttributeList al)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createEntityInstance in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createEntityInstance

public EntityImpl createEntityInstance(java.lang.String entityDefName,
                                       AttributeList al)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createEntityInstance in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

findByPrimaryKey

public EntityImpl findByPrimaryKey(EntityDefImpl entityDef,
                                   Key key)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
findByPrimaryKey in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

findByPrimaryKey

public EntityImpl findByPrimaryKey(java.lang.String entityDefName,
                                   Key key)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
findByPrimaryKey in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewObject

public ViewObject createViewObject(java.lang.String voDefName)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewObject in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewObjectFromQueryClauses

public ViewObject createViewObjectFromQueryClauses(java.lang.String eoName,
                                                   java.lang.String selectClause,
                                                   java.lang.String fromClause,
                                                   java.lang.String whereClause,
                                                   java.lang.String orderByClause)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewObjectFromQueryClauses in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewObjectFromQueryStmt

public ViewObject createViewObjectFromQueryStmt(java.lang.String sqlStatement)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewObjectFromQueryStmt in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createApplicationModule

public ApplicationModule createApplicationModule(java.lang.String defName)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createApplicationModule in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewLink

public ViewLink createViewLink(java.lang.String viewLinkDefName,
                               ViewObject master,
                               ViewObject detail)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewLink in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewLinkFromEntityAssocName

public ViewLink createViewLinkFromEntityAssocName(java.lang.String entityAssocName,
                                                  ViewObject master,
                                                  ViewObject detail)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewLinkFromEntityAssocName in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

createViewLinkBetweenViewObjects

public ViewLink createViewLinkBetweenViewObjects(java.lang.String accessorName,
                                                 ViewObject master,
                                                 AttributeDef[] srcAttrs,
                                                 ViewObject detail,
                                                 AttributeDef[] destAttrs,
                                                 java.lang.String assocClause)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
createViewLinkBetweenViewObjects in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

addWarning

public void addWarning(JboWarning warn)
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
addWarning in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

getSession

public Session getSession()
Implementation of the DBTransaction interface. Calling this method always results in NotConnectedException.
Specified by:
getSession in interface DBTransaction
Throws:
NotConnectedConnection - Always thrown.

getSQLBuilder

public SQLBuilder getSQLBuilder()
Specified by:
getSQLBuilder in interface DBTransaction

createRef

public java.lang.Object createRef(java.lang.String structName,
                                  byte[] data)
Description copied from interface: Transaction
Internal: Applications should not use this method.

Business Components