Class ImmutableSQLRecord

java.lang.Object
com.nimbusds.infinispan.persistence.sql.ImmutableSQLRecord
All Implemented Interfaces:
SQLRecord

@Immutable public final class ImmutableSQLRecord extends Object implements SQLRecord
Immutable SQL record.
  • Constructor Details

    • ImmutableSQLRecord

      public ImmutableSQLRecord(List<org.jooq.Field<?>> keyCols, Map<org.jooq.Field<?>,?> fields)
      Creates a new immutable SQL record.
      Parameters:
      keyCols - The key column names. Must not be empty.
      fields - The fields. Must not be empty.
    • ImmutableSQLRecord

      public ImmutableSQLRecord(String keyCol, Map<org.jooq.Field<?>,?> fields)
      Creates a new immutable SQL record with a single key column.
      Parameters:
      keyCol - The key column name. Must not be null.
      fields - The fields. Must not be empty.
  • Method Details

    • getKeyColumns

      public List<org.jooq.Field<?>> getKeyColumns()
      Description copied from interface: SQLRecord
      Returns the column names that serve as keys for the SQL record. Must be included in the returned fields.
      Specified by:
      getKeyColumns in interface SQLRecord
      Returns:
      The key column names, one or more. Never empty.
    • getFields

      public Map<org.jooq.Field<?>,?> getFields()
      Description copied from interface: SQLRecord
      Returns the fields for the SQL record.
      Specified by:
      getFields in interface SQLRecord
      Returns:
      The fields. Never empty.