java.lang.Object
io.github.mmm.orm.param.AbstractCriteriaParameters
- All Implemented Interfaces:
io.github.mmm.property.criteria.CriteriaParameters<CriteriaParameterImpl<?>>,Iterable<CriteriaParameterImpl<?>>
- Direct Known Subclasses:
CriteriaParametersIndexed,CriteriaParametersNamed
public abstract class AbstractCriteriaParameters
extends Object
implements io.github.mmm.property.criteria.CriteriaParameters<CriteriaParameterImpl<?>>
CriteriaParameters using CriteriaParameterImpl.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PreparedStatement statement, Connection connection) protected abstract <V> CriteriaParameterImpl<V> createParameter(int index, V value, DbType<V, ?> dbType, io.github.mmm.property.criteria.CriteriaExpression<?> parent) iterator()voidonLiteral(io.github.mmm.property.criteria.Literal<?> literal, io.github.mmm.base.io.AppendableWriter out, io.github.mmm.property.criteria.CriteriaExpression<?> parent) Methods 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
-
AbstractCriteriaParameters
The constructor.- Parameters:
dialect- theAbstractDbDialect.
-
-
Method Details
-
onLiteral
public void onLiteral(io.github.mmm.property.criteria.Literal<?> literal, io.github.mmm.base.io.AppendableWriter out, io.github.mmm.property.criteria.CriteriaExpression<?> parent) - Specified by:
onLiteralin interfaceio.github.mmm.property.criteria.CriteriaParameters<CriteriaParameterImpl<?>>
-
createParameter
protected abstract <V> CriteriaParameterImpl<V> createParameter(int index, V value, DbType<V, ?> dbType, io.github.mmm.property.criteria.CriteriaExpression<?> parent) - Type Parameters:
V- type of thevalue.- Parameters:
index- theindex.value- thevalue.dbType- the thedatabase type.parent- the parentCriteriaExpression(seeonLiteral(Literal, AppendableWriter, CriteriaExpression)).- Returns:
- the new
CriteriaParameterImpl.
-
iterator
- Specified by:
iteratorin interfaceIterable<CriteriaParameterImpl<?>>
-
apply
- Parameters:
statement- thePreparedStatement.connection- the JDBCConnection.- Throws:
SQLException- on error.
-