All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.xmldbms.Row

java.lang.Object
   |
   +----org.xmlmiddleware.xmldbms.Row

public class Row
extends Object
Caches data for a single row. For internal use.


Constructor Index

 o Row()
Construct a Row

Method Index

 o clear()
Clear all column values.
 o clearColumnValue(Column)
Clear a column of a value.
 o getColumnsFor(Table)
Returns the columns in this row that apply to a given table.
 o getColumnValue(Column)
Get a column value.
 o getColumnValues(Column[])
Get multiple column values.
 o getColumnVectorFor(Table)
Returns the columns in this row that apply to a given table.
 o setColumnValue(Column, Object)
Set a column value.
 o setColumnValues(Column[], Object[])
Set multiple column values.
 o setColumnValues(ResultSet, Table, boolean)
Set column values from a result set

Constructors

 o Row
 public Row()
Construct a Row

Methods

 o setColumnValue
 public void setColumnValue(Column column,
                            Object value)
Set a column value.

Parameters:
column - Column for which to set the value.
value - Value to set (null for a NULL value).
 o getColumnValue
 public Object getColumnValue(Column column)
Get a column value.

Parameters:
column - Column for which to get the value.
Returns:
Returned value. Will return null if column not set or value is null. @see haveColumn.
 o clearColumnValue
 public void clearColumnValue(Column column)
Clear a column of a value.

Parameters:
column - Column to clear.
 o clear
 public void clear()
Clear all column values.

 o setColumnValues
 public void setColumnValues(Column columns[],
                             Object values[])
Set multiple column values.

Parameters:
columns - Columns for which to set values.
values - Values to set.
 o setColumnValues
 public void setColumnValues(ResultSet rs,
                             Table table,
                             boolean emptyStringIsNull) throws SQLException
Set column values from a result set

Parameters:
rs - The result set.
table - The Table object describing the rows in the result set
 o getColumnValues
 public Object[] getColumnValues(Column columns[])
Get multiple column values.

Parameters:
columns - Columns for which to get values.
Returns:
Returned values.
 o getColumnVectorFor
 public Vector getColumnVectorFor(Table table)
Returns the columns in this row that apply to a given table. Only returns columns that have values (including null).

Parameters:
table - The table.
 o getColumnsFor
 public Column[] getColumnsFor(Table table)
Returns the columns in this row that apply to a given table. Only returns columns that have values (including null).

Parameters:
table - The table.

All Packages  Class Hierarchy  This Package  Previous  Next  Index