// If we have persistable keys then load them. The keys query will pull in the key fetch plan
// so this instantiates them in the cache
if (!store.keysAreEmbedded() && !store.keysAreSerialised())
{
// Retrieve the PersistenceCapable keys
SetStore keystore = store.keySetStore();
Iterator keyIter = keystore.iterator(ownerOP);
while (keyIter.hasNext())
{
keys.add(keyIter.next());
}
}
// If we have persistable values then load them. The values query will pull in the value fetch plan
// so this instantiates them in the cache
java.util.HashSet values = new java.util.HashSet();
if (!store.valuesAreEmbedded() && !store.valuesAreSerialised())
{
// Retrieve the PersistenceCapable values
SetStore valuestore = store.valueSetStore();
Iterator valueIter = valuestore.iterator(ownerOP);
while (valueIter.hasNext())
{
values.add(valueIter.next());
}
}
// Retrieve the entries (key-value pairs so we can associate them)
// TODO Ultimately would like to just call this, but the entry query can omit the inheritance level
// of a key or value
SetStore entries = store.entrySetStore();
Iterator entryIter = entries.iterator(ownerOP);
while (entryIter.hasNext())
{
Map.Entry entry = (Map.Entry)entryIter.next();
Object key = entry.getKey();
Object value = entry.getValue();