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 class.IllegalArgumentException
- if className is null or an empty String.public PredicateConfig(PredicateConfig config)
public PredicateConfig(Predicate implementation)
implementation
- the implementation to use as Predicate.IllegalArgumentException
- if the implementation is null.public PredicateConfig getAsReadOnly()
public String getClassName()
setClassName(String)
public PredicateConfig setClassName(String className)
className
- the name of the class of the Predicate.IllegalArgumentException
- if className is null or an empty String.setImplementation(Predicate)
,
getClassName()
public Predicate getImplementation()
setImplementation(Predicate)
public PredicateConfig setImplementation(Predicate implementation)
implementation
- the Predicate implementation.IllegalArgumentException
- the implementation is null.setClassName(String)
,
getImplementation()
public String getSql()
public void setSql(String sql)
sql
- sql string for this config.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.