org.eobjects.metamodel.update
Class AbstractRowUpdationBuilder

java.lang.Object
  extended by org.eobjects.metamodel.data.AbstractRowBuilder<RowUpdationBuilder>
      extended by org.eobjects.metamodel.update.AbstractRowUpdationBuilder
All Implemented Interfaces:
RowBuilder<RowUpdationBuilder>, WhereClauseBuilder<RowUpdationBuilder>, RowUpdationBuilder
Direct Known Subclasses:
DeleteAndInsertBuilder

public abstract class AbstractRowUpdationBuilder
extends AbstractRowBuilder<RowUpdationBuilder>
implements RowUpdationBuilder

Abstract RowUpdationBuilder implementation.


Constructor Summary
AbstractRowUpdationBuilder(Table table)
           
 
Method Summary
 Table getTable()
          Gets the table that this update pertains to.
protected  List<FilterItem> getWhereItems()
           
 String toSql()
          Gets a SQL representation of this update operation.
 String toString()
           
 FilterBuilder<RowUpdationBuilder> where(Column column)
          Defines a where item to set as a criteria
 RowUpdationBuilder where(FilterItem... filterItems)
          Applies where items to set criteria
 RowUpdationBuilder where(Iterable<FilterItem> filterItems)
          Applies where items to set criteria
 FilterBuilder<RowUpdationBuilder> where(String columnName)
          Defines a where item to set as a criteria
 
Methods inherited from class org.eobjects.metamodel.data.AbstractRowBuilder
getColumns, getExplicitNulls, getStyles, getValues, isSet, toRow, value, value, value, value, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eobjects.metamodel.update.RowUpdationBuilder
execute
 
Methods inherited from interface org.eobjects.metamodel.data.RowBuilder
isSet, toRow, value, value, value, value, value, value
 

Constructor Detail

AbstractRowUpdationBuilder

public AbstractRowUpdationBuilder(Table table)
Method Detail

getWhereItems

protected List<FilterItem> getWhereItems()

where

public FilterBuilder<RowUpdationBuilder> where(Column column)
Description copied from interface: WhereClauseBuilder
Defines a where item to set as a criteria

Specified by:
where in interface WhereClauseBuilder<RowUpdationBuilder>
Parameters:
column - a column to apply a criteria for
Returns:
a builder object for further building the where item

where

public FilterBuilder<RowUpdationBuilder> where(String columnName)
Description copied from interface: WhereClauseBuilder
Defines a where item to set as a criteria

Specified by:
where in interface WhereClauseBuilder<RowUpdationBuilder>
Parameters:
columnName - the name of the colum to which the criteria will be applied
Returns:
a builder object for further building the where item

where

public RowUpdationBuilder where(FilterItem... filterItems)
Description copied from interface: WhereClauseBuilder
Applies where items to set criteria

Specified by:
where in interface WhereClauseBuilder<RowUpdationBuilder>
Parameters:
filterItems - the where items to set
Returns:
the builder object itself, for further building of the update

where

public RowUpdationBuilder where(Iterable<FilterItem> filterItems)
Description copied from interface: WhereClauseBuilder
Applies where items to set criteria

Specified by:
where in interface WhereClauseBuilder<RowUpdationBuilder>
Parameters:
filterItems - the where items to set
Returns:
the builder object, for further building of the update

getTable

public Table getTable()
Description copied from interface: RowUpdationBuilder
Gets the table that this update pertains to.

Specified by:
getTable in interface RowBuilder<RowUpdationBuilder>
Specified by:
getTable in interface RowUpdationBuilder
Returns:
the table that this update pertains to.

toSql

public String toSql()
Description copied from interface: RowUpdationBuilder
Gets a SQL representation of this update operation. Note that the generated SQL is dialect agnostic, so it is not accurately the same as what will be passed to a potential backing database.

Specified by:
toSql in interface RowUpdationBuilder
Returns:
a SQL representation of this update operation.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2013. All Rights Reserved.