]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/service/StatementSupport.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / StatementSupport.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.db.service;
13
14 import org.simantics.db.Resource;
15 import org.simantics.db.Statement;
16
17 public interface StatementSupport {
18         Statement build(Resource s, Resource p, Resource o);
19         boolean subjectEquals(Statement stm, Resource r);
20         boolean predicateEquals(Statement stm, Resource r);
21         boolean objectEquals(Statement stm, Resource r);
22         boolean subjectAsserted(Statement stm);
23         boolean predicateAsserted(Statement stm);
24         boolean objectAsserted(Statement stm);
25         boolean subjectPersistent(Statement stm);
26         boolean predicatePersistent(Statement stm);
27         boolean objectPersistent(Statement stm);
28         boolean isList(Statement stm);
29         boolean isTag(Statement stm);
30 }