org.apache.ws.jaxme.sqls

Interface SetStatement

public interface SetStatement extends Statement

A common base interface for {@link org.apache.ws.jaxme.sqls.InsertStatement} and {@link org.apache.ws.jaxme.sqls.UpdateStatement}.
Nested Class Summary
static interfaceSetStatement.SetValue
A tupel of column name and value being assigned.
Method Summary
voidaddSet(Column pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
voidaddSet(Column.Name pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
voidaddSet(String pColumn)
Adds a SET clause setting the given column to a value given by a placeholder.
voidaddSet(Column pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
voidaddSet(Column.Name pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
voidaddSet(String pColumn, boolean pValue)
Adds a SET clause setting the given column to the value TRUE or FALSE, depending on pValue.
voidaddSet(Column pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column.Name pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(String pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.
voidaddSet(Column pColumn, Object pObject)
Adds a SET clause setting the given column to the given value.
voidaddSet(String pColumn, Object pObject)
Adds a SET clause setting the given column to the given value.
voidaddSet(Column.Name pColumn, Object pObject)
Adds a SET clause setting the given column to the given value.
voidaddSetDate(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
voidaddSetDate(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
voidaddSetDate(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.
voidaddSetDateTime(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
voidaddSetDateTime(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
voidaddSetDateTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.
voidaddSetNull(Column pColumn)
Adds a SET clause setting the given column to NULL.
voidaddSetNull(Column.Name pColumn)
Adds a SET clause setting the given column to NULL.
voidaddSetNull(String pColumn)
Adds a SET clause setting the given column to NULL.
voidaddSetTime(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
voidaddSetTime(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
voidaddSetTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.
IteratorgetSetValues()
Returns an {@link Iterator} to all values being set.

Method Detail

addSet

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

addSet

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

addSet

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

addSet

public void addSet(Column pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, byte pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, short pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, int pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, long pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, float pValue)
Adds a SET clause setting the given column to the value pValue.

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.

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.

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.

addSet

public void addSet(Column pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column.Name pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(String pColumn, String pValue)
Adds a SET clause setting the given column to the value pValue.

addSet

public void addSet(Column pColumn, Object pObject)
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.

addSet

public void addSet(String pColumn, Object pObject)
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.

addSet

public void addSet(Column.Name pColumn, Object pObject)
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.

addSetDate

public void addSetDate(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.

addSetDate

public void addSetDate(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.

addSetDate

public void addSetDate(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the date value pValue.

addSetDateTime

public void addSetDateTime(Column pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.

addSetDateTime

public void addSetDateTime(Column.Name pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.

addSetDateTime

public void addSetDateTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the datetime value pValue.

addSetNull

public void addSetNull(Column pColumn)
Adds a SET clause setting the given column to NULL.

addSetNull

public void addSetNull(Column.Name pColumn)
Adds a SET clause setting the given column to NULL.

addSetNull

public void addSetNull(String pColumn)
Adds a SET clause setting the given column to NULL.

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).

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).

addSetTime

public void addSetTime(String pColumn, Calendar pValue)
Adds a SET clause setting the given column to the time value pValue.

getSetValues

public Iterator getSetValues()
Returns an {@link Iterator} to all values being set. Any element in the iterator is an instance of {@link SetValue}.