Class ModificationFunctionStatement
- java.lang.Object
-
- net.ontopia.topicmaps.query.parser.TologStatement
-
- net.ontopia.topicmaps.query.parser.ModificationStatement
-
- 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
Fields Modifier and Type Field Description protected Stringfuncnameprotected static Map<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
Constructors Constructor Description ModificationFunctionStatement()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intdoFunctionUpdates(QueryMatches matches)protected abstract intdoLitListDeletes(boolean strict, Map arguments)intdoStaticUpdates(TopicMapIF topicmap, Map arguments)StringgetFunction()protected static net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIFmakeFunction(String name)voidsetFunction(String name)protected StringtoStringFunction()-
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
-
-
-
-
Method Detail
-
setFunction
public void setFunction(String name)
-
getFunction
public String getFunction()
-
toStringFunction
protected String toStringFunction()
-
doStaticUpdates
public int doStaticUpdates(TopicMapIF topicmap, Map arguments) throws InvalidQueryException
- Specified by:
doStaticUpdatesin classModificationStatement- Throws:
InvalidQueryException
-
doLitListDeletes
protected abstract int doLitListDeletes(boolean strict, 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(String name) throws InvalidQueryException
- Throws:
InvalidQueryException
-
-