public class BasicLegacyConstraint extends BasicConstraint implements LegacyConstraint, Serializable
This constraint type is provided for the sole purpose of aligning existing legacy code with the new search query framework, and will eventually be phased out.
modifiable| Constructor and Description |
|---|
BasicLegacyConstraint(String constraint)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object.
|
String |
getConstraint()
Gets the constraint.
|
int |
hashCode() |
BasicLegacyConstraint |
setConstraint(String constraint)
Sets the constraint.
|
String |
toString()
Returns a string representation of this LegacyConstraint.
|
getBasicSupportLevel, isInverse, setInverse, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBasicSupportLevel, isInverse, setUnmodifiablepublic BasicLegacyConstraint(String constraint)
constraint - The non-null constraint as it appears in
the where-clause.IllegalArgumentException - When an invalid argument is supplied.public BasicLegacyConstraint setConstraint(String constraint)
constraint - The non-null constraint as it appears in
the where-clause (may also not be empty string)BasicLegacyConstraint instance.IllegalArgumentException - When an invalid argument is supplied.public String getConstraint()
LegacyConstraintgetConstraint in interface LegacyConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).equals in interface Constraintequals in class BasicConstraintobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicConstraintpublic String toString()
LegacyConstraintisInverse()
getConstraint()
toString in interface LegacyConstrainttoString in class ObjectMMBase 1.9-SNAPSHOT - ${javadoctimestamp}