sqlg2.db
Class Transaction

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by sqlg2.db.Transaction
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, ISimpleTransaction, ITransaction

public class Transaction
extends java.rmi.server.UnicastRemoteObject
implements ITransaction

RMI wrapper for ITransaction.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Transaction(ConnectionManager cman, LocalConnectionFactory fact, Debug debug)
           
 
Method Summary
 void commit()
          Commits transaction.
<T extends IDBCommon>
T
getInterface(java.lang.Class<T> iface)
          Returns data access interface generated by preprocessor.
 void rollback()
          Rolls back transaction.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(ConnectionManager cman,
                   LocalConnectionFactory fact,
                   Debug debug)
            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getInterface

public <T extends IDBCommon> T getInterface(java.lang.Class<T> iface)
                                 throws java.rmi.RemoteException
Description copied from interface: ISimpleTransaction
Returns data access interface generated by preprocessor.

Specified by:
getInterface in interface ISimpleTransaction
Specified by:
getInterface in interface ITransaction
Parameters:
iface - interface class
Returns:
data access interface implementation
Throws:
java.rmi.RemoteException

commit

public void commit()
            throws java.sql.SQLException
Description copied from interface: ITransaction
Commits transaction.

Specified by:
commit in interface ITransaction
Throws:
java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException
Description copied from interface: ITransaction
Rolls back transaction.

Specified by:
rollback in interface ITransaction
Throws:
java.sql.SQLException