edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator
Interface Insert

All Known Implementing Classes:
InsertImp

public interface Insert
extends UpdateOperator

The Insert interface.

Since:
1.0

Field Summary
static int AFTER
           
static int BEFORE
           
static int NEW_ATTRIBUTE
           
static int NEW_REF
           
static int UNKNOWN
           
 
Method Summary
 java.lang.String[] getFuncArgs()
           
 int getOrderPredicate()
          Gets the order predicate of the insert statement.
 java.lang.String getPCDATAContent()
          Gets the PCDATA content to be inserted.
 java.lang.String getRelativeVariable()
          Gets the Relative Variable value.
 XATTable getRight()
          Gets the element contents that should replace the original element
 int getUpdateFunction()
          Gets the Update Function.
 void setFuncArgs(java.lang.String[] funcArgs)
          Sets the function argument, eg.
 void setOrderPredicate(int orderPredicate)
          Sets the order predicate of the insert statement, eg.
 void setPCDATAContent(java.lang.String PCDATAContent)
          set the PCDATA content to be inserted
 void setRelativeVariable(java.lang.String relVar)
          set the Relative Variable value.
 void setUpdateFunction(int updateFunc)
          set the Update Function.
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.updateoperator.UpdateOperator
getContext, getVariable, setContext, setVariable
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperator
clone, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setNode, setOutput, setOutputColumnName
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObject
getStatistics, isValidStatistic
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATProperties
getProperties, getProperty, isValidPropertyName, setProperty
 

Field Detail

AFTER

public static final int AFTER

BEFORE

public static final int BEFORE

NEW_ATTRIBUTE

public static final int NEW_ATTRIBUTE

NEW_REF

public static final int NEW_REF

UNKNOWN

public static final int UNKNOWN
Method Detail

getFuncArgs

public java.lang.String[] getFuncArgs()

getOrderPredicate

public int getOrderPredicate()
Gets the order predicate of the insert statement.
Returns:
int
Since:
1.0

getPCDATAContent

public java.lang.String getPCDATAContent()
Gets the PCDATA content to be inserted.
Returns:
String
Since:
1.0

getRelativeVariable

public java.lang.String getRelativeVariable()
Gets the Relative Variable value.
Returns:
String
Since:
1.0

getRight

public XATTable getRight()
                  throws XATNodeDoesNotExistException
Gets the element contents that should replace the original element
Returns:
XATTAble containing columns representing the new element
Throws:
XATNodeDoesNotExistException -  
Since:
1.0

getUpdateFunction

public int getUpdateFunction()
Gets the Update Function.
Returns:
int
Since:
1.0

setFuncArgs

public void setFuncArgs(java.lang.String[] funcArgs)
Sets the function argument, eg. INSERT $a BEFORE|AFTER $b.
Parameters:
funcArgs - is an array of string for the arguments.
Since:
1.0

setOrderPredicate

public void setOrderPredicate(int orderPredicate)
Sets the order predicate of the insert statement, eg. INSERT $a BEFORE|AFTER $b
Parameters:
orderPredicate - int
Since:
1.0

setPCDATAContent

public void setPCDATAContent(java.lang.String PCDATAContent)
set the PCDATA content to be inserted
Parameters:
PCDATAContent - String
Since:
1.0

setRelativeVariable

public void setRelativeVariable(java.lang.String relVar)
set the Relative Variable value.
Parameters:
relVar - String
Since:
1.0

setUpdateFunction

public void setUpdateFunction(int updateFunc)
set the Update Function.
Parameters:
updateFunc - int
Since:
1.0