Class ImmutableSQLRecord
- java.lang.Object
-
- com.nimbusds.infinispan.persistence.sql.ImmutableSQLRecord
-
- All Implemented Interfaces:
SQLRecord
@Immutable public final class ImmutableSQLRecord extends java.lang.Object implements SQLRecord
Immutable SQL record.
-
-
Constructor Summary
Constructors Constructor Description ImmutableSQLRecord(java.lang.String keyCol, java.util.Map<org.jooq.Field<?>,?> fields)
Creates a new immutable SQL record with a single key column.ImmutableSQLRecord(java.util.List<org.jooq.Field<?>> keyCols, java.util.Map<org.jooq.Field<?>,?> fields)
Creates a new immutable SQL record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<org.jooq.Field<?>,?>
getFields()
Returns the fields for the SQL record.java.util.List<org.jooq.Field<?>>
getKeyColumns()
Returns the column names that serve as keys for the SQL record.
-
-
-
Constructor Detail
-
ImmutableSQLRecord
public ImmutableSQLRecord(java.util.List<org.jooq.Field<?>> keyCols, java.util.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(java.lang.String keyCol, java.util.Map<org.jooq.Field<?>,?> fields)
Creates a new immutable SQL record with a single key column.- Parameters:
keyCol
- The key column name. Must not benull
.fields
- The fields. Must not be empty.
-
-
Method Detail
-
getKeyColumns
public java.util.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 thereturned fields
.- Specified by:
getKeyColumns
in interfaceSQLRecord
- Returns:
- The key column names, one or more. Never empty.
-
-