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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()The unique function name.@Nullable NodepostCompile(Cursor cursor, FuncallNode functionRoot, EntityModel entityModel) Applies this function to the given (sub)tree.
-
Constructor Details
-
KeysQueryFunction
-
-
Method Details
-
getName
Description copied from interface:QueryFunctionThe unique function name.- Specified by:
getNamein interfaceQueryFunction
-
postCompile
@Nullable public @Nullable Node postCompile(Cursor cursor, FuncallNode functionRoot, EntityModel entityModel) Description copied from interface:QueryFunctionApplies this function to the given (sub)tree.- Specified by:
postCompilein interfaceQueryFunction
-