public final class TemporaryTable extends DefaultDataTable
For example, an aggregate function generates data would be put into a TemporaryTable.
row_count
DEBUG_QUERY
Constructor and Description |
---|
TemporaryTable(Database database,
String name,
DataTableColumnDef[] fields)
The Constructor.
|
TemporaryTable(DefaultDataTable based_on)
Constructs this TemporaryTable based on the given Table object.
|
TemporaryTable(String name,
Table based_on)
Constructs this TemporaryTable based on the fields from the given
Table object.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Table table,
int row)
Copies the contents of the row of the given Table onto the end of this
table.
|
TObject |
getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
DataTableDef |
getDataTableDef()
Returns a DataTableDef object that defines the name of the table and the
layout of the columns of the table.
|
boolean |
hasRootsLocked()
Returns true if the table has its row roots locked (via the lockRoot(int)
method.
|
void |
lockRoot(int lock_key)
Locks the root table(s) of this table so that it is impossible to
overwrite the underlying rows that may appear in this table.
|
void |
newRow()
Creates a new row where cells can be inserted into.
|
RowEnumeration |
rowEnumeration()
Returns an Enumeration of the rows in this table.
|
void |
setCellFrom(Table table,
int src_col,
int src_row,
String to_col)
Copies the cell from the given table (src_col, src_row) to the last row
of the column specified of this table.
|
void |
setRowCell(TObject cell,
int column,
int row)
Sets the cell in the given column / row to the given value.
|
void |
setRowCell(TObject cell,
String col_name)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
setRowObject(TObject ob,
int col_index)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
setRowObject(TObject ob,
int col_index,
int row)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
setRowObject(TObject ob,
String col_name)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
setupAllSelectableSchemes()
This should be called if you want to perform table operations on this
TemporaryTable.
|
void |
unlockRoot(int lock_key)
Unlocks the root tables so that the underlying rows may
once again be used if they are not locked and have been removed.
|
blankSelectableSchemes, blankSelectableSchemes, clearColumnScheme, findFieldName, getColumnCount, getDatabase, getResolvedVariable, getRootColumnScheme, getRowCount
getTableName, toString, typeEquals
all, allColumnMatchesValue, any, columnContainsCell, columnContainsValue, columnMatchesValue, columnMerge, compareCells, Debug, distinct, distinct, dumpTo, emptySelect, exhaustiveSelect, fastFindFieldName, getColumnDefAt, getColumnScheme, getFirstCellContent, getFirstCellContent, getLastCellContent, getLastCellContent, getSingleCellContent, getSingleCellContent, getSystem, getTableAccessState, getTTypeForColumn, getTTypeForColumn, join, orderByColumn, orderByColumn, orderByColumn, orderByColumns, orderedRowList, outside, printGraph, rangeSelect, selectAll, selectAll, selectFirst, selectLast, selectRange, selectRest, simpleJoin, simpleSelect, singleRowSelect, toMap, union
public TemporaryTable(Database database, String name, DataTableColumnDef[] fields)
public TemporaryTable(String name, Table based_on)
public TemporaryTable(DefaultDataTable based_on)
public void newRow()
public void setRowCell(TObject cell, int column, int row)
public void setRowCell(TObject cell, String col_name)
public void setRowObject(TObject ob, int col_index, int row)
public void setRowObject(TObject ob, String col_name)
public void setRowObject(TObject ob, int col_index)
public void setCellFrom(Table table, int src_col, int src_row, String to_col)
public void copyFrom(Table table, int row)
public void setupAllSelectableSchemes()
public DataTableDef getDataTableDef()
Table
getDataTableDef
in interface TableDataSource
getDataTableDef
in class Table
public TObject getCellContents(int column, int row)
getCellContents
in interface TableDataSource
getCellContents
in class Table
public RowEnumeration rowEnumeration()
rowEnumeration
in interface TableDataSource
rowEnumeration
in class Table
public void lockRoot(int lock_key)
public void unlockRoot(int lock_key)
unlockRoot
in class Table
public boolean hasRootsLocked()
hasRootsLocked
in class Table
Copyright © 2015. All rights reserved.