SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.impl.jdbc.sql
Class Update

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.sql.SQLStatement
        |
        +--com.solarmetric.kodo.impl.jdbc.sql.NonSelectingSQL
              |
              +--com.solarmetric.kodo.impl.jdbc.sql.Update
Direct Known Subclasses:
Insert

public class Update
extends NonSelectingSQL

Abstraction of a SQL UPDATE statement.


Field Summary
protected static Localizer _loc
           
(package private)  SortedMap _updates
          A SortedMap is used in order to provide a deterministic order to the column so that PreparedStatement and Statement objects can be cached elsewhere.
 
Fields inherited from class com.solarmetric.kodo.impl.jdbc.sql.SQLStatement
_dict, _resolver, _tables
 
Constructor Summary
Update(DBDictionary dict, ClassResolver resolver)
           
Update(Update copy, ClassResolver resolver)
           
 
Method Summary
 void clear()
          Clear the WHERE clause and table list so that this statement can be reused.
 void clearSet()
          Clear the set updates.
 SQLBuffer getSQLBuffer()
          Return the SQLBuffer to be used for exeucting the statement;
 boolean isValid()
          Return true if at least one table has been set for this SQL statement.
 Update set(Column[] col, Object[] value)
          Set the given columns to the given values; this also sets the table of the UPDATE to the table of the given columns.
 Update set(Column col, boolean value)
          See set(Column,Object).
 Update set(Column col, byte value)
          See set(Column,Object).
 Update set(Column col, char value)
          See set(Column,Object).
 Update set(Column col, double value)
          See set(Column,Object).
 Update set(Column col, float value)
          See set(Column,Object).
 Update set(Column col, int value)
          See set(Column,Object).
 Update set(Column col, long value)
          See set(Column,Object).
 Update set(Column col, Object value)
          Set the given column to the given value; this also sets the table of the UPDATE to the table of the given column.
 Update set(Column col, short value)
          See set(Column,Object).
(package private)  Update setInternal(Column col, SQLValue value)
          Internal filter for all set methods; the given value should already be passed through the DBDictionary unless it is null.
 
Methods inherited from class com.solarmetric.kodo.impl.jdbc.sql.NonSelectingSQL
retainTableInWhere
 
Methods inherited from class com.solarmetric.kodo.impl.jdbc.sql.SQLStatement
and, clearTable, clearWhere, columnName, getClassResolver, getDictionary, getTables, getWhere, getWhereSize, not, or, popWhere, pushWhere, toString, where, where, where, where, where, where, where, where, where, where, whereInternal, whereInternal
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_loc

protected static Localizer _loc

_updates

final SortedMap _updates
A SortedMap is used in order to provide a deterministic order to the column so that PreparedStatement and Statement objects can be cached elsewhere.
Constructor Detail

Update

public Update(DBDictionary dict,
              ClassResolver resolver)

Update

public Update(Update copy,
              ClassResolver resolver)
Method Detail

set

public Update set(Column col,
                  Object value)
Set the given column to the given value; this also sets the table of the UPDATE to the table of the given column.

set

public Update set(Column col,
                  boolean value)
See set(Column,Object).

set

public Update set(Column col,
                  byte value)
See set(Column,Object).

set

public Update set(Column col,
                  char value)
See set(Column,Object).

set

public Update set(Column col,
                  double value)
See set(Column,Object).

set

public Update set(Column col,
                  float value)
See set(Column,Object).

set

public Update set(Column col,
                  int value)
See set(Column,Object).

set

public Update set(Column col,
                  long value)
See set(Column,Object).

set

public Update set(Column col,
                  short value)
See set(Column,Object).

set

public Update set(Column[] col,
                  Object[] value)
Set the given columns to the given values; this also sets the table of the UPDATE to the table of the given columns.

setInternal

Update setInternal(Column col,
                   SQLValue value)
Internal filter for all set methods; the given value should already be passed through the DBDictionary unless it is null.

clearSet

public void clearSet()
Clear the set updates.

isValid

public boolean isValid()
Description copied from class: SQLStatement
Return true if at least one table has been set for this SQL statement.
Overrides:
isValid in class SQLStatement

clear

public void clear()
Description copied from class: SQLStatement
Clear the WHERE clause and table list so that this statement can be reused.
Overrides:
clear in class SQLStatement

getSQLBuffer

public SQLBuffer getSQLBuffer()
Description copied from class: SQLStatement
Return the SQLBuffer to be used for exeucting the statement;
Overrides:
getSQLBuffer in class SQLStatement

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.