|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.config.PredicateConfig
public class PredicateConfig
Contains the configuration for an Predicate
. The configuration contains either the class name
of the Predicate implementation, or the actual Predicate instance.
Field Summary | |
---|---|
protected String |
className
|
protected Predicate |
implementation
|
protected String |
sql
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
PredicateConfig |
getAsReadOnly()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String className
protected String sql
protected Predicate implementation
Constructor Detail |
---|
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.Method Detail |
---|
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.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |