|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor | +--edu.wpi.cs.dsrg.xmldb.xat.component.operatorexec.ExecuteVisitor
The ExecuteVisitor class is part of the visitor pattern that is used here to perform the execution of opertors in an XAT tree.
Constructor Summary | |
ExecuteVisitor()
Constructor. |
|
ExecuteVisitor(java.lang.String db,
java.lang.String username,
java.lang.String password)
Assigns database connection, user name, and a passward. |
Method Summary | |
java.lang.Object |
dispatch()
Used to implement a visitor pattern. |
java.lang.Object |
dispatch(java.lang.Object obj)
Used to implement a visitor pattern. |
java.lang.Object |
dispatch(java.lang.Object obj1,
java.lang.Object obj2)
Used to implement a visitor pattern. |
XATTable |
execute(XATTree xtree)
Constructor, visits a tree. |
XATTable |
execute(XATTree xtree,
XATTable input)
Executes a tree with a given input. |
boolean |
isAbort()
Gets Abort Info. |
boolean |
isDebug()
Gets debug info. |
boolean |
isKeepClone()
System environment to test if we want to keep a clone of XATTable or not. |
boolean |
isShowTable()
System environment from testing. |
protected edu.wpi.cs.dsrg.xmldb.xat.component.operatorexec.ExecuteVisitor.ColumnRef |
lookupColumn(XATNode xnode,
java.lang.String colname)
|
protected XATTable |
nest(java.lang.String col,
XATTable table)
Creates collections for the values of nested column. |
java.lang.Object |
visit(Aggregate agg)
Execution for the Aggregate operator, part of the visitor pattern. |
java.lang.Object |
visit(CartesianProduct cp)
|
void |
visit(Composer comp)
Execution for the Composer operator, part of the visitor pattern. |
java.lang.Object |
visit(Difference diff)
Execution for the Difference operator, part of the visitor pattern. |
java.lang.Object |
visit(Distinct d)
|
java.lang.Object |
visit(Expose exp)
Execution for the Expose operator, part of the visitor pattern. |
java.lang.Object |
visit(FOR forop)
|
java.lang.Object |
visit(Function func)
Execution for the Function operator, part of the visitor pattern. |
java.lang.Object |
visit(GroupBy gb)
Execution for the GroupBy operator, part of the visitor pattern. |
java.lang.Object |
visit(Intersection inter)
Execution for the Intersection operator, part of the visitor pattern. |
java.lang.Object |
visit(LeftOuterJoin loj)
Execution for the LeftOuterJoin operator, part of the visitor pattern. |
java.lang.Object |
visit(LeftSemiJoin lsj)
|
java.lang.Object |
visit(Merge merIm)
|
java.lang.Object |
visit(NameColumn nc)
Execution for the NameColumn operator, part of the visitor pattern. |
java.lang.Object |
visit(NavCollection n)
Execution for the NavCollection operator, part of the visitor pattern. |
java.lang.Object |
visit(NavUnnest n)
Execution for the NavUnnest operator, part of the visitor pattern. |
java.lang.Object |
visit(java.lang.Object object)
Used to implement the visitor pattern. |
java.lang.Object |
visit(OrderBy ob)
Execution for the OrderBy operator, part of the visitor pattern. |
java.lang.Object |
visit(OuterUnion ou)
|
java.lang.Object |
visit(Project p)
Execution for the Project operator, part of the visitor pattern. |
java.lang.Object |
visit(RightOuterJoin roj)
Execution for the RightOuterJoin operator, part of the visitor pattern. |
java.lang.Object |
visit(RightSemiJoin rsj)
Execution for the RightSemiJoin operator, part of the visitor pattern. |
java.lang.Object |
visit(Select s)
Execution for the Select operator, part of the visitor pattern. |
java.lang.Object |
visit(Source s)
|
void |
visit(SQLStmt sqlstmt)
|
java.lang.Object |
visit(Tagger t)
Execution for the Tagger operator, part of the visitor pattern. |
java.lang.Object |
visit(ThetaJoin tj)
Execution for the ThetaJoin operator, part of the visitor pattern. |
java.lang.Object |
visit(Union u)
Execution for the Union operator, part of the visitor pattern. |
java.lang.Object |
visit(XATNode xnoObj)
|
java.lang.Object |
visit(XATTree tree)
|
java.lang.Object |
visit(XMLDifference xdiff)
Execution for the XMLDifference operator, part of the visitor pattern. |
java.lang.Object |
visit(XMLIntersection xintersect)
Execution for the XMLIntersection operator, part of the visitor pattern. |
java.lang.Object |
visit(XMLUnion xun)
Execution for the XMLUnion operator, part of the visitor pattern. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor |
getAncestors,
getMethod,
visit |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ExecuteVisitor()
XATNode
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodepublic ExecuteVisitor(java.lang.String db, java.lang.String username, java.lang.String password)
db
- - database connection addressusername
- - database account usernamepassword
- - database account passwordMethod Detail |
public java.lang.Object dispatch()
public java.lang.Object dispatch(java.lang.Object obj)
obj
- Objectpublic java.lang.Object dispatch(java.lang.Object obj1, java.lang.Object obj2)
obj1
- Objectobj2
- Objectpublic XATTable execute(XATTree xtree)
xtree
- tree containing differnet XAT nodespublic XATTable execute(XATTree xtree, XATTable input)
xtree
- tree containing a mix of SQL and XML nodesinput
- XATTable is the input XAT table.public boolean isAbort()
public boolean isDebug()
public boolean isKeepClone()
public boolean isShowTable()
protected edu.wpi.cs.dsrg.xmldb.xat.component.operatorexec.ExecuteVisitor.ColumnRef lookupColumn(XATNode xnode, java.lang.String colname)
protected XATTable nest(java.lang.String col, XATTable table)
col
- Stringtable
- XATTablepublic java.lang.Object visit(Expose exp) throws ExecutionInvalidXATTreeException
exp
- is the Expose opertor.public java.lang.Object visit(FOR forop)
public java.lang.Object visit(Function func)
func
- is the Function opertor.public java.lang.Object visit(Merge merIm) throws XATNodeDoesNotExistException, XATTableTupleNoMatchException
public java.lang.Object visit(NameColumn nc) throws ExecutionInvalidXATTreeException
NameColumn
- is the NameColumn opertor.public java.lang.Object visit(Source s)
public void visit(SQLStmt sqlstmt)
public java.lang.Object visit(CartesianProduct cp) throws XATNodeDoesNotExistException
public java.lang.Object visit(Difference diff) throws XATTableSchemaNoMatchException
diff
- is the Difference opertor.public java.lang.Object visit(Distinct d)
public java.lang.Object visit(GroupBy gb) throws ExecutionInvalidXATTreeException
gb
- is the GroupBy opertor.public java.lang.Object visit(Intersection inter) throws XATTableSchemaNoMatchException
inter
- is the Intersection opertor.public java.lang.Object visit(LeftOuterJoin loj) throws ExecutionInvalidXATTreeException
loj
- is the LeftOuterJoin opertor.public java.lang.Object visit(LeftSemiJoin lsj)
public java.lang.Object visit(OrderBy ob) throws XATNodeDoesNotExistException
ob
- is the OrderBy opertor.public java.lang.Object visit(OuterUnion ou) throws XATNodeDoesNotExistException
public java.lang.Object visit(Project p) throws XATNodeDoesNotExistException
p
- is the Project opertor.public java.lang.Object visit(RightOuterJoin roj) throws XATNodeDoesNotExistException
roj
- is the RightOuterJoin opertor.LeftOuterJoin
public java.lang.Object visit(RightSemiJoin rsj) throws XATNodeDoesNotExistException
rsj
- is the RightSemiJoin opertor.LeftSemiJoin
public java.lang.Object visit(Select s) throws XATNodeDoesNotExistException
s
- is the Select opertor.public java.lang.Object visit(ThetaJoin tj) throws XATNodeDoesNotExistException
tj
- is the ThetaJoin opertor.public java.lang.Object visit(Union u) throws XATNodeDoesNotExistException, XATTableSchemaNoMatchException
u
- is the Union opertor.public java.lang.Object visit(Aggregate agg)
agg
- is the Aggregate opertor.public void visit(Composer comp)
comp
- is the Composer opertor.public java.lang.Object visit(NavCollection n) throws ExecutionInvalidXATTreeException
n
- is the NavCollection opertor.public java.lang.Object visit(NavUnnest n) throws ExecutionInvalidXATTreeException
n
- is the NavUnnest opertor.public java.lang.Object visit(Tagger t)
t
- is the Tagger opertor.public java.lang.Object visit(XMLDifference xdiff) throws XATNodeDoesNotExistException, XATTableSchemaNoMatchException
xdiff
- is the XMLDifference opertor.public java.lang.Object visit(XMLIntersection xintersect) throws XATNodeDoesNotExistException, XATTableSchemaNoMatchException
xintersect
- is the XMLIntersection opertor.public java.lang.Object visit(XMLUnion xun) throws XATNodeDoesNotExistException
xun
- is the XMLUnion opertor.public java.lang.Object visit(XATTree tree)
public java.lang.Object visit(XATNode xnoObj)
public java.lang.Object visit(java.lang.Object object)
object
- Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |