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

java.lang.Object
  extended by se.unlogic.standardutils.dao.querys.PreparedStatementQuery
      extended by se.unlogic.standardutils.dao.querys.PopulatedQuery<ReturnType>
Direct Known Subclasses:
ArrayListQuery, HashMapQuery, ObjectQuery

public abstract class PopulatedQuery<ReturnType>
extends PreparedStatementQuery


Field Summary
protected  BeanResultSetPopulator<? extends ReturnType> beanPopulator
           
 
Fields inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
closeConnectionOnExit, closed, connection, pstmt
 
Constructor Summary
PopulatedQuery(Connection connection, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<? extends ReturnType> bp)
           
PopulatedQuery(DataSource dataSource, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<? extends ReturnType> bp)
           
 
Method Summary
 BeanResultSetPopulator<? extends ReturnType> getBeanPopulator()
           
 
Methods inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
abort, autoCloseQuery, getPreparedStatement, 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
 

Field Detail

beanPopulator

protected BeanResultSetPopulator<? extends ReturnType> beanPopulator
Constructor Detail

PopulatedQuery

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

PopulatedQuery

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

getBeanPopulator

public BeanResultSetPopulator<? extends ReturnType> getBeanPopulator()


Copyright © 2011. All Rights Reserved.