Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.jdbc
Class DbcpConfiguration  view DbcpConfiguration download DbcpConfiguration.java

java.lang.Object
  extended bycom.ibatis.common.jdbc.DbcpConfiguration

public class DbcpConfiguration
extends java.lang.Object

Wrapper class to simplify use of DBCP


Field Summary
private static java.lang.String ADD_DRIVER_PROPS_PREFIX
           
private static int ADD_DRIVER_PROPS_PREFIX_LENGTH
           
private  javax.sql.DataSource dataSource
           
private static com.ibatis.common.beans.Probe PROBE
           
 
Constructor Summary
DbcpConfiguration(java.util.Map properties)
          Constructor to supply a map of properties
 
Method Summary
private  java.lang.Object convertValue(java.lang.Object object, java.lang.String propertyName, java.lang.String value)
           
 javax.sql.DataSource getDataSource()
          Getter for DataSource
private  org.apache.commons.dbcp.BasicDataSource legacyDbcpConfiguration(java.util.Map map)
           
private  org.apache.commons.dbcp.BasicDataSource newDbcpConfiguration(java.util.Map map)
           
private  boolean notEmpty(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROBE

private static final com.ibatis.common.beans.Probe PROBE

ADD_DRIVER_PROPS_PREFIX

private static final java.lang.String ADD_DRIVER_PROPS_PREFIX
See Also:
Constant Field Values

ADD_DRIVER_PROPS_PREFIX_LENGTH

private static final int ADD_DRIVER_PROPS_PREFIX_LENGTH

dataSource

private javax.sql.DataSource dataSource
Constructor Detail

DbcpConfiguration

public DbcpConfiguration(java.util.Map properties)
Constructor to supply a map of properties

Method Detail

getDataSource

public javax.sql.DataSource getDataSource()
Getter for DataSource


newDbcpConfiguration

private org.apache.commons.dbcp.BasicDataSource newDbcpConfiguration(java.util.Map map)

convertValue

private java.lang.Object convertValue(java.lang.Object object,
                                      java.lang.String propertyName,
                                      java.lang.String value)

legacyDbcpConfiguration

private org.apache.commons.dbcp.BasicDataSource legacyDbcpConfiguration(java.util.Map map)

notEmpty

private boolean notEmpty(java.lang.String s)