Class PrimaryKey.Composite
java.lang.Object
org.apache.sis.internal.sql.feature.PrimaryKey
org.apache.sis.internal.sql.feature.PrimaryKey.Composite
- Enclosing class:
- PrimaryKey
A primary key composed of two or more columns.
-
Field Summary
FieldsModifier and TypeFieldDescriptionName of columns composing the primary key.Fields inherited from class org.apache.sis.internal.sql.feature.PrimaryKey
valueClass
-
Constructor Summary
ConstructorsConstructorDescriptionComposite
(Class<?> valueClass, Collection<String> columns) Creates a new primary key composed of the given columns. -
Method Summary
Modifier and TypeMethodDescriptionReturns all columns composing this primary key.Methods inherited from class org.apache.sis.internal.sql.feature.PrimaryKey
create
-
Field Details
-
columns
Name of columns composing the primary key.
-
-
Constructor Details
-
Composite
Composite(Class<?> valueClass, Collection<String> columns) Creates a new primary key composed of the given columns.
-
-
Method Details
-
getColumns
Returns all columns composing this primary key.- Specified by:
getColumns
in classPrimaryKey
- Returns:
- column names composing the key. Contains at least one element.
-