K
- type of keyR
- type of resultpublic class MapMapper<K,R> extends GeneralMapMapper<K,R>
SQLGroupMapper
to populate a Map from a SQL query where the key and data are single
target values.qualify, use_alias
conn
Constructor and Description |
---|
MapMapper(AppContext c,
GroupingSQLValue<K> key,
java.lang.String key_name) |
MapMapper(AppContext c,
GroupingSQLValue<K> key,
java.lang.String key_name,
SQLValue<R> dat,
java.lang.String dat_name)
Simple constructor for a basic map between two values with no combine operation.
|
Modifier and Type | Method and Description |
---|---|
protected K |
getNullKey() |
protected K |
makeKey(java.sql.ResultSet rs)
Make the key object from the ResultSet
|
protected R |
makeResult(java.sql.ResultSet rs)
make the result object from the ResultSet
|
combine, makeDefault, makeObject
addAverage, addClause, addCount, addCount, addKey, addKeyList, addMaxDate, addMaxNumber, addMinDate, addMinNumber, addSQLAverage, addSQLCount, addSum, getModify, getModifyParameters, getRequiredFilter, getTarget, getTargetObject, getTargetParameters, setQualify, setUseAlias
getContext, getLogger, resetLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public MapMapper(AppContext c, GroupingSQLValue<K> key, java.lang.String key_name) throws InvalidKeyException
InvalidKeyException
public MapMapper(AppContext c, GroupingSQLValue<K> key, java.lang.String key_name, SQLValue<R> dat, java.lang.String dat_name) throws InvalidKeyException
c
- key
- key_name
- dat
- dat_name
- InvalidKeyException
protected K makeKey(java.sql.ResultSet rs) throws DataException, java.sql.SQLException
GeneralMapMapper
makeKey
in class GeneralMapMapper<K,R>
DataException
java.sql.SQLException
protected R makeResult(java.sql.ResultSet rs) throws DataException, java.sql.SQLException
GeneralMapMapper
makeResult
in class GeneralMapMapper<K,R>
DataException
java.sql.SQLException
protected K getNullKey()