{
HashMap primaryKeysByName = new HashMap();
if (tableExistsInDatastore(conn))
{
StoreSchemaHandler handler = storeMgr.getSchemaHandler();
RDBMSTablePKInfo tablePkInfo = (RDBMSTablePKInfo)handler.getSchemaData(conn, "primary-keys",
new Object[] {this});
IdentifierFactory idFactory = storeMgr.getIdentifierFactory();
Iterator pkColsIter = tablePkInfo.getChildren().iterator();
while (pkColsIter.hasNext())
{
PrimaryKeyInfo pkInfo = (PrimaryKeyInfo)pkColsIter.next();
String pkName = (String)pkInfo.getProperty("pk_name");
DatastoreIdentifier pkIdentifier;