org.eobjects.metamodel.data
Class AbstractRowBuilder<RB extends RowBuilder<?>>

java.lang.Object
  extended by org.eobjects.metamodel.data.AbstractRowBuilder<RB>
All Implemented Interfaces:
RowBuilder<RB>
Direct Known Subclasses:
AbstractRowInsertionBuilder, AbstractRowUpdationBuilder, InsertInto, Update

public abstract class AbstractRowBuilder<RB extends RowBuilder<?>>
extends Object
implements RowBuilder<RB>

Abstract RowBuilder implementation.


Constructor Summary
AbstractRowBuilder(Column[] columns)
           
AbstractRowBuilder(Table table)
           
 
Method Summary
protected  Column[] getColumns()
           
protected  boolean[] getExplicitNulls()
          Gets a boolean array indicating if any of the values have been explicitly set to null (as opposed to just not set)
protected  Style[] getStyles()
           
protected  Object[] getValues()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eobjects.metamodel.data.RowBuilder
getTable
 

Constructor Detail

AbstractRowBuilder

public AbstractRowBuilder(Table table)

AbstractRowBuilder

public AbstractRowBuilder(Column[] columns)
Method Detail

getExplicitNulls

protected boolean[] getExplicitNulls()
Gets a boolean array indicating if any of the values have been explicitly set to null (as opposed to just not set)

Returns:

getValues

protected Object[] getValues()

getColumns

protected Column[] getColumns()

getStyles

protected Style[] getStyles()

toRow

public final Row toRow()
Description copied from interface: RowBuilder
Gets the built record represented as a Row object.

Specified by:
toRow in interface RowBuilder<RB extends RowBuilder<?>>
Returns:
a Row object as it will appear if committed and queried.

value

public final RB value(Column column,
                      Object value)
Description copied from interface: RowBuilder
Sets the value of a column

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

value

public RB value(Column column,
                Object value,
                Style style)
Description copied from interface: RowBuilder
Sets the value of a column

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

value

public RB value(int columnIndex,
                Object value)
Description copied from interface: RowBuilder
Sets the value of a column, by column index

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

value

public final RB value(int columnIndex,
                      Object value,
                      Style style)
Description copied from interface: RowBuilder
Sets the value of a column, by column index

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

value

public RB value(String columnName,
                Object value)
Description copied from interface: RowBuilder
Sets the value of a column, by column name

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

value

public final RB value(String columnName,
                      Object value,
                      Style style)
Description copied from interface: RowBuilder
Sets the value and the style of this value of a column, by column name

Specified by:
value in interface RowBuilder<RB extends RowBuilder<?>>
Returns:

isSet

public boolean isSet(Column column)
Description copied from interface: RowBuilder
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.

Specified by:
isSet in interface RowBuilder<RB extends RowBuilder<?>>
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.