aliases, dependsOn, jndi, postConstruct, preDestroy
className, classpath, classpathAPI, constructor, factoryName, id, jar, properties, provider, type
Constructor and Description |
---|
DataSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAccessToUnderlyingConnectionAllowed() |
java.lang.String |
getConnectionProperties() |
boolean |
getDefaultAutoCommit() |
java.lang.String |
getDefaultReadOnly() |
java.lang.String |
getDefinition() |
boolean |
getIgnoreDefaultValues() |
int |
getInitialSize() |
java.lang.String |
getJdbcDriver() |
java.net.URI |
getJdbcUrl() |
boolean |
getJtaManaged() |
int |
getMaxActive() |
int |
getMaxIdle() |
int |
getMaxOpenPreparedStatements() |
Duration |
getMaxWaitTime() |
Duration |
getMinEvictableIdleTime() |
int |
getMinIdle() |
int |
getNumTestsPerEvictionRun() |
java.lang.String |
getPassword() |
java.lang.String |
getPasswordCipher() |
boolean |
getPoolPreparedStatements() |
java.util.Properties |
getProperties()
Gets the value of the properties property.
|
java.lang.String |
getServiceId() |
boolean |
getTestOnBorrow() |
boolean |
getTestOnReturn() |
boolean |
getTestWhileIdle() |
Duration |
getTimeBetweenEvictionRuns() |
java.lang.String |
getUserName() |
java.lang.String |
getValidationQuery() |
DataSourceBuilder |
id(java.lang.String id) |
void |
setAccessToUnderlyingConnectionAllowed(boolean accessToUnderlyingConnectionAllowed) |
void |
setConnectionProperties(java.lang.String connectionProperties) |
void |
setDefaultAutoCommit(boolean defaultAutoCommit) |
void |
setDefaultReadOnly(java.lang.String defaultReadOnly) |
void |
setDefinition(java.lang.String definition) |
void |
setIgnoreDefaultValues(boolean ignoreDefaultValues) |
void |
setInitialSize(int initialSize) |
void |
setJdbcDriver(java.lang.String jdbcDriver) |
void |
setJdbcUrl(java.net.URI jdbcUrl) |
void |
setJtaManaged(boolean jtaManaged) |
void |
setMaxActive(int maxActive) |
void |
setMaxIdle(int maxIdle) |
void |
setMaxOpenPreparedStatements(int maxOpenPreparedStatements) |
void |
setMaxWaitTime(Duration maxWaitTime) |
void |
setMaxWaitTime(long time,
java.util.concurrent.TimeUnit unit) |
void |
setMinEvictableIdleTime(Duration minEvictableIdleTime) |
void |
setMinEvictableIdleTime(long time,
java.util.concurrent.TimeUnit unit) |
void |
setMinIdle(int minIdle) |
void |
setNumTestsPerEvictionRun(int numTestsPerEvictionRun) |
void |
setPassword(java.lang.String password) |
void |
setPasswordCipher(java.lang.String passwordCipher) |
void |
setPoolPreparedStatements(boolean poolPreparedStatements) |
void |
setServiceId(java.lang.String serviceId) |
void |
setTestOnBorrow(boolean testOnBorrow) |
void |
setTestOnReturn(boolean testOnReturn) |
void |
setTestWhileIdle(boolean testWhileIdle) |
void |
setTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns) |
void |
setTimeBetweenEvictionRuns(long time,
java.util.concurrent.TimeUnit unit) |
void |
setUserName(java.lang.String userName) |
void |
setValidationQuery(java.lang.String validationQuery) |
DataSourceBuilder |
withAccessToUnderlyingConnectionAllowed(boolean accessToUnderlyingConnectionAllowed) |
DataSourceBuilder |
withConnectionProperties(java.lang.String connectionProperties) |
DataSourceBuilder |
withDefaultAutoCommit(boolean defaultAutoCommit) |
DataSourceBuilder |
withDefaultReadOnly(java.lang.String defaultReadOnly) |
DataSourceBuilder |
withDefinition(java.lang.String definition) |
DataSourceBuilder |
withIgnoreDefaultValues(boolean ignoreDefaultValues) |
DataSourceBuilder |
withInitialSize(int initialSize) |
DataSourceBuilder |
withJdbcDriver(java.lang.String jdbcDriver) |
DataSourceBuilder |
withJdbcUrl(java.net.URI jdbcUrl) |
DataSourceBuilder |
withJtaManaged(boolean jtaManaged) |
DataSourceBuilder |
withMaxActive(int maxActive) |
DataSourceBuilder |
withMaxIdle(int maxIdle) |
DataSourceBuilder |
withMaxOpenPreparedStatements(int maxOpenPreparedStatements) |
DataSourceBuilder |
withMaxWaitTime(Duration maxWaitTime) |
DataSourceBuilder |
withMaxWaitTime(long time,
java.util.concurrent.TimeUnit unit) |
DataSourceBuilder |
withMinEvictableIdleTime(Duration minEvictableIdleTime) |
DataSourceBuilder |
withMinEvictableIdleTime(long time,
java.util.concurrent.TimeUnit unit) |
DataSourceBuilder |
withMinIdle(int minIdle) |
DataSourceBuilder |
withNumTestsPerEvictionRun(int numTestsPerEvictionRun) |
DataSourceBuilder |
withPassword(java.lang.String password) |
DataSourceBuilder |
withPasswordCipher(java.lang.String passwordCipher) |
DataSourceBuilder |
withPoolPreparedStatements(boolean poolPreparedStatements) |
DataSourceBuilder |
withServiceId(java.lang.String serviceId) |
DataSourceBuilder |
withTestOnBorrow(boolean testOnBorrow) |
DataSourceBuilder |
withTestOnReturn(boolean testOnReturn) |
DataSourceBuilder |
withTestWhileIdle(boolean testWhileIdle) |
DataSourceBuilder |
withTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns) |
DataSourceBuilder |
withTimeBetweenEvictionRuns(long time,
java.util.concurrent.TimeUnit unit) |
DataSourceBuilder |
withUserName(java.lang.String userName) |
DataSourceBuilder |
withValidationQuery(java.lang.String validationQuery) |
equals, getAliases, getDependsOn, getJndi, getPostConstruct, getPreDestroy, hashCode, setJndi, setPostConstruct, setPreDestroy
getClassName, getClasspath, getClasspathAPI, getConstructor, getFactoryName, getId, getJar, getPropertiesProvider, getProvider, getTemplate, getType, setClassName, setClasspath, setClasspathAPI, setConstructor, setFactoryName, setId, setJar, setPropertiesProvider, setProvider, setTemplate, setType
public DataSourceBuilder id(java.lang.String id)
public DataSourceBuilder withServiceId(java.lang.String serviceId)
public void setServiceId(java.lang.String serviceId)
public java.lang.String getServiceId()
public DataSourceBuilder withDefinition(java.lang.String definition)
public void setDefinition(java.lang.String definition)
public java.lang.String getDefinition()
public DataSourceBuilder withJtaManaged(boolean jtaManaged)
public void setJtaManaged(boolean jtaManaged)
public boolean getJtaManaged()
public DataSourceBuilder withJdbcDriver(java.lang.String jdbcDriver)
public void setJdbcDriver(java.lang.String jdbcDriver)
public java.lang.String getJdbcDriver()
public DataSourceBuilder withJdbcUrl(java.net.URI jdbcUrl)
public void setJdbcUrl(java.net.URI jdbcUrl)
public java.net.URI getJdbcUrl()
public DataSourceBuilder withUserName(java.lang.String userName)
public void setUserName(java.lang.String userName)
public java.lang.String getUserName()
public DataSourceBuilder withPassword(java.lang.String password)
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public DataSourceBuilder withPasswordCipher(java.lang.String passwordCipher)
public void setPasswordCipher(java.lang.String passwordCipher)
public java.lang.String getPasswordCipher()
public DataSourceBuilder withConnectionProperties(java.lang.String connectionProperties)
public void setConnectionProperties(java.lang.String connectionProperties)
public java.lang.String getConnectionProperties()
public DataSourceBuilder withDefaultAutoCommit(boolean defaultAutoCommit)
public void setDefaultAutoCommit(boolean defaultAutoCommit)
public boolean getDefaultAutoCommit()
public DataSourceBuilder withDefaultReadOnly(java.lang.String defaultReadOnly)
public void setDefaultReadOnly(java.lang.String defaultReadOnly)
public java.lang.String getDefaultReadOnly()
public DataSourceBuilder withInitialSize(int initialSize)
public void setInitialSize(int initialSize)
public int getInitialSize()
public DataSourceBuilder withMaxActive(int maxActive)
public void setMaxActive(int maxActive)
public int getMaxActive()
public DataSourceBuilder withMaxIdle(int maxIdle)
public void setMaxIdle(int maxIdle)
public int getMaxIdle()
public DataSourceBuilder withMinIdle(int minIdle)
public void setMinIdle(int minIdle)
public int getMinIdle()
public DataSourceBuilder withMaxWaitTime(Duration maxWaitTime)
public void setMaxWaitTime(Duration maxWaitTime)
public Duration getMaxWaitTime()
public DataSourceBuilder withMaxWaitTime(long time, java.util.concurrent.TimeUnit unit)
public void setMaxWaitTime(long time, java.util.concurrent.TimeUnit unit)
public DataSourceBuilder withValidationQuery(java.lang.String validationQuery)
public void setValidationQuery(java.lang.String validationQuery)
public java.lang.String getValidationQuery()
public DataSourceBuilder withTestOnBorrow(boolean testOnBorrow)
public void setTestOnBorrow(boolean testOnBorrow)
public boolean getTestOnBorrow()
public DataSourceBuilder withTestOnReturn(boolean testOnReturn)
public void setTestOnReturn(boolean testOnReturn)
public boolean getTestOnReturn()
public DataSourceBuilder withTestWhileIdle(boolean testWhileIdle)
public void setTestWhileIdle(boolean testWhileIdle)
public boolean getTestWhileIdle()
public DataSourceBuilder withTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns)
public void setTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns)
public Duration getTimeBetweenEvictionRuns()
public DataSourceBuilder withTimeBetweenEvictionRuns(long time, java.util.concurrent.TimeUnit unit)
public void setTimeBetweenEvictionRuns(long time, java.util.concurrent.TimeUnit unit)
public DataSourceBuilder withNumTestsPerEvictionRun(int numTestsPerEvictionRun)
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
public int getNumTestsPerEvictionRun()
public DataSourceBuilder withMinEvictableIdleTime(Duration minEvictableIdleTime)
public void setMinEvictableIdleTime(Duration minEvictableIdleTime)
public Duration getMinEvictableIdleTime()
public DataSourceBuilder withMinEvictableIdleTime(long time, java.util.concurrent.TimeUnit unit)
public void setMinEvictableIdleTime(long time, java.util.concurrent.TimeUnit unit)
public DataSourceBuilder withPoolPreparedStatements(boolean poolPreparedStatements)
public void setPoolPreparedStatements(boolean poolPreparedStatements)
public boolean getPoolPreparedStatements()
public DataSourceBuilder withMaxOpenPreparedStatements(int maxOpenPreparedStatements)
public void setMaxOpenPreparedStatements(int maxOpenPreparedStatements)
public int getMaxOpenPreparedStatements()
public DataSourceBuilder withAccessToUnderlyingConnectionAllowed(boolean accessToUnderlyingConnectionAllowed)
public void setAccessToUnderlyingConnectionAllowed(boolean accessToUnderlyingConnectionAllowed)
public boolean getAccessToUnderlyingConnectionAllowed()
public DataSourceBuilder withIgnoreDefaultValues(boolean ignoreDefaultValues)
public void setIgnoreDefaultValues(boolean ignoreDefaultValues)
public boolean getIgnoreDefaultValues()
public java.util.Properties getProperties()
AbstractService
set
method for the properties property.
For example, to add a new value, do as follows:
getProperties().setProperty(key, value);
getProperties
in interface Service
getProperties
in class AbstractService