net.mlw.vlh.adapter.jdbc
Class AbstractJdbcAdapter
java.lang.Object
net.mlw.vlh.adapter.AbstractValueListAdapter
net.mlw.vlh.adapter.jdbc.AbstractJdbcAdapter
- All Implemented Interfaces:
- ValueListAdapter
- Direct Known Subclasses:
- AbstractDynaJdbcAdapter, DefaultWrapperAdapter, SpringDaoValueListAdapter
- public abstract class AbstractJdbcAdapter
- extends AbstractValueListAdapter
This adapter handles the standard functionality of creating a query and
execution it...
If you set validator, it will use special ResultSetDecorator.
- Version:
- $Revision: 1.27 $ $Date: 2006/04/18 17:15:05 $
- Author:
- Matthew L. Wilson, Andrej Zachar
- See Also:
ResultSetDecorator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJdbcAdapter
public AbstractJdbcAdapter()
getValueList
public ValueList getValueList(String name,
ValueListInfo info)
- Description copied from interface:
ValueListAdapter
- Gets a ValueList
- Parameters:
info
- The ValueList
informationname
- The name of the ValueList
- Returns:
- The
ValueList
- See Also:
ValueListAdapter.getValueList(java.lang.String,
net.mlw.vlh.ValueListInfo)
processResultSet
public abstract List processResultSet(String name,
ResultSet result,
int numberPerPage,
ValueListInfo info)
throws SQLException
- This method takes the result and puts the VOs in the List.
- Parameters:
result
- The ResultSet to interate through.info
- is ussually constant during this process, you can use it for
passing additional parameters from controler. (Like in
DefaultWrapperAdapter)
- Returns:
- The List of VOs.
- Throws:
SQLException
getDataSource
public DataSource getDataSource()
- Returns:
- Returns the dataSource.
setDataSource
public void setDataSource(DataSource dataSource)
- Parameters:
dataSource
- The dataSource to set.
getSql
public String getSql()
- Returns:
- Returns the sql.
setSql
public void setSql(String sql)
- Parameters:
sql
- The sql to set.
getStatementBuilder
public StatementBuilder getStatementBuilder()
- Returns:
- Returns the statementBuilder.
setStatementBuilder
public void setStatementBuilder(StatementBuilder statementBuilder)
- Parameters:
statementBuilder
- The statementBuilder to set.
isShowSql
public boolean isShowSql()
- Returns:
- Returns the showSql.
setShowSql
public void setShowSql(boolean showSql)
- Parameters:
showSql
- The showSql to set.
getValidator
public ObjectValidator getValidator()
- Returns:
- Returns the objectValidator.
setValidator
public void setValidator(ObjectValidator objectValidator)
If is set to not null value, it uses a special
ResultsSetDecorator, that enable or
disable filtering objects in the final valuelist.
NOTE:
It respects the total count of entries that overlap your paged
list. Simply spoken it supports features such as paging.
- Parameters:
objectValidator
- The objectValidator to set.
The null value means that validator is disabled.- See Also:
ObjectValidator
,
ResultSetDecorator
getConnectionCreator
public ConnectionCreator getConnectionCreator()
- Returns:
- Returns the connectionCreator.
setConnectionCreator
public void setConnectionCreator(ConnectionCreator connectionCreator)
- Parameters:
connectionCreator
- The connectionCreator to set.
getSqlPagingSupport
public SqlPagingSupport getSqlPagingSupport()
setSqlPagingSupport
public void setSqlPagingSupport(SqlPagingSupport sqlPagingSupport)
Copyright © 2003-2006 mlavilson. All Rights Reserved.