com.siebel.rf.offline.branch.datastore
Class ConnectionPool

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.datastore.ConnectionPool

public class ConnectionPool
extends java.lang.Object

The ConnectionPool class


Method Summary
 void commit()
          Commits connection instance
 void commitAndReleaseConnection()
          Commits and release connection instance
 java.sql.Connection getConnection()
          Checks if the Connection is null then assign next available Connection to it and returns Connection instance
static ConnectionPool getInstance()
          Returns connectionPool
 java.sql.Connection getNewConnection()
          Gets the Connection instance ,setAutoCommit to false and returns new Connection instance
 void rollbackAndReleaseConnection()
          Rollbacks and release connection instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionPool getInstance()
Returns connectionPool
Returns:
the connectionPool instance

getNewConnection

public java.sql.Connection getNewConnection()
Gets the Connection instance ,setAutoCommit to false and returns new Connection instance
Returns:
the new Connection instance

getConnection

public java.sql.Connection getConnection()
Checks if the Connection is null then assign next available Connection to it and returns Connection instance
Returns:
the Connection instance

commit

public void commit()
            throws java.sql.SQLException
Commits connection instance
Throws:
java.sql.SQLException -  

commitAndReleaseConnection

public void commitAndReleaseConnection()
                                throws java.sql.SQLException
Commits and release connection instance
Throws:
java.sql.SQLException -  

rollbackAndReleaseConnection

public void rollbackAndReleaseConnection()
                                  throws java.sql.SQLException
Rollbacks and release connection instance