public static final PropertyMap pmap(Root root, OID oid) { com.redhat.persistence.metadata.ObjectType type = type(root, oid.getObjectType()); PropertyMap result = new PropertyMap(type); for (Iterator it = oid.getProperties().entrySet().iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry) it.next(); result.put(type.getProperty((String) me.getKey()), me.getValue()); } return result; }
public static final ObjectType fromType( MetadataRoot root, com.redhat.persistence.metadata.ObjectType type) { return root.getObjectType(type.getQualifiedName()); }