|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonks.batch.framework.util.JdbcConnectionHelper
JdbcConnectionHelper helps the jdbc repository and db configuration factory to create the jdbc connections with the given configuration map and closes the connections.
Field Summary | |
static java.lang.String |
PROPERTY_DATABASE_PASSWORD
Constant defines the property name for database password which is password . |
static java.lang.String |
PROPERTY_DATABASE_USER_NAME
Constant defines the property name for database user name which is username . |
static java.lang.String |
PROPERTY_JDBC_DRIVER_CLASS_NAME
Constant defines the property name for jdbc driver class name which is jdbc-driver-class-name . |
static java.lang.String |
PROPERTY_JDBC_URL
Constant defines the property name for database URL which is jdbc-url . |
Method Summary | |
static void |
closeConnection(java.sql.Connection connection)
Closes the given connection. |
static java.sql.Connection |
getConnection(java.util.Map configMap)
Get the required properties from the given configMap and establishes the connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_JDBC_DRIVER_CLASS_NAME
jdbc-driver-class-name
.
public static final java.lang.String PROPERTY_JDBC_URL
jdbc-url
.
public static final java.lang.String PROPERTY_DATABASE_USER_NAME
username
.
public static final java.lang.String PROPERTY_DATABASE_PASSWORD
password
.
Method Detail |
public static java.sql.Connection getConnection(java.util.Map configMap)
configMap
- Map contains the properties required to create the connection.
public static void closeConnection(java.sql.Connection connection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |