com.objectwave.persist.sqlConstruction
Class SQLDelete

java.lang.Object
  |
  +--com.objectwave.persist.sqlConstruction.SQLObject
        |
        +--com.objectwave.persist.sqlConstruction.SQLDelete
All Implemented Interfaces:
SQLAssembler

public class SQLDelete
extends SQLObject
implements SQLAssembler

A class that handles the creation of SQL Update statements. For example:

    SQLUpdate sql = new SQLUpdate();
    sql.setTableName("TABLENAME");
 

Version:
1.2
Author:
Dave Hoag
See Also:
com.objectwave.persist.SQLAssembler, com.objectwave.persist.RDBBroker

Field Summary
 
Fields inherited from class com.objectwave.persist.sqlConstruction.SQLObject
availableForPool, table
 
Constructor Summary
SQLDelete()
           
SQLDelete(java.lang.String tableName)
           
 
Method Summary
 void addWhereClause(java.lang.String clause)
           
 void clean()
          Restore the object to the state it was in at instantiation time.
 void formatTable(java.lang.StringBuffer buf)
           
protected  void formatWhereClause(java.lang.StringBuffer buf)
           
 java.lang.StringBuffer getSqlStatement()
           
 void insertAnyOfClause(java.lang.String compareWith, java.lang.String column, java.util.Vector values)
           
 void insertWhereClause(java.lang.String column, java.lang.Object value)
           
 
Methods inherited from class com.objectwave.persist.sqlConstruction.SQLObject
formatValue, getDefaultFormatter, getObjectFormatter, isAvailableForPool, setAvailableForPool, setObjectFormatter, setTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLDelete

public SQLDelete()

SQLDelete

public SQLDelete(java.lang.String tableName)
Parameters:
tableName -
Method Detail

getSqlStatement

public java.lang.StringBuffer getSqlStatement()
Specified by:
getSqlStatement in interface SQLAssembler
Returns:
The SqlStatement value

clean

public void clean()
Description copied from class: SQLObject
Restore the object to the state it was in at instantiation time. There is a statementFactory per broker. The broker will may override the object formatter to use. Once set, its not subject to change, so we don't need to clean it.

Overrides:
clean in class SQLObject

addWhereClause

public void addWhereClause(java.lang.String clause)
Parameters:
clause - The feature to be added to the WhereClause attribute

formatTable

public void formatTable(java.lang.StringBuffer buf)
Parameters:
buf -

formatWhereClause

protected void formatWhereClause(java.lang.StringBuffer buf)
Parameters:
buf -

insertAnyOfClause

public void insertAnyOfClause(java.lang.String compareWith,
                              java.lang.String column,
                              java.util.Vector values)
Parameters:
compareWith -
column -
values -

insertWhereClause

public void insertWhereClause(java.lang.String column,
                              java.lang.Object value)
Overrides:
insertWhereClause in class SQLObject
Parameters:
column -
value -