@groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.AutoClone class DataSourceSettings extends ConnectionSourceSettings
DataSource settings
Modifiers | Name | Description |
---|---|---|
private java.lang.String |
dbCreate |
The default value for `hibernate.hbm2ddl.auto` |
private java.lang.Class |
dialect |
The dialect to use |
private java.lang.String |
driverClassName |
The driver class name |
private boolean |
formatSql |
Whether to format the SQL |
private java.lang.String |
jndiName |
The JNDI name |
private boolean |
lazy |
Whether the data source is lazy |
private boolean |
logSql |
Whether to log SQL |
private java.lang.String |
password |
The password |
private boolean |
pooled |
Whether the data source is pooled |
private java.util.Map |
properties |
The data source properties |
private boolean |
readOnly |
Whether the connection is readonly |
private java.lang.Class<? extends SchemaHandler> |
schemaHandler |
The schema handler to use |
private boolean |
transactionAware |
Whether the data source is aware of an ongoing Spring transaction |
private java.lang.Class<? extends javax.sql.DataSource> |
type |
The connection pool to use |
private java.lang.String |
url |
The data source URL, defaults to an H2 in-memory database |
private java.lang.String |
username |
The username |
Fields inherited from class | Fields |
---|---|
class ConnectionSourceSettings |
autoFlush, autowire, connectionSourcesClass, custom, defaults, failOnError, failOnErrorPackages, flushMode, markDirty, multiTenancy |
Type | Name and description |
---|---|
java.lang.String |
dbCreate The default value for `hibernate.hbm2ddl.auto` |
java.lang.Class |
dialect The dialect to use |
java.lang.String |
driverClassName The driver class name |
boolean |
formatSql Whether to format the SQL |
java.lang.String |
jndiName The JNDI name |
boolean |
lazy Whether the data source is lazy |
boolean |
logSql Whether to log SQL |
java.lang.String |
password The password |
boolean |
pooled Whether the data source is pooled |
java.util.Map |
properties The data source properties |
boolean |
readOnly Whether the connection is readonly |
java.lang.Class<? extends SchemaHandler> |
schemaHandler The schema handler to use |
boolean |
transactionAware Whether the data source is aware of an ongoing Spring transaction |
java.lang.Class<? extends javax.sql.DataSource> |
type The connection pool to use |
java.lang.String |
url The data source URL, defaults to an H2 in-memory database |
java.lang.String |
username The username |
Constructor and description |
---|
DataSourceSettings
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Properties |
toHibernateProperties() Convert to Hibernate properties |
|
java.util.Map<java.lang.String, java.lang.String> |
toProperties()
|
Methods inherited from class | Name |
---|---|
class ConnectionSourceSettings |
getDefault, setDefault |
The default value for `hibernate.hbm2ddl.auto`
The dialect to use
The driver class name
Whether to format the SQL
The JNDI name
Whether the data source is lazy
Whether to log SQL
The password
Whether the data source is pooled
The data source properties
Whether the connection is readonly
The schema handler to use
Whether the data source is aware of an ongoing Spring transaction
The connection pool to use
The data source URL, defaults to an H2 in-memory database
The username
The default value for `hibernate.hbm2ddl.auto`
The dialect to use
The driver class name
Whether to format the SQL
The JNDI name
Whether the data source is lazy
Whether to log SQL
The password
Whether the data source is pooled
The data source properties
Whether the connection is readonly
The schema handler to use
Whether the data source is aware of an ongoing Spring transaction
The connection pool to use
The data source URL, defaults to an H2 in-memory database
The username
Groovy Documentation