Package org.datanucleus.store.rdbms.key
Class PrimaryKey
java.lang.Object
org.datanucleus.store.rdbms.key.Key
org.datanucleus.store.rdbms.key.PrimaryKey
Representation of the primary key of a table.
TODO MariaDB apparently allows "ALTER TABLE ADD CONSTRAINT PRIMARY KEY (col1 ASC, col2 DESC)" not that many others do
but we don't allow that here, would need to extend ColumnOrderedKey for that, plus update to MySQL Adapter
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.datanucleus.store.rdbms.key.Key
addColumn, assertSameDatastoreObject, getColumnList, getColumnList, getColumns, getName, getNumberOfColumns, getTable, setColumn, setListMinimumSize, setName
-
Constructor Details
-
PrimaryKey
Creates a primary key. A default name of the primary key is created by the constructor. This name can be overwritten.- Parameters:
table
- Table that this is the PK for
-
-
Method Details