net.ontopia.topicmaps.query.parser
Class ModificationStatement

java.lang.Object
  extended by net.ontopia.topicmaps.query.parser.TologStatement
      extended by net.ontopia.topicmaps.query.parser.ModificationStatement
Direct Known Subclasses:
InsertStatement, MergeStatement, ModificationFunctionStatement

public abstract class ModificationStatement
extends TologStatement

INTERNAL: Common abstract superclass for all tolog updates statements (INSERT, DELETE, MERGE, UPDATE).


Field Summary
protected  java.util.List litlist
           
protected  TologQuery query
           
 
Fields inherited from class net.ontopia.topicmaps.query.parser.TologStatement
options
 
Constructor Summary
ModificationStatement()
           
 
Method Summary
 void addLit(java.lang.Object lit)
           
 void close()
           
abstract  int doStaticUpdates(TopicMapIF topicmap, java.util.Map arguments)
           
abstract  int doUpdates(QueryMatches matches)
           
 TologQuery getEmbeddedQuery()
           
protected static int getIndex(java.lang.Object arg, QueryMatches matches)
           
 java.util.List getLitList()
           
protected static java.lang.Object getValue(java.lang.Object obj, java.util.Map arguments)
           
 void setClauseList(java.util.List clauses, TologOptions options)
           
protected  java.lang.String toStringLitlist()
           
 
Methods inherited from class net.ontopia.topicmaps.query.parser.TologStatement
getOptions, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

litlist

protected java.util.List litlist

query

protected TologQuery query
Constructor Detail

ModificationStatement

public ModificationStatement()
Method Detail

addLit

public void addLit(java.lang.Object lit)

getLitList

public java.util.List getLitList()

setClauseList

public void setClauseList(java.util.List clauses,
                          TologOptions options)
                   throws AntlrWrapException
Throws:
AntlrWrapException

getEmbeddedQuery

public TologQuery getEmbeddedQuery()

close

public void close()
           throws InvalidQueryException
Specified by:
close in class TologStatement
Throws:
InvalidQueryException

doStaticUpdates

public abstract int doStaticUpdates(TopicMapIF topicmap,
                                    java.util.Map arguments)
                             throws InvalidQueryException
Throws:
InvalidQueryException

doUpdates

public abstract int doUpdates(QueryMatches matches)
                       throws InvalidQueryException
Throws:
InvalidQueryException

toStringLitlist

protected java.lang.String toStringLitlist()

getIndex

protected static int getIndex(java.lang.Object arg,
                              QueryMatches matches)

getValue

protected static java.lang.Object getValue(java.lang.Object obj,
                                           java.util.Map arguments)
                                    throws InvalidQueryException
Throws:
InvalidQueryException


Copyright © 2000-2012 Ontopia.