Jira issue originally created by user @beberlei:
Currently the name of the primary key is internal to the Table instance so there is no way to check if the table has a primary key without getting all the indexes and iterating over them.
Comment created by @beberlei:
This is fixed in trunk.
Issue was closed with resolution "Fixed"