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.Logger
LOG
-
Constructor Summary
Constructors Constructor Description Transaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
begin()
beginstatic void
end()
endprotected void
finalize()
finalizestatic Connection
getConnection(String dsName)
getConnectionstatic void
register(ResultSet rs)
registerstatic void
register(Statement stmt)
registerstatic void
rollbackOnly()
rollbackOnly
-
-
-
Method Detail
-
begin
public static void begin()
begin
-
getConnection
public static Connection getConnection(String dsName) throws SQLException
getConnection
- Parameters:
dsName
- aString
object.- Returns:
- a
Connection
object. - Throws:
SQLException
- if any.
-
register
public static void register(Statement stmt)
register
- Parameters:
stmt
- aStatement
object.
-
rollbackOnly
public static void rollbackOnly() throws SQLException
rollbackOnly
- Throws:
SQLException
- if any.
-
end
public static void end() throws SQLException
end
- Throws:
SQLException
- if any.
-
-