org.eobjects.metamodel.data
Interface RowBuilder<RB extends RowBuilder<?>>

Type Parameters:
RB - the RowBuilder subtype, used for cascading return values
All Known Subinterfaces:
RowInsertionBuilder, RowUpdationBuilder
All Known Implementing Classes:
AbstractRowBuilder, AbstractRowInsertionBuilder, AbstractRowUpdationBuilder, DeleteAndInsertBuilder, InsertInto, Update

public interface RowBuilder<RB extends RowBuilder<?>>

Abstract interface for objects that build rows, either for eg. insert or update purposes.

See Also:
RowInsertionBuilder, RowUpdationBuilder

Method Summary
 Table getTable()
          Gets the table that this row builder pertains to.
 boolean isSet(Column column)
          Determines if a column's value has been explicitly specified or not.
 Row toRow()
          Gets the built record represented as a Row object.
 RB value(Column column, Object value)
          Sets the value of a column
 RB value(Column column, Object value, Style style)
          Sets the value of a column
 RB value(int columnIndex, Object value)
          Sets the value of a column, by column index
 RB value(int columnIndex, Object value, Style style)
          Sets the value of a column, by column index
 RB value(String columnName, Object value)
          Sets the value of a column, by column name
 RB value(String columnName, Object value, Style style)
          Sets the value and the style of this value of a column, by column name
 

Method Detail

getTable

Table getTable()
Gets the table that this row builder pertains to.

Returns:
the table that this row builder pertains to.

value

RB value(int columnIndex,
         Object value)
Sets the value of a column, by column index

Parameters:
columnIndex -
value -
Returns:

value

RB value(int columnIndex,
         Object value,
         Style style)
Sets the value of a column, by column index

Parameters:
columnIndex -
value -
style -
Returns:

value

RB value(Column column,
         Object value)
Sets the value of a column

Parameters:
column -
value -
Returns:

value

RB value(Column column,
         Object value,
         Style style)
Sets the value of a column

Parameters:
column -
value -
style -
Returns:

value

RB value(String columnName,
         Object value)
Sets the value of a column, by column name

Parameters:
columnName -
value -
Returns:

value

RB value(String columnName,
         Object value,
         Style style)
Sets the value and the style of this value of a column, by column name

Parameters:
columnName -
value -
style -
Returns:

toRow

Row toRow()
Gets the built record represented as a Row object.

Returns:
a Row object as it will appear if committed and queried.

isSet

boolean isSet(Column column)
Determines if a column's value has been explicitly specified or not. This can be used to tell explicit NULL values apart from just unspecified values in a statement.

Parameters:
column - the column to check
Returns:
true if the column's value has been set, or false if not


Copyright © 2007-2013. All Rights Reserved.