D - type of inner SQLValuepublic class DistinctMapper<D> extends AbstractContexed implements ResultMapper<DistinctCount>
DistinctCount for a SQLValueconn| Constructor and Description |
|---|
DistinctMapper(AppContext conn,
SQLValue<D> val) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getModify()
provide an override GROUP/ORDER by clause
null to use default order from filters
|
java.util.List<PatternArgument> |
getModifyParameters(java.util.List<PatternArgument> list)
Add parameters for the GROUP/ORDER clause to a list.
|
SQLFilter |
getRequiredFilter()
Get an additional Filter required to make the target string
work properly.
|
java.lang.String |
getTarget()
get the target clause of the SQL query.
|
java.util.List<PatternArgument> |
getTargetParameters(java.util.List<PatternArgument> list)
Add parameters for the target clause to a list.
|
DistinctCount |
makeDefault()
Create a default Object to be returned if no SQL results are generated.
|
DistinctCount |
makeObject(java.sql.ResultSet rs)
Convert a ResultSet into a domain object.
|
boolean |
setQualify(boolean qualify)
Request that field names should be qualified with the table
name where appropriate.
|
getContext, getLogger, resetLoggerpublic DistinctMapper(AppContext conn, SQLValue<D> val)
conn - public boolean setQualify(boolean qualify)
ResultMappersetQualify in interface ResultMapper<DistinctCount>public DistinctCount makeObject(java.sql.ResultSet rs) throws DataException, java.sql.SQLException
ResultMappermakeObject in interface ResultMapper<DistinctCount>rs - ResultSet or nullDataExceptionjava.sql.SQLExceptionpublic DistinctCount makeDefault()
ResultMappermakeDefault in interface ResultMapper<DistinctCount>public java.lang.String getTarget()
ResultMappergetTarget in interface ResultMapper<DistinctCount>public java.util.List<PatternArgument> getTargetParameters(java.util.List<PatternArgument> list)
ResultMappergetTargetParameters in interface ResultMapper<DistinctCount>list - to modifypublic java.lang.String getModify()
ResultMappergetModify in interface ResultMapper<DistinctCount>public java.util.List<PatternArgument> getModifyParameters(java.util.List<PatternArgument> list)
ResultMappergetModifyParameters in interface ResultMapper<DistinctCount>list - to modifypublic SQLFilter getRequiredFilter()
ResultMappergetRequiredFilter in interface ResultMapper<DistinctCount>