1 package fi.vtt.simantics.procore.internal;
3 import org.simantics.db.Resource;
4 import org.simantics.db.Statement;
5 import org.simantics.db.common.StandardStatement;
6 import org.simantics.db.service.StatementSupport;
8 public class StatementSupportImpl implements StatementSupport {
10 final private SessionImplSocket session;
12 StatementSupportImpl(SessionImplSocket session) {
13 this.session = session;
17 public Statement build(Resource s, Resource p, Resource o) {
18 return new StandardStatement(s, p, o);
22 public boolean isList(Statement stm) {
23 if(stm instanceof DirectStatementImpl) {
24 DirectStatementImpl i = (DirectStatementImpl)stm;
27 throw new Error("Not supported");
31 public boolean isTag(Statement stm) {
32 throw new Error("Not supported");
36 public boolean objectAsserted(Statement stm) {
37 throw new Error("Not supported");
41 public boolean objectEquals(Statement stm, Resource r) {
42 throw new Error("Not supported");
46 public boolean subjectPersistent(Statement stm) {
47 throw new Error("Not supported");
51 public boolean objectPersistent(Statement stm) {
52 throw new Error("Not supported");
56 public boolean predicateAsserted(Statement stm) {
57 throw new Error("Not supported");
61 public boolean predicateEquals(Statement stm, Resource r) {
62 throw new Error("Not supported");
66 public boolean predicatePersistent(Statement stm) {
67 throw new Error("Not supported");
71 public boolean subjectAsserted(Statement stm) {
72 throw new Error("Not supported");
76 public boolean subjectEquals(Statement stm, Resource r) {
77 throw new Error("Not supported");