|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.ds.DataSourceConfigurationBuilder
public final class DataSourceConfigurationBuilder
Helper to create instances of TenentUserConfigurationKey
.
Constructor Summary | |
---|---|
DataSourceConfigurationBuilder() |
Method Summary | |
---|---|
DataSourceConfiguration |
build() Creates an DataSourceConfiguration instance. |
String |
getConfigSourceId() Returns the source of the data source configuration. |
String |
getJndiName() Returns the name of the data source to lookup in a JNDI context. |
boolean |
isCreateTable() Returns the flag to create the configuration if set to true . |
boolean |
isDropTable() Returns the flag to drop the configuration table if set to true . |
void |
setConfigSourceId(String configSourceId) Sets the source of the data source configuration. |
void |
setCreateTable(boolean createTable) Sets the flag to create the configuration if set to true . |
void |
setDropTable(boolean dropTable) Sets the flag to drop the configuration table if set to true . |
void |
setJndiName(String jndiName) Sets the name of the data source to lookup in a JNDI context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSourceConfigurationBuilder()
Method Detail |
---|
public String getConfigSourceId()
public void setConfigSourceId(String configSourceId)
configSourceId
- the source of the data source configuration.
public void setJndiName(String jndiName)
jndiName
- the name of the data source to lookup in a JNDI context.
public void setDropTable(boolean dropTable)
true
.
dropTable
- the flag to drop the configuration table if set to
true
.
public void setCreateTable(boolean createTable)
true
.
createTable
- the flag to create the configuration if set to
true
.
public String getJndiName()
public boolean isDropTable()
true
.
true
.
public boolean isCreateTable()
true
.
true
.
public DataSourceConfiguration build() throws de.smartics.util.lang.BlankArgumentException
DataSourceConfiguration
instance.
DataSourceConfiguration
instance.
de.smartics.util.lang.BlankArgumentException
- if the
jndiName
,
createTable
or
dropTable
are blank.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |