```
String [] tableTypes = { "TABLE" };
    DatabaseMetaData md = (DatabaseMetaData) dbConnection.getMetaData();
    ResultSet rs = md.getTables(null, null, "%", tableTypes);
    while (rs.next()) {
        System.out.println(rs.getString(3));
    }

```

Im using this part of the code to get all tables from my local oracle database but I need to change it in order to get back only the tablet that have only one primary key. Any ideas?