Class ImmutableSQLRecord
java.lang.Object
com.nimbusds.infinispan.persistence.sql.ImmutableSQLRecord
- All Implemented Interfaces:
SQLRecord
Immutable SQL record.
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableSQLRecord
(String keyCol, Map<org.jooq.Field<?>, ?> fields) Creates a new immutable SQL record with a single key column.ImmutableSQLRecord
(List<org.jooq.Field<?>> keyCols, Map<org.jooq.Field<?>, ?> fields) Creates a new immutable SQL record. -
Method Summary
-
Constructor Details
-
ImmutableSQLRecord
Creates a new immutable SQL record.- Parameters:
keyCols
- The key column names. Must not be empty.fields
- The fields. Must not be empty.
-
ImmutableSQLRecord
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 Details
-
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.
-
getFields
Description copied from interface:SQLRecord
Returns the fields for the SQL record.
-