Class AbstractSchemaJdbcStore.SchemaTableOperations<K,V,C extends AbstractSchemaJdbcConfiguration>

java.lang.Object
org.infinispan.persistence.jdbc.common.sql.BaseTableOperations<K,V>
org.infinispan.persistence.sql.AbstractSchemaJdbcStore.SchemaTableOperations<K,V,C>
All Implemented Interfaces:
org.infinispan.persistence.jdbc.common.TableOperations<K,V>
Direct Known Subclasses:
QueriesJdbcStore.QueryTableOperations, TableJdbcStore.TableTableOperations
Enclosing class:
AbstractSchemaJdbcStore<K,V,C extends AbstractSchemaJdbcConfiguration>

protected abstract static class AbstractSchemaJdbcStore.SchemaTableOperations<K,V,C extends AbstractSchemaJdbcConfiguration> extends org.infinispan.persistence.jdbc.common.sql.BaseTableOperations<K,V>
  • Constructor Details

  • Method Details

    • setParameter

      protected void setParameter(PreparedStatement ps, AbstractSchemaJdbcStore.ProtostreamFieldType type, int position, org.infinispan.commons.dataconversion.internal.Json json) throws SQLException
      This method assigns a parameter based on the type using the parameter type. Normally this code would live in the enum, but some implementations may require a different assignment based on the database and thus this method can be extended to change that behavior.
      Parameters:
      ps -
      type -
      position -
      json -
      Throws:
      SQLException
    • updateJsonWithParameter

      protected void updateJsonWithParameter(ResultSet rs, AbstractSchemaJdbcStore.Parameter parameter, int offset, org.infinispan.commons.dataconversion.internal.Json json, boolean key) throws SQLException
      Throws:
      SQLException
    • entryFromResultSet

      protected org.infinispan.persistence.spi.MarshallableEntry<K,V> entryFromResultSet(ResultSet rs, Object keyIfProvided, boolean fetchValue, Predicate<? super K> keyPredicate) throws SQLException
      Specified by:
      entryFromResultSet in class org.infinispan.persistence.jdbc.common.sql.BaseTableOperations<K,V>
      Throws:
      SQLException
    • prepareKeyStatement

      protected void prepareKeyStatement(PreparedStatement ps, Object key) throws SQLException
      Specified by:
      prepareKeyStatement in class org.infinispan.persistence.jdbc.common.sql.BaseTableOperations<K,V>
      Throws:
      SQLException
    • prepareValueStatement

      protected void prepareValueStatement(PreparedStatement ps, int segment, org.infinispan.persistence.spi.MarshallableEntry<? extends K,? extends V> entry) throws SQLException
      Specified by:
      prepareValueStatement in class org.infinispan.persistence.jdbc.common.sql.BaseTableOperations<K,V>
      Throws:
      SQLException