Package org.opennms.netmgt.vacuumd
Class Transaction
- java.lang.Object
-
- org.opennms.netmgt.vacuumd.Transaction
-
public class Transaction extends java.lang.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 java.sql.Connection
getConnection(java.lang.String dsName)
getConnectionstatic void
register(java.sql.ResultSet rs)
registerstatic void
register(java.sql.Statement stmt)
registerstatic void
rollbackOnly()
rollbackOnly
-
-
-
Method Detail
-
begin
public static void begin()
begin
-
getConnection
public static java.sql.Connection getConnection(java.lang.String dsName) throws java.sql.SQLException
getConnection
- Parameters:
dsName
- aString
object.- Returns:
- a
Connection
object. - Throws:
java.sql.SQLException
- if any.
-
register
public static void register(java.sql.Statement stmt)
register
- Parameters:
stmt
- aStatement
object.
-
register
public static void register(java.sql.ResultSet rs)
register
- Parameters:
rs
- aResultSet
object.
-
rollbackOnly
public static void rollbackOnly() throws java.sql.SQLException
rollbackOnly
- Throws:
java.sql.SQLException
- if any.
-
end
public static void end() throws java.sql.SQLException
end
- Throws:
java.sql.SQLException
- if any.
-
finalize
protected void finalize() throws java.lang.Throwable
finalize
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-