com.pow2.dao.datalist
Class QueryDAO
java.lang.Object
com.pow2.dao.AbstractDAO
com.pow2.dao.datalist.QueryDAO
- public class QueryDAO
- extends AbstractDAO
Query data access object class.
- Author:
- Luca Fossato
Field Summary |
protected static org.apache.log4j.Category |
cat
Log4J category. |
Constructor Summary |
protected |
QueryDAO()
Default constructor. |
Methods inherited from class com.pow2.dao.AbstractDAO |
assertion, closeResources, closeResources, closeResources, count, count, delete, delete, encode, getConnection, getConnection, getNewKey, isDebugEnabled, populate, setLike, setLike |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected static org.apache.log4j.Category cat
- Log4J category.
QueryDAO
protected QueryDAO()
- Default constructor.
instance
public static QueryDAO instance()
- Get the unique instance of QueryDAO class.
- Returns:
- the instance of QueryDAO class
executeQuery
public ResultSetDataList executeQuery(Query query,
ResultSetRowMapper rowMapper)
throws Exception
- Execute the input query and return a ResultSetDataList object
that incapsulates the resultSet.
- Parameters:
query
- the Query objectrowMapper
- the ResultSetRowMapper object
- Returns:
- a ResultSetDataList object
- Throws:
Exception
- if any error occurs
Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.