net.ontopia.topicmaps.query.parser
Class ModificationFunctionStatement

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

public abstract class ModificationFunctionStatement
extends ModificationStatement

INTERNAL: Represents an UPDATE or DELETE statement, since these are the ones that can have functions. Created so the parser can handle both cases with the same code.


Field Summary
protected  java.lang.String funcname
           
protected static java.util.Map<java.lang.String,net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIF> functions
           
 
Fields inherited from class net.ontopia.topicmaps.query.parser.ModificationStatement
litlist, query
 
Fields inherited from class net.ontopia.topicmaps.query.parser.TologStatement
options
 
Constructor Summary
ModificationFunctionStatement()
           
 
Method Summary
protected  int doFunctionUpdates(QueryMatches matches)
           
protected abstract  int doLitListDeletes(boolean strict, java.util.Map arguments)
           
 int doStaticUpdates(TopicMapIF topicmap, java.util.Map arguments)
           
 java.lang.String getFunction()
           
protected static net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIF makeFunction(java.lang.String name)
           
 void setFunction(java.lang.String name)
           
protected  java.lang.String toStringFunction()
           
 
Methods inherited from class net.ontopia.topicmaps.query.parser.ModificationStatement
addLit, close, doUpdates, getEmbeddedQuery, getIndex, getLitList, getValue, setClauseList, 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

funcname

protected java.lang.String funcname

functions

protected static java.util.Map<java.lang.String,net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIF> functions
Constructor Detail

ModificationFunctionStatement

public ModificationFunctionStatement()
Method Detail

setFunction

public void setFunction(java.lang.String name)

getFunction

public java.lang.String getFunction()

toStringFunction

protected java.lang.String toStringFunction()

doStaticUpdates

public int doStaticUpdates(TopicMapIF topicmap,
                           java.util.Map arguments)
                    throws InvalidQueryException
Specified by:
doStaticUpdates in class ModificationStatement
Throws:
InvalidQueryException

doLitListDeletes

protected abstract int doLitListDeletes(boolean strict,
                                        java.util.Map arguments)
                                 throws InvalidQueryException
Throws:
InvalidQueryException

doFunctionUpdates

protected int doFunctionUpdates(QueryMatches matches)
                         throws InvalidQueryException
Throws:
InvalidQueryException

makeFunction

protected static net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIF makeFunction(java.lang.String name)
                                                                                                               throws InvalidQueryException
Throws:
InvalidQueryException


Copyright © 2000-2012 Ontopia.