salto.tool.sql
Class ConnectionMgr

java.lang.Object
  extended by salto.tool.sql.ConnectionMgr

public class ConnectionMgr
extends java.lang.Object

Author:
: E. Loiez

Constructor Summary
ConnectionMgr()
          Constructor for ConnectionMgr.
 
Method Summary
static void connect(ConnectionInfo connInfo)
           
static void disconnect(ConnectionInfo connInfo)
           
static void disconnectAll()
           
static void remove(ConnectionInfo connInfo)
           
static java.lang.Object[][] retrieve(java.sql.Connection conn, java.lang.String query)
           
static int update(java.sql.Connection conn, java.lang.String query)
           
static int update(java.sql.Connection conn, java.lang.String query, java.lang.Object[][] datas)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionMgr

public ConnectionMgr()
Constructor for ConnectionMgr.

Method Detail

remove

public static void remove(ConnectionInfo connInfo)

disconnectAll

public static void disconnectAll()

disconnect

public static void disconnect(ConnectionInfo connInfo)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

connect

public static void connect(ConnectionInfo connInfo)
                    throws java.sql.SQLException,
                           DatabaseException
Throws:
java.sql.SQLException
DatabaseException

retrieve

public static final java.lang.Object[][] retrieve(java.sql.Connection conn,
                                                  java.lang.String query)
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

update

public static final int update(java.sql.Connection conn,
                               java.lang.String query)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

update

public static final int update(java.sql.Connection conn,
                               java.lang.String query,
                               java.lang.Object[][] datas)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2002-2008 Salto Consulting. All Rights Reserved.