public class In extends Compare
Iterable<Object>
as value.Select.setConstraint(Constraint)
,
Serialized FormConstraint.Type
Constructor and Description |
---|
In(String attributeName,
Iterable<Object> values)
Creates a new In constraint for the attribute specified by given attributeName and
with the given value.
|
In(String attributeName,
Parameter parameter)
Creates a new In constraint for the attribute specified by given attributeName and parameter.
|
Modifier and Type | Method and Description |
---|---|
Constraint.Type |
getType()
The type of this constraint:
Constraint.Type.IN |
boolean |
isEmpty()
Check if this is an empty constraint.
|
getParameter, getValue, setParameter, setValue
getAttributeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeName
public In(@NotNull String attributeName, @NotNull Parameter parameter)
Iterable<Object>
as parameter value in Select.setParameter(String,Object)
Select.setParameter(String,Object)
public boolean isEmpty()
isEmpty
in interface Constraint
isEmpty
in class AbstractConstraint
true
if the constraint is empty, i.e. removing the constraint would not change the query result.public Constraint.Type getType()
Constraint.Type.IN
getType
in interface Constraint
getType
in class AbstractConstraint
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500