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_aliasconn| 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, makeObjectaddAverage, addClause, addCount, addCount, addKey, addKeyList, addMaxDate, addMaxNumber, addMinDate, addMinNumber, addSQLAverage, addSQLCount, addSum, getModify, getModifyParameters, getRequiredFilter, getTarget, getTargetObject, getTargetParameters, setQualify, setUseAliasgetContext, getLogger, resetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic MapMapper(AppContext c, GroupingSQLValue<K> key, java.lang.String key_name) throws InvalidKeyException
InvalidKeyExceptionpublic 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 - InvalidKeyExceptionprotected K makeKey(java.sql.ResultSet rs) throws DataException, java.sql.SQLException
GeneralMapMappermakeKey in class GeneralMapMapper<K,R>DataExceptionjava.sql.SQLExceptionprotected R makeResult(java.sql.ResultSet rs) throws DataException, java.sql.SQLException
GeneralMapMappermakeResult in class GeneralMapMapper<K,R>DataExceptionjava.sql.SQLExceptionprotected K getNullKey()