# Uses of Class
org.apache.cayenne.datasource.CayenneDataSource.Builder

Packages that use CayenneDataSource.Builder
Package
Description
org.apache.cayenne.datasource

- ## Uses of CayenneDataSource.Builder in org.apache.cayenne.datasource

  Methods in org.apache.cayenne.datasource that return CayenneDataSource.Builder
  Modifier and Type
  Method
  Description
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`driver(Driver driver)`
  Sets an already instantiated JDBC driver, bypassing driver discovery and class loading.
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`driverClass(String driverClassName)`
  Sets a class name of the JDBC driver.
  `static CayenneDataSource.Builder`
  CayenneDataSource.`fromProperties(Map<String,String> properties)`
  Starts building a DataSource with settings taken from the following map keys: cayenne.jdbc.url cayenne.jdbc.driver cayenne.jdbc.username cayenne.jdbc.password cayenne.jdbc.min_connections cayenne.jdbc.max_connections cayenne.jdbc.max_wait cayenne.jdbc.validation_query The URL property is required.
  `static CayenneDataSource.Builder`
  CayenneDataSource.`fromProperties(Map<String,String> properties, String nodeName)`
  Starts building a DataSource with settings taken from a properties map, same as `CayenneDataSource.fromProperties(Map)`, but first checking properties with a ".nodeName" suffix (e.g.
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`maxQueueWaitTime(long maxQueueWaitTime)`
  Sets a maximum time in milliseconds a connection request may wait for a free connection in the pool.
  `static CayenneDataSource.Builder`
  CayenneDataSource.`of(String url)`
  Starts building a DataSource for the given database URL.
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`password(String password)`
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`pool(int minConnections, int maxConnections)`
  Turns the built DataSource into a connection pool with the given connection count bounds.
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`userName(String userName)`
  `CayenneDataSource.Builder`
  CayenneDataSource.Builder.`validationQuery(String validationQuery)`
  Sets a SQL query used by the pool to check connection health.