Package org.opennms.netmgt.vacuumd
Class Transaction
- java.lang.Object
-
- org.opennms.netmgt.vacuumd.Transaction
-
public class Transaction extends Object
Transaction class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description Transaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbegin()beginstatic voidend()endprotected voidfinalize()finalizestatic ConnectiongetConnection(String dsName)getConnectionstatic voidregister(ResultSet rs)registerstatic voidregister(Statement stmt)registerstatic voidrollbackOnly()rollbackOnly
-
-
-
Method Detail
-
begin
public static void begin()
begin
-
getConnection
public static Connection getConnection(String dsName) throws SQLException
getConnection
- Parameters:
dsName- aStringobject.- Returns:
- a
Connectionobject. - Throws:
SQLException- if any.
-
register
public static void register(Statement stmt)
register
- Parameters:
stmt- aStatementobject.
-
rollbackOnly
public static void rollbackOnly() throws SQLExceptionrollbackOnly
- Throws:
SQLException- if any.
-
end
public static void end() throws SQLExceptionend
- Throws:
SQLException- if any.
-
-