Package org.apache.cayenne.datasource
Class DataSourceBuilder
java.lang.Object
org.apache.cayenne.datasource.DataSourceBuilder
A builder class that allows to build a
DataSource
with optional
pooling.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a non-pooling DataSource.pool
(int minConnection, int maxConnections) Turns produced DataSource into a pooled DataSource.static DataSourceBuilder
-
Method Details
-
url
-
userName
-
password
-
driver
-
driver
-
pool
Turns produced DataSource into a pooled DataSource. -
build
Builds a non-pooling DataSource. To create connection pool usepool(int, int)
method.
-