|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.schema.AbstractUpdatingDataSource
org.dellroad.stuff.schema.UpdatingDataSource
public class UpdatingDataSource
A DataSource that wraps an inner DataSource and automatically applies a configured
SQLCommandList on first access.
SQLCommandList| Constructor Summary | |
|---|---|
UpdatingDataSource()
|
|
| Method Summary | |
|---|---|
void |
setSQLCommandList(SQLCommandList action)
Configure the SQLCommandList to be applied to the database on first access. |
void |
setTransactional(boolean transactional)
Configure whether the SQLCommandList is applied transactionally or not. |
protected void |
updateDataSource(DataSource dataSource)
Update the inner DataSource. |
| Methods inherited from class org.dellroad.stuff.schema.AbstractUpdatingDataSource |
|---|
getConnection, getConnection, getInnerDataSource, getLoginTimeout, getLogWriter, isUpdated, isWrapperFor, setDataSource, setLoginTimeout, setLogWriter, unwrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdatingDataSource()
| Method Detail |
|---|
public void setSQLCommandList(SQLCommandList action)
SQLCommandList to be applied to the database on first access. Required property.
public void setTransactional(boolean transactional)
SQLCommandList is applied transactionally or not.
Default is true.
protected void updateDataSource(DataSource dataSource)
throws SQLException
AbstractUpdatingDataSourceDataSource.
This method will be invoked at most once.
updateDataSource in class AbstractUpdatingDataSourceSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||