geopackage-sdk/src/main/java/mil/nga/geopackage/extension/related/RelatedTablesExtension.java
@Override
    public String getPrimaryKeyColumnName(String tableName) {
        UserCustomTable table = UserCustomTableReader.readTable(connection,
                tableName);
        UserCustomColumn pkColumn = table.getPkColumn();
        if (pkColumn == null) {
            throw new GeoPackageException("Found no primary key for table "
                    + tableName);
        }
        return pkColumn.getName();
    }
@Override
    public String getPrimaryKeyColumnName(String tableName) {
        UserCustomTable table = UserCustomTableReader.readTable(connection,
                tableName);
        UserCustomColumn pkColumn = table.getPkColumn();
        if (pkColumn == null) {
            throw new GeoPackageException("Found no primary key for table "
                    + tableName);
        }
        return pkColumn.getName();
    }
{@inheritDoc}