sqlg2.db
Class Transaction
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
commit()
Commits transaction. |
|
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 |
Transaction
public Transaction(ConnectionManager cman,
LocalConnectionFactory fact,
Debug debug)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
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