public class TemporaryRow extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, RowView
| Constructor and Description |
|---|
TemporaryRow(ColumnDefinition<?>... columnDefinitions)
Creates a temporary row with columns in agreement with the given column definitions.
|
| Modifier and Type | Method and Description |
|---|---|
protected TemporaryRow |
clone() |
boolean |
equals(java.lang.Object obj) |
<T extends java.io.Serializable> |
get(ColumnDefinition<T> columnDefinition)
Returns the table entry corresponding to the given column definition.
|
TableEntry<?> |
get(int column)
Returns the entry in the given column.
|
<T extends java.io.Serializable> |
get(int column,
java.lang.Class<T> valueType)
Returns the entry in the given column with the given value type.
|
TableEntry<?> |
get(java.lang.String columnName)
Returns the entry with the given column name.
|
<T extends java.io.Serializable> |
get(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the entry in the column with the given column name, having the given value type.
|
ColumnDefinition<?> |
getColumnDefinition(int column)
Returns the definition of the column with the given index.
|
java.lang.String |
getColumnName(int column)
Returns the name of the column with the given index.
|
int |
getNumColumns()
Returns the number of entries (i.e.
|
int |
getSize()
Returns the number of entries (i.e.
|
<T extends java.io.Serializable> |
getValue(ColumnDefinition<T> columnDefinition)
Returns the value of the table entry corresponding to the given column definition.
|
java.io.Serializable |
getValue(int column)
Returns the value of the entry in the given column.
|
<T extends java.io.Serializable> |
getValue(int column,
java.lang.Class<T> valueType)
Returns the value of the entry in the given column, having the given value type.
|
java.io.Serializable |
getValue(java.lang.String columnName)
Returns the value of the entry in the column with the given column name.
|
<T extends java.io.Serializable> |
getValue(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the value of the entry in the column with the given column name, having the given value type.
|
java.lang.Class<? extends java.io.Serializable> |
getValueType(int column)
Returns the class in which the values of the given column is encoded.
|
int |
hashCode() |
java.util.Iterator<TableEntry<?>> |
iterator() |
public TemporaryRow(ColumnDefinition<?>... columnDefinitions) throws java.lang.NullPointerException, TableException
columnDefinitions - The definition of the columns of this row.java.lang.NullPointerException - Thrown if columnDefinitions are null.TableException - Thrown if temporary table could not be constructed.protected TemporaryRow clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator<TableEntry<?>> iterator()
iterator in interface java.lang.Iterable<TableEntry<?>>public java.lang.Class<? extends java.io.Serializable> getValueType(int column)
throws java.lang.IndexOutOfBoundsException
RowViewgetValueType in interface RowViewcolumn - The column index of the entry.java.lang.IndexOutOfBoundsException - Thrown if column index is invalid.public java.lang.String getColumnName(int column)
throws java.lang.IndexOutOfBoundsException
RowViewgetColumnName in interface RowViewcolumn - The column index of the entry.java.lang.IndexOutOfBoundsException - Thrown if column index is invalid.public ColumnDefinition<?> getColumnDefinition(int column) throws java.lang.IndexOutOfBoundsException
RowViewgetColumnDefinition in interface RowViewcolumn - The column index of the entry.java.lang.IndexOutOfBoundsException - Thrown if column index is invalid.public int getSize()
RowViewRowView.getNumColumns().public int getNumColumns()
RowViewRowView.getSize().getNumColumns in interface RowViewpublic TableEntry<?> get(int column) throws java.lang.IndexOutOfBoundsException
RowViewpublic <T extends java.io.Serializable> TableEntry<? extends T> get(int column, java.lang.Class<T> valueType) throws java.lang.IndexOutOfBoundsException, TableException
RowViewget in interface RowViewcolumn - The column of the entry.valueType - The value type of the entry. Must be a super-class of the actual value type.java.lang.IndexOutOfBoundsException - Thrown if column index is invalid.TableException - Thrown if entry type is incompatible.public TableEntry<?> get(java.lang.String columnName) throws TableException
RowViewget in interface RowViewcolumnName - The column name of the entry.TableException - Thrown if column with the given name does not exist.public <T extends java.io.Serializable> TableEntry<? extends T> get(java.lang.String columnName, java.lang.Class<T> valueType) throws TableException
RowViewget in interface RowViewcolumnName - The column name of the entry.valueType - The value type of the entry. Must be a super-class of the actual value type.TableException - Thrown if entry type is incompatible, or column with the given name does not exist.public java.io.Serializable getValue(int column)
throws java.lang.IndexOutOfBoundsException
RowViewpublic java.io.Serializable getValue(java.lang.String columnName)
throws TableException
RowViewgetValue in interface RowViewcolumnName - The column name of the entry.TableException - Thrown if column with the given name does not exist.public <T extends java.io.Serializable> T getValue(int column,
java.lang.Class<T> valueType)
throws java.lang.IndexOutOfBoundsException,
TableException
RowViewgetValue in interface RowViewcolumn - The column of the entry.valueType - The value type of the entry. Must be a super-class of the actual value type.java.lang.IndexOutOfBoundsException - Thrown if column index is invalid.TableException - Thrown if entry type is not of the given valueType.public <T extends java.io.Serializable> T getValue(java.lang.String columnName,
java.lang.Class<T> valueType)
throws TableException
RowViewgetValue in interface RowViewcolumnName - The column name of the entry.valueType - The value type of the entry. Must be a super-class of the actual value type.TableException - Thrown if entry type is not of the given valueType, or if a column with the given name does not exist.public <T extends java.io.Serializable> TableEntry<T> get(ColumnDefinition<T> columnDefinition) throws TableException, java.lang.NullPointerException
RowViewget in interface RowViewcolumnDefinition - the definition of the column to return the entry of.TableException - thrown if there is no entry corresponding to the definition, or if entry has different value type.java.lang.NullPointerException - thrown if columnDefinition is null.public <T extends java.io.Serializable> T getValue(ColumnDefinition<T> columnDefinition) throws TableException, java.lang.NullPointerException
RowViewgetValue in interface RowViewcolumnDefinition - the definition of the column to return the value of the entry of.TableException - thrown if there is no entry corresponding to the definition, or if entry has different value type.java.lang.NullPointerException - thrown if columnDefinition is null.