org.opensync.tools
Class ConnectionPool

java.lang.Object
  extended byorg.opensync.tools.ConnectionPool

public class ConnectionPool
extends java.lang.Object


Constructor Summary
ConnectionPool(java.lang.String url, java.lang.String user, java.lang.String password, int maxConns, int initConns, int timeOut, java.lang.String logFilename, java.lang.String operator_concat, java.lang.String conversion_function)
           
 
Method Summary
 void freeConnection(java.sql.Connection conn)
           
 boolean getBatchmode()
           
 java.sql.Connection getConnection()
           
 java.lang.String getConversionFunction()
           
 java.lang.String getOperatorConcat()
           
 java.lang.String getUrl()
           
 void release()
           
 void releaseWithException()
           
 void setAutocommit(boolean autocommit)
           
 void setBatchmode(boolean batchmode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPool

public ConnectionPool(java.lang.String url,
                      java.lang.String user,
                      java.lang.String password,
                      int maxConns,
                      int initConns,
                      int timeOut,
                      java.lang.String logFilename,
                      java.lang.String operator_concat,
                      java.lang.String conversion_function)
               throws java.sql.SQLException
Method Detail

setAutocommit

public void setAutocommit(boolean autocommit)

setBatchmode

public void setBatchmode(boolean batchmode)

getBatchmode

public boolean getBatchmode()

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

freeConnection

public void freeConnection(java.sql.Connection conn)

release

public void release()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

releaseWithException

public void releaseWithException()
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getConversionFunction

public java.lang.String getConversionFunction()

getOperatorConcat

public java.lang.String getOperatorConcat()

getUrl

public java.lang.String getUrl()


Copyright © 2004 sourceforge. All Rights Reserved.