Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/util
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10276/util
Modified Files:
FrameworkUtil.java JdbcConnectionHelper.java
Log Message:
no message
Index: FrameworkUtil.java
===================================================================
RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/util/FrameworkUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FrameworkUtil.java 29 Aug 2006 02:01:33 -0000 1.1
--- FrameworkUtil.java 14 Sep 2006 23:04:59 -0000 1.2
***************
*** 13,19 ****
* FramworkUtil contains utility methods required by the framework.
* </p>
- * <p>
- * Note : This class does not maintain any state. Keep all the methods as static
- * </p>
*
* @author Suresh Pragada
--- 13,16 ----
Index: JdbcConnectionHelper.java
===================================================================
RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/util/JdbcConnectionHelper.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** JdbcConnectionHelper.java 12 Sep 2006 04:07:55 -0000 1.2
--- JdbcConnectionHelper.java 14 Sep 2006 23:04:59 -0000 1.3
***************
*** 17,43 ****
/**
*
! * @author Suresh Pragada
*/
public final class JdbcConnectionHelper
{
/**
! * Constant defines the property name for jdbc driver class name. The name
! * should be "jdbc-driver-class-name".
*/
public static final String PROPERTY_JDBC_DRIVER_CLASS_NAME = "jdbc-driver-class-name";
/**
! * Constant defines the property name for database URL. The name
! * should be "jdbc-url".
*/
public static final String PROPERTY_JDBC_URL = "jdbc-url";
/**
! * Constant defines the property name for database user name. The name
! * should be "username".
*/
public static final String PROPERTY_DATABASE_USER_NAME = "username";
/**
! * Constant defines the property name for database password. The name
! * should be "password".
*/
public static final String PROPERTY_DATABASE_PASSWORD = "password";
--- 17,48 ----
/**
+ * JdbcConnectionHelper helps the jdbc repository and db configuration factory
+ * to create the jdbc connections with the given configuration map and closes the
+ * connections.
*
! * @author Suresh Pragada
! * @version 1.0
! * @since 1.0
*/
public final class JdbcConnectionHelper
{
/**
! * Constant defines the property name for jdbc driver class name which is
! * <code>jdbc-driver-class-name</code>.
*/
public static final String PROPERTY_JDBC_DRIVER_CLASS_NAME = "jdbc-driver-class-name";
/**
! * Constant defines the property name for database URL which is
! * <code>jdbc-url</code>.
*/
public static final String PROPERTY_JDBC_URL = "jdbc-url";
/**
! * Constant defines the property name for database user name which is
! * <code>username</code>.
*/
public static final String PROPERTY_DATABASE_USER_NAME = "username";
/**
! * Constant defines the property name for database password which is
! * <code>password</code>.
*/
public static final String PROPERTY_DATABASE_PASSWORD = "password";
***************
*** 83,86 ****
--- 88,92 ----
connection=DriverManager.getConnection(databaseURL,userName, password);
connection.setAutoCommit(false);
+ logger.debug("Connection has been created successfully");
}
catch(Exception exception)
***************
*** 108,111 ****
--- 114,118 ----
if(connection!=null && !connection.isClosed())
connection.close();
+ logger.debug("Connection has been closed successfully");
}
catch(Exception exception)
|