| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected Predicate |
implementation |
protected String |
sql |
| Constructor and Description |
|---|
PredicateConfig()
Creates a PredicateConfig without className/implementation.
|
PredicateConfig(Predicate implementation)
Creates a PredicateConfig with the given implementation.
|
PredicateConfig(PredicateConfig config) |
PredicateConfig(String className)
Creates a PredicateConfig with the given className.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
PredicateConfig |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
String |
getClassName()
Returns the name of the class of the Predicate.
|
Predicate |
getImplementation()
Returns the Predicate implementation.
|
String |
getSql()
Returns sql string for this config.
|
int |
hashCode() |
PredicateConfig |
setClassName(String className)
Sets the class name of the Predicate.
|
PredicateConfig |
setImplementation(Predicate implementation)
Sets the Predicate implementation.
|
void |
setSql(String sql)
Sets sql string for this config.
|
String |
toString() |
protected String className
protected String sql
protected Predicate implementation
public PredicateConfig()
public PredicateConfig(String className)
className - the name of the Predicate classIllegalArgumentException - if className is null or an empty Stringpublic PredicateConfig(PredicateConfig config)
public PredicateConfig(Predicate implementation)
implementation - the implementation to use as PredicateIllegalArgumentException - if the implementation is nullpublic PredicateConfig getAsReadOnly()
public String getClassName()
null is returned.setClassName(String)public PredicateConfig setClassName(String className)
If a implementation or sql was set, it will be removed.
className - the name of the class of the PredicateIllegalArgumentException - if className is null or an empty StringsetImplementation(Predicate),
getClassName()public Predicate getImplementation()
null is returned.setImplementation(Predicate)public PredicateConfig setImplementation(Predicate implementation)
If a className or sql was set, it will be removed.
implementation - the Predicate implementationIllegalArgumentException - the implementation is nullsetClassName(String),
getImplementation()public String getSql()
public void setSql(String sql)
If a className or implementation was set, it will be removed.
sql - sql string for this configCopyright © 2017. All Rights Reserved.