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 List
litlist
protected TologQuery
query
-
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 void
addLit(Object lit)
void
close()
abstract int
doStaticUpdates(TopicMapIF topicmap, Map arguments)
abstract int
doUpdates(QueryMatches matches)
TologQuery
getEmbeddedQuery()
protected static int
getIndex(Object arg, QueryMatches matches)
List
getLitList()
protected static Object
getValue(Object obj, Map arguments)
void
setClauseList(List clauses, TologOptions options)
protected String
toStringLitlist()
-
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:
close
in 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
-
-