| java.lang.Object com.quadcap.sql.TupleImpl
All known Subclasses: com.quadcap.sql.Table, com.quadcap.sql.View, com.quadcap.sql.CursorImpl,
TupleImpl | public class TupleImpl implements Tuple,Externalizable(Code) | | Base class for tuple implementations.
author: Stan Bailes |
Method Summary | |
public void | addColumn(Column col) | public void | addColumn(Column col, int pos) Add a new column to the tuple in a specified position,
moving columns at that position and greater on position
to the right. | public void | addColumn(String name, Type type) | public void | addColumns(Session session, Tuple t) Add, in order, the columns from the definition of tuple 't' to
the column list for this tuple. | public void | addColumns(Session session, Tuple t, boolean resolve) Add all the columns from the other tuple to this one. | public void | deleteColumn(int col) | public Column | getColumn(int i) | public Column | getColumn(String name) | public int | getColumnCount() | public int | getColumnIndex(String name) | public String | getName() | public int[] | mapColumns(Vector names) | static int | nextUnquotedPeriod(String s) Find the first occurence of the '.' name separator in
the given SQL identifier string. | public void | readExternal(ObjectInput in) Externalizable.readExternal(): Read me from a stream. | public void | resolveColumns() Once all of the column names are available, we can look for duplicates
and shortest-unique names, etc. | public void | setName(String name) | public String | toString() | public void | writeExternal(ObjectOutput out) Externalizable.writeExternal(): Write me to a stream. |
TupleImpl | public TupleImpl()(Code) | | Default constructor
|
TupleImpl | public TupleImpl(String qualifier)(Code) | | Named tuple constructor
|
addColumn | public void addColumn(Column col, int pos) throws SQLException(Code) | | Add a new column to the tuple in a specified position,
moving columns at that position and greater on position
to the right.
|
addColumns | public void addColumns(Session session, Tuple t) throws SQLException(Code) | | Add, in order, the columns from the definition of tuple 't' to
the column list for this tuple.
|
addColumns | public void addColumns(Session session, Tuple t, boolean resolve) throws SQLException(Code) | | Add all the columns from the other tuple to this one.
|
getColumnCount | public int getColumnCount() throws SQLException(Code) | | Return the number of columns in this tuple
|
getColumnIndex | public int getColumnIndex(String name) throws SQLException(Code) | | Return the (one-based) column index of the column with the
specified name
|
getName | public String getName()(Code) | | Return the tuple's name
|
mapColumns | public int[] mapColumns(Vector names) throws SQLException(Code) | | Map the specified column names into an array of integer (one-based)
column indexes
|
nextUnquotedPeriod | static int nextUnquotedPeriod(String s)(Code) | | Find the first occurence of the '.' name separator in
the given SQL identifier string.
|
resolveColumns | public void resolveColumns() throws SQLException(Code) | | Once all of the column names are available, we can look for duplicates
and shortest-unique names, etc.
|
setName | public void setName(String name)(Code) | | Set the tuple's name
|
toString | public String toString()(Code) | | Return a string representation for debugging
|
|
|