]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/utils/CommonDBUtils.java
CommonDBUtils possibleRelatedString/Integer were not "possible"
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / utils / CommonDBUtils.java
index 1bcfb0a8a27e614400f9d6d0abc64d6bab613cc4..ed09abb54cf7266afd95d6c1dfd158164bf80b24 100644 (file)
@@ -33,11 +33,11 @@ public class CommonDBUtils {
        }
        
        public static String possibleRelatedString(ReadGraph graph, Resource subject, Resource relation) throws DatabaseException {
-               return graph.getRelatedValue(subject, relation, Bindings.STRING);
+               return graph.getPossibleRelatedValue(subject, relation, Bindings.STRING);
        }
 
        public static Integer possibleRelatedInteger(ReadGraph graph, Resource subject, Resource relation) throws DatabaseException {
-               return graph.getRelatedValue(subject, relation, Bindings.INTEGER);
+               return graph.getPossibleRelatedValue(subject, relation, Bindings.INTEGER);
        }
 
     public static Resource getPossibleOwner(ReadGraph graph, Resource resource) throws DatabaseException {