|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.editor.data.sql.ImportTableToTableStorage
public class ImportTableToTableStorage
Constructor Summary | |
---|---|
ImportTableToTableStorage(TableStorage tableStorage)
You can pass in null, but then you'll only be able to call appendToTable, and this won't be able to make any new tables. |
Method Summary | |
---|---|
boolean |
appendToTable(DataTableModel appendTableModel,
TripleTableModel tableModel)
|
boolean |
appendToTable(DataTableModel tableToAppendTo,
java.util.Vector<java.lang.String> columnNames,
java.util.Vector<java.lang.Class> columnTypes,
java.util.Vector<java.util.Vector<java.lang.Object>> rows)
Warning: This will guess at a primary key column -- i.e. if there's only one possible primary key column. |
java.lang.String |
getLastError()
|
java.util.Vector<java.lang.Integer> |
getPrimaryColumnIndexGuess(TripleTableModel tableModel)
Returns all possible columns that could be the auto-incremented/primary key column -- i.e. columns that have integers that are all unique. |
DataTableModel |
importTable(java.lang.String tableName,
java.util.List<java.lang.String> columnNames,
java.util.List<java.lang.Class> columnTypes,
java.util.List<? extends java.util.List<? extends java.lang.Object>> rows,
java.lang.Integer primaryKeyColumn)
|
DataTableModel |
importTable(java.lang.String tableName,
TripleTableModel tableModel)
Warning: This will guess at a primary key column -- i.e. if there's only one possible primary key column. |
DataTableModel |
importTable(java.lang.String tableName,
TripleTableModel tableModel,
java.lang.Integer primaryKeyColumn)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImportTableToTableStorage(TableStorage tableStorage)
tableStorage
- Method Detail |
---|
public DataTableModel importTable(java.lang.String tableName, TripleTableModel tableModel)
tableName
- The name of the table to import.tableModel
- The Triple containing the data of the table (column names,
column types, and row data).
public DataTableModel importTable(java.lang.String tableName, TripleTableModel tableModel, java.lang.Integer primaryKeyColumn)
public boolean appendToTable(DataTableModel appendTableModel, TripleTableModel tableModel)
public boolean appendToTable(DataTableModel tableToAppendTo, java.util.Vector<java.lang.String> columnNames, java.util.Vector<java.lang.Class> columnTypes, java.util.Vector<java.util.Vector<java.lang.Object>> rows)
tableName
- columnNames
- columnTypes
- rows
-
public DataTableModel importTable(java.lang.String tableName, java.util.List<java.lang.String> columnNames, java.util.List<java.lang.Class> columnTypes, java.util.List<? extends java.util.List<? extends java.lang.Object>> rows, java.lang.Integer primaryKeyColumn)
public java.util.Vector<java.lang.Integer> getPrimaryColumnIndexGuess(TripleTableModel tableModel)
rows
-
public static final void main(java.lang.String[] args)
public java.lang.String getLastError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |