se.cambio.cds.model.util.sql
Class GeneralOperations

Package class diagram package GeneralOperations
java.lang.Object
  extended by se.cambio.cds.model.util.sql.GeneralOperations

public final class GeneralOperations
extends Object

Author:
iago.corbal Utility class with basic operations to close connections, results and SQL statements.

Method Summary
static void closeConnection(Connection connection)
          It closes a Connection if not null.
static void closeResultSet(ResultSet resultSet)
          It closes a ResultSet if not null.
static void closeStatement(Statement statement)
          It closes a Statement if not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closeResultSet

public static void closeResultSet(ResultSet resultSet)
                           throws InternalErrorException
It closes a ResultSet if not null.

Throws:
InternalErrorException

closeStatement

public static void closeStatement(Statement statement)
                           throws InternalErrorException
It closes a Statement if not null.

Throws:
InternalErrorException

closeConnection

public static void closeConnection(Connection connection)
                            throws InternalErrorException
It closes a Connection if not null.

Throws:
InternalErrorException


Copyright © 2013 Cambio. All Rights Reserved.