Class CriteriaParameterImpl<V>

java.lang.Object
io.github.mmm.orm.param.CriteriaParameterImpl<V>
Type Parameters:
V - type of the value.
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 Details

    • CriteriaParameterImpl

      public CriteriaParameterImpl(int index, V value, DbType<V,?> dbType)
      The constructor.
      Parameters:
      index - the index.
      value - the value.
      dbType - the database type.
    • CriteriaParameterImpl

      public CriteriaParameterImpl(int index, V value, DbType<V,?> dbType, String name)
      The constructor.
      Parameters:
      index - the index.
      value - the value.
      dbType - the database type.
      name - the name.
  • Method Details

    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface io.github.mmm.property.criteria.CriteriaParameter<V>
    • getName

      public String getName()
      Specified by:
      getName in interface io.github.mmm.property.criteria.CriteriaParameter<V>
    • getValue

      public V getValue()
      Specified by:
      getValue in interface io.github.mmm.property.criteria.CriteriaParameter<V>
    • getDbType

      public DbType<V,?> getDbType()
      Returns:
      the DbType of this parameter.
    • getPlaceholder

      public String getPlaceholder()
      Returns:
      the placeholder for this parameter.
    • apply

      public void apply(PreparedStatement statement, Connection connection) throws SQLException
      Parameters:
      statement - the PreparedStatement.
      connection - the JDBC Connection.
      Throws:
      SQLException - on error.