Class Condition
java.lang.Object
ch.tocco.nice2.persist.core.api.qb2.Condition
- Direct Known Subclasses:
Equation,Factor,Junction,Order,PrimaryKeyCondition,PrimaryKeyInCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Nodecreate(TypeManager typeManager, EntityModel entityModel) Creates a new node representing this condition.static PathNodecreatePathNode(Path path) Helper method that creates aPathNodefrom a given path.static PathNodecreatePathNode(String pathName) Helper method that creates aPathNodefrom 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 aPathNodefrom a given path. -
createPathNode
Helper method that creates aPathNodefrom a given path. -
getType
Uses the given type manager to get the type of the given value. It returns theNullTypeif the value isnulland tries to find the type according to the class of the given value.
-