public interface PrimaryKey extends Row
TableAPI. It may contain all or
part of a primary key for its associated table. If a PrimaryKey is
partially filled the fields must be set in order of significance, as defined
by the list returned by getFields(). If an attempt is made to set a
field that is not part of the primary key IllegalArgumentException is
thrown.
PrimaryKey objects are constructed using
createPrimaryKey.
| Modifier and Type | Method and Description |
|---|---|
PrimaryKey |
clone()
Returns a deep copy of this object.
|
List<String> |
getFields()
Returns an unmodifiable list of fields, in key order, that
comprise this key.
|
createPrimaryKey, equals, getTable, getTableVersion, getVersioncontains, copyFrom, get, getDefinition, isEmpty, put, put, put, put, put, put, put, put, putArray, putArrayAsJson, putArrayAsJson, putEnum, putFixed, putMap, putMapAsJson, putMapAsJson, putNull, putRecord, putRecordAsJson, putRecordAsJson, remove, size, toStringasArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asIndexKey, asInteger, asLong, asMap, asPrimaryKey, asRecord, asRow, asString, getType, isArray, isBinary, isBoolean, isDouble, isEnum, isFixedBinary, isFloat, isIndexKey, isInteger, isLong, isMap, isNull, isPrimaryKey, isRecord, isRow, isString, toJsonStringcompareToPrimaryKey clone()
clone in interface FieldValueclone in interface RecordValueclone in interface RowList<String> getFields()
Table.getPrimaryKey() for this instance's Table.getFields in interface RecordValueCopyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.