|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.interface21.jdbc.core.support.AbstractDataFieldMaxValueIncrementer
Implementation of DataFieldMaxValueIncrementer
Uses Template Method design pattern
Subclasses should provide implementations of protected abstract methods.
History:
| Constructor Summary | |
AbstractDataFieldMaxValueIncrementer()
Default constructor |
|
AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName)
Constructor |
|
AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
int cacheSize)
Constructor |
|
AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
java.lang.String columnName)
Constructor |
|
AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
java.lang.String columnName,
int cacheSize)
Constructor |
|
| Method Summary | |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied. |
int |
getCacheSize()
Gets the cacheSize. |
java.lang.String |
getColumnName()
Gets the columnName. |
javax.sql.DataSource |
getDataSource()
Gets the data source. |
java.lang.String |
getIncrementerName()
Gets the incrementerName. |
protected abstract double |
incrementDoubleValue()
Template method implementation to be provided by concrete subclasses |
protected abstract int |
incrementIntValue()
Template method implementation to be provided by concrete subclasses |
protected abstract long |
incrementLongValue()
Template method implementation to be provided by concrete subclasses |
protected abstract java.lang.String |
incrementStringValue()
Template method implementation to be provided by concrete subclasses |
boolean |
isDirty()
Gets the state of the dirty flag |
double |
nextDoubleValue()
Template method |
int |
nextIntValue()
Template method |
long |
nextLongValue()
Template method |
java.lang.String |
nextStringValue()
Template method |
java.lang.Object |
nextValue(java.lang.Class keyClass)
Template method |
void |
setCacheSize(int cacheSize)
Sets the cacheSize. |
void |
setColumnName(java.lang.String columnName)
Sets the columnName. |
void |
setDataSource(javax.sql.DataSource dataSource)
Sets the data source. |
void |
setDirty(boolean dirty)
Sets the state of the dirty flag |
void |
setIncrementerName(java.lang.String incrementerName)
Sets the incrementerName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractDataFieldMaxValueIncrementer()
public AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName)
ds - the datasource to useincrementerName - the name of the sequence/table to use
public AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
java.lang.String columnName)
ds - the datasource to useincrementerName - the name of the sequence/table to usecolumnName - the name of the column in the sequence table to use
public AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
int cacheSize)
ds - the datasource to useincrementerName - the name of the sequence/table to usecacheSize - the number of buffered keys
public AbstractDataFieldMaxValueIncrementer(javax.sql.DataSource ds,
java.lang.String incrementerName,
java.lang.String columnName,
int cacheSize)
ds - the datasource to useincrementerName - the name of the sequence/table to usecolumnName - the name of the column in the sequence table to usecacheSize - the number of buffered keys| Method Detail |
public boolean isDirty()
public void setDirty(boolean dirty)
public javax.sql.DataSource getDataSource()
public void setDataSource(javax.sql.DataSource dataSource)
ds - The data source to setpublic java.lang.String getIncrementerName()
public void setIncrementerName(java.lang.String incrementerName)
incrementerName - The incrementerName to setpublic java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
columnName - The columnName to setpublic int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize - The number of buffered keys
public final int nextIntValue()
throws DataAccessException
nextIntValue in interface DataFieldMaxValueIncrementer
public final long nextLongValue()
throws DataAccessException
nextLongValue in interface DataFieldMaxValueIncrementer
public final double nextDoubleValue()
throws DataAccessException
nextDoubleValue in interface DataFieldMaxValueIncrementer
public final java.lang.String nextStringValue()
throws DataAccessException
nextStringValue in interface DataFieldMaxValueIncrementer
public final java.lang.Object nextValue(java.lang.Class keyClass)
throws DataAccessException
nextValue in interface DataFieldMaxValueIncrementer
protected abstract int incrementIntValue()
throws DataAccessException
nextIntValue()
protected abstract long incrementLongValue()
throws DataAccessException
nextLongValue()
protected abstract double incrementDoubleValue()
throws DataAccessException
nextDoubleValue()
protected abstract java.lang.String incrementStringValue()
throws DataAccessException
nextStringValue()
public void afterPropertiesSet()
throws DataAccessException
InitializingBeanafterPropertiesSet in interface InitializingBeanInitializingBean.afterPropertiesSet()
|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||