public class DefaultSearchRule extends Object implements SearchRule
Constructor and Description |
---|
DefaultSearchRule() |
Modifier and Type | Method and Description |
---|---|
DefaultSearchRule |
addField(FieldRule rule)
增加自定义字段规则
|
DefaultSearchRule |
addField(String name,
String rule) |
DefaultSearchRule |
addField(String name,
String rule,
QueryRelation relation) |
DefaultSearchRule |
addField(String name,
String rule,
QueryRelation relation,
QueryType type) |
DefaultSearchRule |
addField(String name,
String rule,
QueryType type) |
DefaultRule |
getDefaultRule()
得到默认字段搜索规则
|
List<FieldRule> |
getFieldRuleList()
得到自定义的字段搜索规则
|
DefaultSearchRule |
setDefault(DefaultRule rule)
设置默认字段规则
|
DefaultSearchRule |
setDefault(String rule) |
DefaultSearchRule |
setDefault(String rule,
QueryRelation relation) |
DefaultSearchRule |
setDefault(String rule,
QueryRelation relation,
QueryType type) |
DefaultSearchRule |
setDefault(String rule,
QueryType type) |
String |
toString() |
public List<FieldRule> getFieldRuleList()
SearchRule
getFieldRuleList
in interface SearchRule
public DefaultRule getDefaultRule()
SearchRule
getDefaultRule
in interface SearchRule
public DefaultSearchRule addField(FieldRule rule)
SearchRule
addField
in interface SearchRule
public DefaultSearchRule addField(String name, String rule, QueryRelation relation, QueryType type)
public DefaultSearchRule addField(String name, String rule, QueryRelation relation)
public DefaultSearchRule addField(String name, String rule, QueryType type)
public DefaultSearchRule addField(String name, String rule)
public DefaultSearchRule setDefault(DefaultRule rule)
SearchRule
setDefault
in interface SearchRule
public DefaultSearchRule setDefault(String rule, QueryRelation relation, QueryType type)
public DefaultSearchRule setDefault(String rule, QueryRelation relation)
public DefaultSearchRule setDefault(String rule, QueryType type)
public DefaultSearchRule setDefault(String rule)
Copyright © 2006–2018 TinyGroup. All rights reserved.