|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mlw.vlh.adapter.AbstractValueListAdapter net.mlw.vlh.adapter.jdbc.AbstractJdbcAdapter net.mlw.vlh.adapter.jdbc.objectWrapper.DefaultWrapperAdapter
DefaultIdWrappedAdapter wrap original record by calling interface
ObjectWrapper
method
getWrappedRecord(Object objectToBeWrapped)
and with this
result populate the final valueList.. objectToBeWrapped could be whole
resultSet or specific column from resultSet.
ObjectWrapper
,
ObjectValidator
,
ResultSetDecorator
,
AbstractJdbcAdapter
Field Summary |
Fields inherited from interface net.mlw.vlh.ValueListAdapter |
DO_FILTER, DO_FOCUS, DO_NOTHING, DO_PAGE, DO_SORT |
Constructor Summary | |
DefaultWrapperAdapter()
|
Method Summary | |
String |
getColumnName()
|
int |
getColumnNumber()
|
ObjectWrapper |
getWrapper()
|
boolean |
isWrapResultSet()
|
List |
processResultSet(String name,
ResultSet result,
int numberPerPage,
ValueListInfo info)
This method takes the result and puts the VOs in the List. |
void |
setColumnName(String columnName)
Specify which column will be objectToBeWrapped. |
void |
setColumnNumber(int columnNumber)
Specify which column will be objectToBeWrapped. |
void |
setWrapper(ObjectWrapper objectWrapper)
This param is required. |
void |
setWrapResultSet(boolean wrapResultSet)
Determine object to be wrapped - resultSet or column from result set. |
Methods inherited from class net.mlw.vlh.adapter.jdbc.AbstractJdbcAdapter |
getConnectionCreator, getDataSource, getSql, getSqlPagingSupport, getStatementBuilder, getValidator, getValueList, isShowSql, setConnectionCreator, setDataSource, setShowSql, setSql, setSqlPagingSupport, setStatementBuilder, setValidator |
Methods inherited from class net.mlw.vlh.adapter.AbstractValueListAdapter |
getAdapterType, getDefaultNumberPerPage, getDefaultSortColumn, getDefaultSortDirectionInteger, setAdapterType, setDefaultNumberPerPage, setDefaultSortColumn, setDefaultSortDirection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultWrapperAdapter()
Method Detail |
public List processResultSet(String name, ResultSet result, int numberPerPage, ValueListInfo info) throws SQLException
AbstractJdbcAdapter
processResultSet
in class AbstractJdbcAdapter
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)
SQLException
public String getColumnName()
public void setColumnName(String columnName)
columnName
- The columnName to set.public int getColumnNumber()
public void setColumnNumber(int columnNumber)
columnNumber
- The columnNumber to set.public ObjectWrapper getWrapper()
public void setWrapper(ObjectWrapper objectWrapper)
objectWrapper
- The objectWrapper to set.ObjectWrapper
public boolean isWrapResultSet()
public void setWrapResultSet(boolean wrapResultSet)
wrapResultSet
- ObjectWrapper.getWrappedRecord(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |