se.unlogic.standardutils.dao.querys
Class HashMapQuery<KeyType,ValueType>

java.lang.Object
  extended by se.unlogic.standardutils.dao.querys.PreparedStatementQuery
      extended by se.unlogic.standardutils.dao.querys.PopulatedQuery<Map.Entry<KeyType,ValueType>>
          extended by se.unlogic.standardutils.dao.querys.HashMapQuery<KeyType,ValueType>

public class HashMapQuery<KeyType,ValueType>
extends PopulatedQuery<Map.Entry<KeyType,ValueType>>


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
HashMapQuery(Connection connection, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<? extends Map.Entry<KeyType,ValueType>> bp)
           
HashMapQuery(DataSource dataSource, boolean closeConnectionOnExit, String query, BeanResultSetPopulator<? extends Map.Entry<KeyType,ValueType>> bp)
           
 
Method Summary
 HashMap<KeyType,ValueType> executeQuery()
           
 
Methods inherited from class se.unlogic.standardutils.dao.querys.PopulatedQuery
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
 

Constructor Detail

HashMapQuery

public HashMapQuery(Connection connection,
                    boolean closeConnectionOnExit,
                    String query,
                    BeanResultSetPopulator<? extends Map.Entry<KeyType,ValueType>> bp)
             throws SQLException
Throws:
SQLException

HashMapQuery

public HashMapQuery(DataSource dataSource,
                    boolean closeConnectionOnExit,
                    String query,
                    BeanResultSetPopulator<? extends Map.Entry<KeyType,ValueType>> bp)
             throws SQLException
Throws:
SQLException
Method Detail

executeQuery

public HashMap<KeyType,ValueType> executeQuery()
                                        throws SQLException
Throws:
SQLException


Copyright © 2011. All Rights Reserved.