cmu.survey.data
Class TableFormat.ColumnFormatRenamed

java.lang.Object
  extended by cmu.survey.data.TableFormat.ColumnFormatStub
      extended by cmu.survey.data.TableFormat.ColumnFormatRenamed
All Implemented Interfaces:
TableFormat.ColumnFormat, TableFormat.ColumnFormatKnowHowToCreate
Enclosing interface:
TableFormat

public static class TableFormat.ColumnFormatRenamed
extends TableFormat.ColumnFormatStub
implements TableFormat.ColumnFormatKnowHowToCreate

This assumes that neither the old nor new columns are primary keys, and that the old and new columns are the same type. You must program that into a new class if they are.


Field Summary
 
Fields inherited from class cmu.survey.data.TableFormat.ColumnFormatStub
allowsNull, defaultValue, name, type
 
Constructor Summary
TableFormat.ColumnFormatRenamed(java.lang.String columnName, java.lang.Class type, java.lang.String oldColumnName)
           
 
Method Summary
 boolean createIt(DataTableModel dataTableModel)
           
 
Methods inherited from class cmu.survey.data.TableFormat.ColumnFormatStub
getAllowsNull, getDefaultValue, getName, getType, setAllowsNull, setDefaultValue, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cmu.survey.data.TableFormat.ColumnFormatKnowHowToCreate
getAllowsNull, getDefaultValue, getName, getType
 

Constructor Detail

TableFormat.ColumnFormatRenamed

public TableFormat.ColumnFormatRenamed(java.lang.String columnName,
                                       java.lang.Class type,
                                       java.lang.String oldColumnName)
Method Detail

createIt

public boolean createIt(DataTableModel dataTableModel)
Specified by:
createIt in interface TableFormat.ColumnFormatKnowHowToCreate