Uses of Class
org.apache.cayenne.datasource.CayenneDataSource.Builder
Packages that use CayenneDataSource.Builder
-
Uses of CayenneDataSource.Builder in org.apache.cayenne.datasource
Methods in org.apache.cayenne.datasource that return CayenneDataSource.BuilderModifier and TypeMethodDescriptionSets an already instantiated JDBC driver, bypassing driver discovery and class loading.CayenneDataSource.Builder.driverClass(String driverClassName) Sets a class name of the JDBC driver.static CayenneDataSource.BuilderCayenneDataSource.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.BuilderCayenneDataSource.fromProperties(Map<String, String> properties, String nodeName) Starts building a DataSource with settings taken from a properties map, same asCayenneDataSource.fromProperties(Map), but first checking properties with a ".nodeName" suffix (e.g.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.BuilderStarts building a DataSource for the given database URL.CayenneDataSource.Builder.pool(int minConnections, int maxConnections) Turns the built DataSource into a connection pool with the given connection count bounds.CayenneDataSource.Builder.validationQuery(String validationQuery) Sets a SQL query used by the pool to check connection health.