Class Table.PrimaryKey
java.lang.Object
com.invirgance.convirgance.jdbc.schema.Table.PrimaryKey
- Enclosing class:
Table
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryKey
(Column[] columns, com.invirgance.convirgance.json.JSONObject[] records) -
Method Summary
-
Constructor Details
-
PrimaryKey
-
-
Method Details
-
getName
-
getTable
The table the primary key belongs to- Returns:
- the Table containing the primary key column(s)
-
getColumn
Obtain the primary keyColumn
. Throws an exception if the primary key is multi-column/composite.- Returns:
- the primary key
Column
- Throws:
com.invirgance.convirgance.ConvirganceException
- if primary key is multi-column/composite
-
getColumns
Obtain the primary key columns. Columns are guaranteed to be returned in primary key order.- Returns:
- an array of
Column
objects representing the primary key
-
equals
Checks that the comparison PrimaryKey has the same table and record count as this. -
hashCode
public int hashCode() -
toString
-