@Immutable public final class ImmutableSQLRecord extends Object implements SQLRecord
| Constructor and Description |
|---|
ImmutableSQLRecord(List<org.jooq.Field<?>> keyCols,
Map<org.jooq.Field<?>,?> fields)
Creates a new immutable SQL record.
|
ImmutableSQLRecord(String keyCol,
Map<org.jooq.Field<?>,?> fields)
Creates a new immutable SQL record with a single key column.
|
| Modifier and Type | Method and Description |
|---|---|
Map<org.jooq.Field<?>,?> |
getFields()
Returns the fields for the SQL record.
|
List<org.jooq.Field<?>> |
getKeyColumns()
Returns the column names that serve as keys for the SQL record.
|
public ImmutableSQLRecord(List<org.jooq.Field<?>> keyCols, Map<org.jooq.Field<?>,?> fields)
keyCols - The key column names. Must not be empty.fields - The fields. Must not be empty.public ImmutableSQLRecord(String keyCol, Map<org.jooq.Field<?>,?> fields)
keyCol - The key column name. Must not be null.fields - The fields. Must not be empty.public List<org.jooq.Field<?>> getKeyColumns()
SQLRecordreturned fields.getKeyColumns in interface SQLRecordCopyright © 2016 Connect2id Ltd.. All Rights Reserved.