edu.wpi.cs.dsrg.xmldb.xat.common.operator
Class ColumnNameListImp
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.ColumnNameListImp
- Direct Known Subclasses:
- FORImp, GroupByImp, OrderByImp, ProjectImp, XMLUnionImp
- public abstract class ColumnNameListImp
- extends XATOperatorImp
- implements ColumnNameList
Implementation for the Interface that represents column Names List
- Since:
- 1.0
- See Also:
- Serialized Form
Field Summary |
protected java.util.Vector |
vColNames
|
Method Summary |
void |
addColumnName(java.lang.String newCol)
Appends a new column name to the end of column names list. |
void |
deleteColumnName(java.lang.String oldName)
Deletes a column name from the list |
java.lang.String[] |
getColumnNames()
Returns a list of column names. |
void |
insertColumnName(java.lang.String newName,
int position)
Inserts a column name in the list. |
void |
setColumnName(java.lang.String newName,
int position)
Sets a column name in the certain position in the list. |
void |
setColumnNames(java.lang.String[] columns)
Sets a list of column names to be projected out.. |
java.lang.String |
toString()
returns a string representation of column names list. |
void |
updateColumnName(java.lang.String oldname,
java.lang.String newname)
Updates a specific column name in the list with a new name. |
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 |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
vColNames
protected java.util.Vector vColNames
ColumnNameListImp
public ColumnNameListImp(XATNode node)
- Assigns node to current operator.
- Parameters:
node
- is an XAT node- Since:
- 1.0
addColumnName
public void addColumnName(java.lang.String newCol)
- Appends a new column name to the end of column names list.
- Specified by:
- addColumnName in interface ColumnNameList
- Parameters:
newCol
- is column name.- Since:
- 1.0
deleteColumnName
public void deleteColumnName(java.lang.String oldName)
- Deletes a column name from the list
- Specified by:
- deleteColumnName in interface ColumnNameList
- Parameters:
oldName
- is column name- Since:
- 1.0
getColumnNames
public java.lang.String[] getColumnNames()
- Returns a list of column names.
- Specified by:
- getColumnNames in interface ColumnNameList
- Returns:
- a list column names.
- Since:
- 1.0
insertColumnName
public void insertColumnName(java.lang.String newName,
int position)
- Inserts a column name in the list.
- Specified by:
- insertColumnName in interface ColumnNameList
- Parameters:
newName
- is column name.position
- is insertion poistion.- Since:
- 1.0
setColumnName
public void setColumnName(java.lang.String newName,
int position)
- Sets a column name in the certain position in the list.
- Specified by:
- setColumnName in interface ColumnNameList
- Parameters:
newName
- is column name.position
- is insertion poistion.- Since:
- 1.0
setColumnNames
public void setColumnNames(java.lang.String[] columns)
- Sets a list of column names to be projected out..
- Specified by:
- setColumnNames in interface ColumnNameList
- Parameters:
newName
- is column name.position
- is insertion poistion.- Since:
- 1.0
toString
public java.lang.String toString()
- returns a string representation of column names list.
- Overrides:
- toString in class XATOperatorImp
- Returns:
- a string representation of column names list.
- Since:
- 1.0
updateColumnName
public void updateColumnName(java.lang.String oldname,
java.lang.String newname)
- Updates a specific column name in the list with a new name.
- Specified by:
- updateColumnName in interface ColumnNameList
- Parameters:
oldname
- is the old column name.newname
- is new column name.- Since:
- 1.0