Class Condition
java.lang.Object
ch.tocco.nice2.persist.core.api.qb2.Condition
- Direct Known Subclasses:
Equation
,Factor
,Junction
,Order
,PrimaryKeyCondition
,PrimaryKeyInCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Node
create
(TypeManager typeManager, EntityModel entityModel) Creates a new node representing this condition.static PathNode
createPathNode
(Path path) Helper method that creates aPathNode
from a given path.static PathNode
createPathNode
(String pathName) Helper method that creates aPathNode
from a given path.static Type
<?> getType
(@Nullable Object value, TypeManager typeManager) Uses the given type manager to get the type of the given value.
-
Constructor Details
-
Condition
public Condition()
-
-
Method Details
-
create
Creates a new node representing this condition.- Parameters:
typeManager
- the type manager as it might be required for creating nodesentityModel
- the entity model which is the root of the query
-
createPathNode
Helper method that creates aPathNode
from a given path. -
createPathNode
Helper method that creates aPathNode
from a given path. -
getType
Uses the given type manager to get the type of the given value. It returns theNullType
if the value isnull
and tries to find the type according to the class of the given value.
-