-
- Type Parameters:
R
- TheKEY
's owner table record
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ForeignKey<R,O>
,UniqueKey<R>
public interface Key<R extends Record> extends Serializable
AKey
is an object representing aUNIQUE KEY
, aPRIMARY KEY
, or aFOREIGN KEY
.Instances of this type cannot be created directly. They are available from generated code.
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constraint
constraint()
Get thisKEY
as a formalConstraint
specification.List<TableField<R,?>>
getFields()
The fields that make up theKEY
TableField<R,?>[]
getFieldsArray()
The fields that make up theKEY
String
getName()
TheKey
's name.Table<R>
getTable()
TheKey
's owner table
-
-
-
Method Detail
-
getName
String getName()
TheKey
's name.
-
getFields
List<TableField<R,?>> getFields()
The fields that make up theKEY
-
getFieldsArray
TableField<R,?>[] getFieldsArray()
The fields that make up theKEY
- See Also:
getFields()
-
constraint
Constraint constraint()
Get thisKEY
as a formalConstraint
specification.
-
-