|
|||||||||
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.operator.XATPropertiesImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.UpdateOperatorImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.InsertImp
Implementation for the Insert interface.
Field Summary | |
protected java.lang.String[] |
funcArgs
vector containing the arguments of the function |
protected int |
OrderPredicate
indication of the order .. |
protected java.lang.String |
PCDATAContent
PCDATAcontent to for inserting into mixed type elements |
protected java.lang.String |
relativeVariable
relativeVariable is the other variable in ordered INSERT as in INSERT $x BEFORE/AFTER $y(relative variable) |
protected int |
updateFunction
integer indicating update function name (new_attribute() OR new_ref() ) |
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.UpdateOperatorImp |
context,
variable |
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp |
columnsFiltered,
outputColumnName,
xnodOwner,
xtabOutput |
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
stats,
statsPresent |
Fields inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.Insert |
AFTER,
BEFORE,
NEW_ATTRIBUTE,
NEW_REF,
UNKNOWN |
Constructor Summary | |
InsertImp(XATNode xnodInit)
Assigns a node to this operator . |
|
InsertImp(XATNode xnodInit,
java.lang.String contextInit)
INSERT In such case on context will be set and the contents will be retrieved from the right child of the insert node |
|
InsertImp(XATNode xnodInit,
java.lang.String contextInit,
int updateFunctionInit,
java.lang.String[] params)
INSERT new_attribute()/new_ref() |
|
InsertImp(XATNode xnodInit,
java.lang.String contextInit,
java.lang.String variableInit)
INSERT $x |
|
InsertImp(XATNode xnodInit,
java.lang.String contextInit,
java.lang.String relativeVariableInit,
int order)
INSERT BEFORE/AFTER $y |
|
InsertImp(XATNode xnodInit,
java.lang.String contextInit,
java.lang.String variableInit,
java.lang.String relativeVariableInit,
int order)
INSERT $x BEFORE/AFTER $y |
Method Summary | |
java.lang.String[] |
getFuncArgs()
Gets the function arguments |
int |
getOrderPredicate()
Gets the order predicate within the operator |
java.lang.String |
getPCDATAContent()
Gets the PCDATA content of the operator |
java.lang.String |
getRelativeVariable()
Gets the relative Variable in the insert statement. |
XATTable |
getRight()
Gets the right (secondary) data source |
int |
getUpdateFunction()
Gets the value of updateFunction. |
void |
setFuncArgs(java.lang.String[] funArgs)
Sets the function arguments value. |
void |
setOrderPredicate(int newOrder)
Sets the order predicate of the query (BEFORE/AFTER) |
void |
setPCDATAContent(java.lang.String pcdata)
Sets the PCDATA content to be inserted |
void |
setRelativeVariable(java.lang.String relVar)
Sets the relative Variable in the insert statement |
void |
setUpdateFunction(int updateFunc)
Sets the updateFunction to value that represents type of update Function. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.UpdateOperatorImp |
getContext,
getVariable,
setContext,
setVariable |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp |
clone,
getColumnsFiltered,
getNode,
getOutput,
getOutputColumnName,
getOutputDataSource,
getOutputDataSources,
getPrimaryDataSource,
getPrimarySource,
setDefaultProperties,
setNode,
setOutput,
setOutputColumnName,
setProperty,
toString |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
addStatistic,
compareTo,
getStatistics,
isValidStatistic,
setDefaultStatistics |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp |
addProperty,
getProperties,
getProperty,
isValidPropertyName,
setNewPropertyValue |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String relativeVariable
protected java.lang.String PCDATAContent
protected int OrderPredicate
protected int updateFunction
protected java.lang.String[] funcArgs
Constructor Detail |
public InsertImp(XATNode xnodInit)
XATNode
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodepublic InsertImp(XATNode xnodInit, java.lang.String contextInit)
xnodInit
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodecontextInit
- is the contextpublic InsertImp(XATNode xnodInit, java.lang.String contextInit, java.lang.String relativeVariableInit, int order)
xnodInit
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodecontextInit
- is the contextrelativeVariableInit
- Stringorder
- intpublic InsertImp(XATNode xnodInit, java.lang.String contextInit, java.lang.String variableInit)
xnodInit
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodecontextInit
- is the contextrelativeVariableInit
- Stringorder
- intpublic InsertImp(XATNode xnodInit, java.lang.String contextInit, java.lang.String variableInit, java.lang.String relativeVariableInit, int order)
xnodInit
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodecontextInit
- is the contextrelativeVariableInit
- Stringorder
- intpublic InsertImp(XATNode xnodInit, java.lang.String contextInit, int updateFunctionInit, java.lang.String[] params)
xnodInit
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodecontextInit
- is the contextrelativeVariableInit
- Stringorder
- intMethod Detail |
public int getOrderPredicate()
public java.lang.String getPCDATAContent()
public XATTable getRight() throws XATNodeDoesNotExistException
public java.lang.String getRelativeVariable()
public int getUpdateFunction()
public java.lang.String[] getFuncArgs()
public void setUpdateFunction(int updateFunc)
updateFunc
- intpublic void setOrderPredicate(int newOrder)
newOrder
- intpublic void setPCDATAContent(java.lang.String pcdata)
pcdata
- Stringpublic void setRelativeVariable(java.lang.String relVar)
relVar
- Stringpublic void setFuncArgs(java.lang.String[] funArgs)
funArgs
- is an array String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |