MyBatis Builtin Data Source Provider

The org.mybatis.guice.datasource.builtin package contains the Google Guice Providers to build the MyBatis builtin DataSources.

Unpooled Data Source Provider

The org.mybatis.guice.datasource.builtin.UnpooledDataSourceProvider is the provider that builds the org.apache.ibatis.datasource.unpooled.UnpooledDataSource and helps users to configure it.

The table below contains all of the available properties for the Provider:

org.mybatis.guice.datasource.builtin.UnpooledDataSourceProvider properties
Property Required Bind to Java Type
JDBC.driver true java.lang.String
JDBC.url true java.lang.String
JDBC.username true java.lang.String
JDBC.password true java.lang.String
JDBC.autoCommit false boolean
JDBC.loginTimeout false int
JDBC.driverProperties false java.util.Properties

Pooled Data Source Provider

The org.mybatis.guice.datasource.builtin.PooledDataSourceProvider is the provider that builds the org.apache.ibatis.datasource.pooled.PooledDataSource and helps users to configure it.

The table below contains all of the available properties for the Provider:

org.mybatis.guice.datasource.builtin.PooledDataSourceProvider properties
Property Required Bind to Java Type
JDBC.driver true java.lang.String
JDBC.url true java.lang.String
JDBC.username true java.lang.String
JDBC.password true java.lang.String
JDBC.autoCommit false boolean
JDBC.loginTimeout false int
JDBC.driverProperties false java.util.Properties
mybatis.pooled.maximumActiveConnections false int
mybatis.pooled.maximumCheckoutTime false int
mybatis.pooled.maximumIdleConnections false int
mybatis.pooled.pingConnectionsNotUsedFor false int
mybatis.pooled.pingEnabled false boolean
mybatis.pooled.pingQuery false java.lang.String
mybatis.pooled.timeToWait false int

JNDI Data Source Provider

The org.mybatis.guice.datasource.builtin.JndiDataSourceProvider is the provider that builds the org.apache.ibatis.datasource.jndi.JndiDataSourceFactory and helps users to configure it.

The table below contains all of the available properties for the Provider:

org.mybatis.guice.datasource.builtin.JndiDataSourceProvider properties
Property Required Bind to Java Type
jndi.initialContext false java.lang.String
jndi.dataSource false java.lang.String