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<java.util.Map.Entry<KeyType,ValueType>>
          extended by se.unlogic.standardutils.dao.querys.HashMapQuery<KeyType,ValueType>

public class HashMapQuery<KeyType,ValueType>
extends PopulatedQuery<java.util.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(java.sql.Connection connection, boolean closeConnectionOnExit, java.lang.String query, BeanResultSetPopulator<? extends java.util.Map.Entry<KeyType,ValueType>> bp)
           
HashMapQuery(javax.sql.DataSource dataSource, boolean closeConnectionOnExit, java.lang.String query, BeanResultSetPopulator<? extends java.util.Map.Entry<KeyType,ValueType>> bp)
           
 
Method Summary
 java.util.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(java.sql.Connection connection,
                    boolean closeConnectionOnExit,
                    java.lang.String query,
                    BeanResultSetPopulator<? extends java.util.Map.Entry<KeyType,ValueType>> bp)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

HashMapQuery

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

executeQuery

public java.util.HashMap<KeyType,ValueType> executeQuery()
                                                  throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2011. All Rights Reserved.