VariableOneToOneMapping mapping = (VariableOneToOneMapping)object;
Vector associations = mapping.getSourceToTargetQueryKeyFieldAssociations();
Vector queryKeyReferences = new Vector(associations.size());
for (int index = 0; index < associations.size(); index++) {
Association association = (Association)associations.get(index);
QueryKeyReference reference = new QueryKeyReference();
reference.setKey(new DatabaseField((String)association.getKey()));
reference.setValue(association.getValue());
queryKeyReferences.add(reference);
}
return queryKeyReferences;
}