Class KeysQueryFunction
java.lang.Object
ch.tocco.nice2.persist.core.impl.entity.KeysQueryFunction
- All Implemented Interfaces:
QueryFunction
A query function that allows to search by primary key.
This is useful if the primary key name is not known or when
the keys are only available as strings.
Optionally, a relation path can be passed as first parameter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The unique function name.@Nullable Node
postCompile
(Cursor cursor, FuncallNode functionRoot, EntityModel entityModel) Applies this function to the given (sub)tree.
-
Constructor Details
-
KeysQueryFunction
-
-
Method Details
-
getName
Description copied from interface:QueryFunction
The unique function name.- Specified by:
getName
in interfaceQueryFunction
-
postCompile
@Nullable public @Nullable Node postCompile(Cursor cursor, FuncallNode functionRoot, EntityModel entityModel) Description copied from interface:QueryFunction
Applies this function to the given (sub)tree.- Specified by:
postCompile
in interfaceQueryFunction
-