java.lang.Object
io.github.mmm.orm.param.AbstractCriteriaParameters
io.github.mmm.orm.param.CriteriaParametersIndexed
- All Implemented Interfaces:
io.github.mmm.property.criteria.CriteriaParameters<CriteriaParameterImpl<?>>,Iterable<CriteriaParameterImpl<?>>
CriteriaParameters using indexed parameters. It puts "?" for each Literal into the output and
collects the parameters in order that can get accessed via AbstractCriteriaParameters.iterator() after the database statement has been
formatted and can be bound as parameters to the statement.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <V> CriteriaParameterImpl<V> createParameter(int index, V value, DbType<V, ?> dbType, io.github.mmm.property.criteria.CriteriaExpression<?> parent) Methods inherited from class io.github.mmm.orm.param.AbstractCriteriaParameters
apply, iterator, onLiteralMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.mmm.property.criteria.CriteriaParameters
castMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CriteriaParametersIndexed
The constructor.- Parameters:
dialect- theAbstractDbDialect.
-
-
Method Details
-
createParameter
protected <V> CriteriaParameterImpl<V> createParameter(int index, V value, DbType<V, ?> dbType, io.github.mmm.property.criteria.CriteriaExpression<?> parent) - Specified by:
createParameterin classAbstractCriteriaParameters- Type Parameters:
V- type of thevalue.- Parameters:
index- theindex.value- thevalue.dbType- the thedatabase type.parent- the parentCriteriaExpression(seeAbstractCriteriaParameters.onLiteral(Literal, AppendableWriter, CriteriaExpression)).- Returns:
- the new
CriteriaParameterImpl.
-