edu.wpi.cs.dsrg.xmldb.xat.common.operator
Interface ColumnNameList

All Known Subinterfaces:
FOR, GroupBy, OrderBy, Project, XMLUnion
All Known Implementing Classes:
ColumnNameListImp

public interface ColumnNameList
extends Visitable

An Interface to represent a columns Name List

Since:
1.0

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..
 void updateColumnName(java.lang.String oldname, java.lang.String newname)
          Updates a specific column name in the list with a new name.
 

Method Detail

addColumnName

public void addColumnName(java.lang.String newCol)
Appends a new column name to the end of column names list.
Parameters:
newCol - is column name.
Since:
1.0

deleteColumnName

public void deleteColumnName(java.lang.String oldName)
Deletes a column name from the list
Parameters:
oldName - is column name
Since:
1.0

getColumnNames

public java.lang.String[] getColumnNames()
Returns a list of column names.
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.
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.
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..
Parameters:
newName - is column name.
position - is insertion poistion.
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.
Parameters:
oldname - is the old column name.
newname - is new column name.
Since:
1.0