Package io.jmix.data.impl.queryconstant
Class RelativeDateTimeMomentQueryHandler
java.lang.Object
io.jmix.data.impl.queryconstant.RelativeDateTimeMomentQueryHandler
- All Implemented Interfaces:
QueryConstantHandler
@Component("data_RelativeDateTimeMomentQueryConstantHandler")
@Scope("prototype")
public class RelativeDateTimeMomentQueryHandler
extends Object
implements QueryConstantHandler
-
Constructor Summary
ConstructorDescriptionRelativeDateTimeMomentQueryHandler
(CurrentAuthentication currentAuthentication, TimeSource timeSource, DataProperties dataProperties) -
Method Summary
Modifier and TypeMethodDescriptionexpandConstant
(String queryString) Replaces constant with real JPQL code.
-
Constructor Details
-
RelativeDateTimeMomentQueryHandler
public RelativeDateTimeMomentQueryHandler(CurrentAuthentication currentAuthentication, TimeSource timeSource, DataProperties dataProperties)
-
-
Method Details
-
expandConstant
Description copied from interface:QueryConstantHandler
Replaces constant with real JPQL code. If constant is not found, the source query string is returned.- Specified by:
expandConstant
in interfaceQueryConstantHandler
- Parameters:
queryString
- source query string- Returns:
- query string with constant replaced
-