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 String
funcname
protected 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 int
doFunctionUpdates(QueryMatches matches)
protected abstract int
doLitListDeletes(boolean strict, Map arguments)
int
doStaticUpdates(TopicMapIF topicmap, Map arguments)
String
getFunction()
protected static net.ontopia.topicmaps.query.parser.ModificationFunctionStatement.ModificationFunctionIF
makeFunction(String name)
void
setFunction(String name)
protected 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
-
-
-
-
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:
doStaticUpdates
in 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
-
-