cmu.survey.editor.manipulators
Class StackTable

java.lang.Object
  extended by cmu.survey.editor.manipulators.StackTable

public class StackTable
extends java.lang.Object


Nested Class Summary
static class StackTable.MultipleStackPattern
           
static class StackTable.RigidStackPattern
           
static interface StackTable.StackPattern
           
static class StackTable.StackPatternStub
           
static class StackTable.StartsWithStackPattern
           
 
Constructor Summary
StackTable()
           
 
Method Summary
 void addColumnToJustCopy(java.lang.String columnToCopy)
          Add a column to copy directly into every row -- do not stack this column, and do not ignore it.
 void addColumnToJustCopy(java.lang.String oldName, java.lang.String newName)
           
 void addPattern(StackTable.StackPattern stackPattern)
           
 Dialogs getDialogs()
           
 java.util.Vector<StackTable.StackPattern> getPatterns()
           
static void main(java.lang.String[] args)
           
 void reinitialize()
           
 java.lang.String stackInNewTable(TableStorage sqlStorage, DataTableModel oldTable, java.lang.String newTableName)
          Stack into a new table named newTableName.
 java.lang.String stackIntoTable(TableStorage sqlStorage, DataTableModel oldTable, DataTableModel newTable)
          Stack, appending to an existing table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTable

public StackTable()
Method Detail

getDialogs

public Dialogs getDialogs()

reinitialize

public void reinitialize()

addPattern

public void addPattern(StackTable.StackPattern stackPattern)

getPatterns

public java.util.Vector<StackTable.StackPattern> getPatterns()

addColumnToJustCopy

public void addColumnToJustCopy(java.lang.String columnToCopy)
Add a column to copy directly into every row -- do not stack this column, and do not ignore it.

Parameters:
columnToCopy -

addColumnToJustCopy

public void addColumnToJustCopy(java.lang.String oldName,
                                java.lang.String newName)

stackInNewTable

public java.lang.String stackInNewTable(TableStorage sqlStorage,
                                        DataTableModel oldTable,
                                        java.lang.String newTableName)
Stack into a new table named newTableName.

Parameters:
sqlStorage -
oldTable -
newTableName -
Returns:

stackIntoTable

public java.lang.String stackIntoTable(TableStorage sqlStorage,
                                       DataTableModel oldTable,
                                       DataTableModel newTable)
Stack, appending to an existing table.

Parameters:
sqlStorage -
oldTable -
newTable -
Returns:

main

public static final void main(java.lang.String[] args)