se.unlogic.standardutils.dao.querys
Class ArrayListQuery<ReturnType>

java.lang.Object
  extended by se.unlogic.standardutils.dao.querys.PreparedStatementQuery
      extended by se.unlogic.standardutils.dao.querys.PopulatedQuery<ReturnType>
          extended by se.unlogic.standardutils.dao.querys.ArrayListQuery<ReturnType>

public class ArrayListQuery<ReturnType>
extends PopulatedQuery<ReturnType>


Field Summary
 
Fields inherited from class se.unlogic.standardutils.dao.querys.PopulatedQuery
beanPopulator
 
Fields inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
closeConnectionOnExit, closed, connection, pstmt
 
Constructor Summary
ArrayListQuery(Connection connection, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<ReturnType> bp)
           
ArrayListQuery(DataSource dataSource, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<ReturnType> bp)
           
 
Method Summary
 ArrayList<ReturnType> executeQuery()
           
protected  PreparedStatement getPreparedStatement(String query)
           
 
Methods inherited from class se.unlogic.standardutils.dao.querys.PopulatedQuery
getBeanPopulator
 
Methods inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
abort, autoCloseQuery, isCloseConnectionOnExit, isClosed, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListQuery

public ArrayListQuery(Connection connection,
                      boolean closeConnectionOnExit,
                      String query,
                      BeanResultSetPopulator<ReturnType> bp)
               throws SQLException
Throws:
SQLException

ArrayListQuery

public ArrayListQuery(DataSource dataSource,
                      boolean closeConnectionOnExit,
                      String query,
                      BeanResultSetPopulator<ReturnType> bp)
               throws SQLException
Throws:
SQLException
Method Detail

executeQuery

public ArrayList<ReturnType> executeQuery()
                                   throws SQLException
Throws:
SQLException

getPreparedStatement

protected PreparedStatement getPreparedStatement(String query)
                                          throws SQLException
Overrides:
getPreparedStatement in class PreparedStatementQuery
Throws:
SQLException


Copyright © 2011. All Rights Reserved.