org.activemath.content.query
Class DBCaller

java.lang.Object
  extended by org.activemath.content.query.DBCaller
Direct Known Subclasses:
MBaseCaller, UserModelCaller

public abstract class DBCaller
extends Object


Constructor Summary
DBCaller()
           
 
Method Summary
protected  DBQuery optimizeDBQuery(DBQuery query)
          Overide this method to offer a DB-specific optimization.
abstract  List queryAttr(String item, String attr)
           
abstract  Set queryClass(String item)
          Give back the set of the class labels of the given item.
abstract  List queryRelation(String item, String rel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCaller

public DBCaller()
Method Detail

optimizeDBQuery

protected DBQuery optimizeDBQuery(DBQuery query)
Overide this method to offer a DB-specific optimization.


queryClass

public abstract Set queryClass(String item)
                        throws NoSuchItemException
Give back the set of the class labels of the given item. An empty set possible?

Parameters:
item - The target item.
Throws:
NoSuchItemException

queryRelation

public abstract List queryRelation(String item,
                                   String rel)
                            throws UnsupportedOntologyQueryException,
                                   NoSuchItemException
Throws:
UnsupportedOntologyQueryException
NoSuchItemException

queryAttr

public abstract List queryAttr(String item,
                               String attr)
                        throws UnsupportedOntologyQueryException,
                               NoSuchItemException
Throws:
UnsupportedOntologyQueryException
NoSuchItemException