java.lang.Object
io.github.mmm.orm.param.CriteriaParameterImpl<V>
- Type Parameters:
V- type of thevalue.
- All Implemented Interfaces:
io.github.mmm.property.criteria.CriteriaParameter<V>
public class CriteriaParameterImpl<V>
extends Object
implements io.github.mmm.property.criteria.CriteriaParameter<V>
Implementation of
CriteriaParameter.-
Constructor Summary
ConstructorsConstructorDescriptionCriteriaParameterImpl(int index, V value, DbType<V, ?> dbType) The constructor.CriteriaParameterImpl(int index, V value, DbType<V, ?> dbType, String name) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PreparedStatement statement, Connection connection) intgetIndex()getName()getValue()
-
Constructor Details
-
CriteriaParameterImpl
The constructor.- Parameters:
index- theindex.value- thevalue.dbType- thedatabase type.
-
CriteriaParameterImpl
The constructor.- Parameters:
index- theindex.value- thevalue.dbType- thedatabase type.name- thename.
-
-
Method Details
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceio.github.mmm.property.criteria.CriteriaParameter<V>
-
getName
- Specified by:
getNamein interfaceio.github.mmm.property.criteria.CriteriaParameter<V>
-
getValue
- Specified by:
getValuein interfaceio.github.mmm.property.criteria.CriteriaParameter<V>
-
getDbType
- Returns:
- the
DbTypeof this parameter.
-
getPlaceholder
- Returns:
- the placeholder for this parameter.
-
apply
- Parameters:
statement- thePreparedStatement.connection- the JDBCConnection.- Throws:
SQLException- on error.
-