org.apache.ws.jaxme.sqls.impl

Class SetStatementImpl

Implemented Interfaces:
SetStatement, Statement
Known Direct Subclasses:
InsertStatementImpl, UpdateStatementImpl

public abstract class SetStatementImpl
extends StatementImpl
implements SetStatement

Author:
Jochen Wiedmann

Nested Class Summary

static class
SetStatementImpl.SetValueImpl

Constructor Summary

SetStatementImpl(SQLFactory pFactory)

Method Summary

void
addSet(String pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
void
addSet(String pColumn, Object pValue)
Adds a SET clause setting the given column to the given value.
void
addSet(String pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(String pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
void
addSet(String pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(String pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(String pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(String pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(String pColumn, Value pValue)
void
addSet(String pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
void
addSet(Column pColumn, Object pValue)
Adds a SET clause setting the given column to the given value.
void
addSet(Column pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
void
addSet(Column pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column pColumn, Value pValue)
void
addSet(Column pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
void
addSet(Column.Name pColumn, Object pValue)
Adds a SET clause setting the given column to the given value.
void
addSet(Column.Name pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
void
addSet(Column.Name pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
void
addSet(Column.Name pColumn, Value pValue)
void
addSet(Column.Name pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
protected void
addSet(ColumnReference pRef, Object pValue)
void
addSet(ColumnReference pColumn, Value pValue)
void
addSetDate(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
void
addSetDate(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
void
addSetDate(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
void
addSetDateTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
void
addSetDateTime(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
void
addSetDateTime(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
void
addSetNull(String pColumn)
Adds a SET clause setting the given column to NULL.
void
addSetNull(Column pColumn)
Adds a SET clause setting the given column to NULL.
void
addSetNull(Column.Name pColumn)
Adds a SET clause setting the given column to NULL.
void
addSetTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
void
addSetTime(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
void
addSetTime(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
Iterator
getSetValues()
Returns an Iterator to all values being set.

Methods inherited from class org.apache.ws.jaxme.sqls.impl.StatementImpl

createFunction, getSQLFactory, getTableReference, newCase, newTableReference, setTable

Constructor Details

SetStatementImpl

protected SetStatementImpl(SQLFactory pFactory)

Method Details

addSet

public void addSet(String pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   Object pValue)
Adds a SET clause setting the given column to the given value. The value may be, for example, a subselect, a function, or a piece of raw SQL code.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   String pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   byte pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   float pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   int pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   long pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(String pColumn,
                   Value pValue)

addSet

public void addSet(String pColumn,
                   short pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   Object pValue)
Adds a SET clause setting the given column to the given value. The value may be, for example, a subselect, a function, or a piece of raw SQL code.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   String pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   byte pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   float pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   int pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   long pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column pColumn,
                   Value pValue)

addSet

public void addSet(Column pColumn,
                   short pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   Object pValue)
Adds a SET clause setting the given column to the given value. The value may be, for example, a subselect, a function, or a piece of raw SQL code.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   String pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   byte pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   float pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   int pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   long pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

public void addSet(Column.Name pColumn,
                   Value pValue)

addSet

public void addSet(Column.Name pColumn,
                   short pValue)
Adds a SET clause setting the given column to the value pValue.
Specified by:
addSet in interface SetStatement

addSet

protected void addSet(ColumnReference pRef,
                      Object pValue)

addSet

public void addSet(ColumnReference pColumn,
                   Value pValue)

addSetDate

public void addSetDate(String pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
Specified by:
addSetDate in interface SetStatement

addSetDate

public void addSetDate(Column pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
Specified by:
addSetDate in interface SetStatement

addSetDate

public void addSetDate(Column.Name pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
Specified by:
addSetDate in interface SetStatement

addSetDateTime

public void addSetDateTime(String pColumn,
                           Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
Specified by:
addSetDateTime in interface SetStatement

addSetDateTime

public void addSetDateTime(Column pColumn,
                           Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
Specified by:
addSetDateTime in interface SetStatement

addSetDateTime

public void addSetDateTime(Column.Name pColumn,
                           Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
Specified by:
addSetDateTime in interface SetStatement

addSetNull

public void addSetNull(String pColumn)
Adds a SET clause setting the given column to NULL.
Specified by:
addSetNull in interface SetStatement

addSetNull

public void addSetNull(Column pColumn)
Adds a SET clause setting the given column to NULL.
Specified by:
addSetNull in interface SetStatement

addSetNull

public void addSetNull(Column.Name pColumn)
Adds a SET clause setting the given column to NULL.
Specified by:
addSetNull in interface SetStatement

addSetTime

public void addSetTime(String pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
Specified by:
addSetTime in interface SetStatement

addSetTime

public void addSetTime(Column pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the time value pValue. Shortcut for addSet(getTable().newColumnReference(pColumn), pValue).
Specified by:
addSetTime in interface SetStatement

addSetTime

public void addSetTime(Column.Name pColumn,
                       Calendar pValue)
Adds a SET clause setting the given column to the time value pValue. Shortcut for addSet(getTable().newColumnReference(pColumn), pValue).
Specified by:
addSetTime in interface SetStatement

getSetValues

public Iterator getSetValues()
Specified by:
getSetValues in interface SetStatement