Class ModificationStatement
- java.lang.Object
-
- net.ontopia.topicmaps.query.parser.TologStatement
-
- 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
Fields Modifier and Type Field Description protected Listlitlistprotected TologQueryquery-
Fields inherited from class net.ontopia.topicmaps.query.parser.TologStatement
options
-
-
Constructor Summary
Constructors Constructor Description ModificationStatement()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddLit(Object lit)voidclose()abstract intdoStaticUpdates(TopicMapIF topicmap, Map arguments)abstract intdoUpdates(QueryMatches matches)TologQuerygetEmbeddedQuery()protected static intgetIndex(Object arg, QueryMatches matches)ListgetLitList()protected static ObjectgetValue(Object obj, Map arguments)voidsetClauseList(List clauses, TologOptions options)protected StringtoStringLitlist()-
Methods inherited from class net.ontopia.topicmaps.query.parser.TologStatement
getOptions, setOptions
-
-
-
-
Field Detail
-
litlist
protected List litlist
-
query
protected TologQuery query
-
-
Method Detail
-
addLit
public void addLit(Object lit)
-
getLitList
public List getLitList()
-
setClauseList
public void setClauseList(List clauses, TologOptions options) throws AntlrWrapException
- Throws:
AntlrWrapException
-
getEmbeddedQuery
public TologQuery getEmbeddedQuery()
-
close
public void close() throws InvalidQueryException- Specified by:
closein classTologStatement- Throws:
InvalidQueryException
-
doStaticUpdates
public abstract int doStaticUpdates(TopicMapIF topicmap, Map arguments) throws InvalidQueryException
- Throws:
InvalidQueryException
-
doUpdates
public abstract int doUpdates(QueryMatches matches) throws InvalidQueryException
- Throws:
InvalidQueryException
-
toStringLitlist
protected String toStringLitlist()
-
getIndex
protected static int getIndex(Object arg, QueryMatches matches)
-
getValue
protected static Object getValue(Object obj, Map arguments) throws InvalidQueryException
- Throws:
InvalidQueryException
-
-