Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasig.portal.utils
Class SqlTransaction

    java.lang.Object
      org.jasig.portal.utils.SqlTransaction

    public class SqlTransaction

extends java.lang.Object

This type is a place to centralize the portal's sql transaction code.

Version:
  $Revision: 1.10.4.1 $
Author:
  Dan Ellentuck

Field Summary
`private static org.apache.commons.logging.Log` | `log`

Constructor Summary
`SqlTransaction()` SqlTransaction constructor comment.

Method Summary
`static void` | `begin(java.sql.Connection conn)`
`static void` | `commit(java.sql.Connection conn)`
`protected static void` | `logNoTransactionWarning()`
`static void` | `rollback(java.sql.Connection conn)`
`static void` | `setAutoCommit(java.sql.Connection conn, boolean newValue)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### log

    private static final org.apache.commons.logging.Log log

Constructor Detail

### SqlTransaction

    public SqlTransaction()

  SqlTransaction constructor comment.

Method Detail

### begin

    public static void begin(java.sql.Connection conn)
                      throws java.sql.SQLException

  Parameters:
    `conn` - java.sql.Connection
  Throws:
    `java.sql.SQLException`

### commit

    public static void commit(java.sql.Connection conn)
                       throws java.sql.SQLException

  Parameters:
    `conn` - java.sql.Connection
  Throws:
    `java.sql.SQLException`

### logNoTransactionWarning

    protected static void logNoTransactionWarning()

### rollback

    public static void rollback(java.sql.Connection conn)
                         throws java.sql.SQLException

  Parameters:
    `conn` - java.sql.Connection
  Throws:
    `java.sql.SQLException`

### setAutoCommit

    public static void setAutoCommit(java.sql.Connection conn,
                                     boolean newValue)
                              throws java.sql.SQLException

  Parameters:
    `conn` - java.sql.Connection
    `newValue` - boolean
  Throws:
    `java.sql.SQLException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD