|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.sql.TopicMapFilter<T>
public class TopicMapFilter<T>
a special filter that works very similar to an SQLMapFilter, but
one instance can be applied to different stores with different mappings
- based on the topics.
Its embedded map is automatically translated via
MappingInfo.getMappingForTopic(Object) by a BaseRowMapper.
Note that if a given topic is not supported by the mapper itself, that restriction simply doesn't apply.
MappingInfo.getMappingForTopic(Object),
BaseRowMapper,
SQLMapFilter,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.antelmann.util.Filter |
|---|
EXCLUDE_ALL_FILTER, INCLUDE_ALL_FILTER |
| Constructor Summary | |
|---|---|
TopicMapFilter()
|
|
TopicMapFilter(Map<Object,Object> sqlFilterMap,
Filter<? super T> internalFilter,
Object... orderByColumns)
if a column is to be sorted descending, put a minus sign before the column name |
|
TopicMapFilter(Map<Object,Object> sqlFilterMap,
Object... orderByColumns)
if a column is to be sorted descending, put a minus sign before the column name |
|
TopicMapFilter(Object key,
Object value)
|
|
TopicMapFilter(Object key,
Object value,
Object... orderByColumns)
|
|
| Method Summary | |
|---|---|
boolean |
accept(T entry)
return value based on the internal filter - or returns null if the internal filter is null |
SQLMapFilter<T> |
convertTopicFilter(DBClassStore<?> store)
|
SQLMapFilter<T> |
convertTopicFilter(MappingInfo mapping)
|
Filter<? super T> |
getInnerFilter()
returns the internal filter that applies in this instance's accept() method |
Object[] |
getOrder()
|
Map<Object,Object> |
getSQLFilterMap()
gives direct access to the embedded map, which may be null if constructed directly with a query String |
boolean |
isCombineWithAnd()
true by default |
boolean |
isIgnoreInvalidTopics()
|
void |
setCombineWithAnd(boolean flag)
|
void |
setIgnoreInvalidTopics(boolean ignoreInvalidTopics)
|
void |
setInnerFilter(Filter<? super T> internalFilter)
|
void |
setOrder(Object... orderByColumns)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopicMapFilter()
public TopicMapFilter(Object key,
Object value)
public TopicMapFilter(Object key,
Object value,
Object... orderByColumns)
public TopicMapFilter(Map<Object,Object> sqlFilterMap,
Object... orderByColumns)
public TopicMapFilter(Map<Object,Object> sqlFilterMap,
Filter<? super T> internalFilter,
Object... orderByColumns)
| Method Detail |
|---|
public Map<Object,Object> getSQLFilterMap()
public void setInnerFilter(Filter<? super T> internalFilter)
setInnerFilter in interface CascadingFilter<T>public Filter<? super T> getInnerFilter()
getInnerFilter in interface CascadingFilter<T>public Object[] getOrder()
public void setOrder(Object... orderByColumns)
public boolean isCombineWithAnd()
public void setCombineWithAnd(boolean flag)
public boolean accept(T entry)
accept in interface Filter<T>public boolean isIgnoreInvalidTopics()
public void setIgnoreInvalidTopics(boolean ignoreInvalidTopics)
public SQLMapFilter<T> convertTopicFilter(DBClassStore<?> store)
public SQLMapFilter<T> convertTopicFilter(MappingInfo mapping)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||