com.pow2.dao.datalist
Class QueryDAO

java.lang.Object
  extended bycom.pow2.dao.AbstractDAO
      extended bycom.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.
 
Method Summary
 ResultSetDataList executeQuery(Query query, ResultSetRowMapper rowMapper)
          Execute the input query and return a ResultSetDataList object that incapsulates the resultSet.
static QueryDAO instance()
          Get the unique instance of QueryDAO class.
 
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
 

Field Detail

cat

protected static org.apache.log4j.Category cat
Log4J category.

Constructor Detail

QueryDAO

protected QueryDAO()
Default constructor.

Method Detail

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 object
rowMapper - 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.