org.opengts.dbtools
Class DBDelete

java.lang.Object
  extended by org.opengts.dbtools.DBDelete

public class DBDelete
extends java.lang.Object

DBDelete provides the creation of the SQL provider specific DELETE statement.


Constructor Summary
DBDelete(DBFactory fact)
          Constructor
 
Method Summary
 DBWhere createDBWhere()
          Creates a new DBWhere instance (calling 'setWhere(...)' is still required in order to used the created DBWhere instance for this DBDelete).
 DBFactory getFactory()
          Gets the DBFactory defined for this DBDelete
 java.lang.String getTranslatedTableName()
          Gets the table name for this DBSelect
 java.lang.String getUntranslatedTableName()
          Gets the untranslated table name for this DBDelete
 java.lang.String getWhere()
          Gets the where clause for this DBDelete
 boolean hasFactory()
          Returns true if a DBFactory has been defined
 boolean hasWhere()
          Returns true if this DBDelete has a defined where clause
 void setUntranslatedTableName(java.lang.String utableName)
          Sets the untranslated table name for this DBDelete (if not set, the table name of the defined DBFactory will be used).
 void setWhere(java.lang.String wh)
          Sets the DBWhere instance used for this DBDelete
 java.lang.String toString()
          Returns the DELETE statement for this DBDelete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBDelete

public DBDelete(DBFactory fact)
Constructor

Parameters:
fact - The table DBFactory
Method Detail

hasFactory

public boolean hasFactory()
Returns true if a DBFactory has been defined

Returns:
True if a DBFactory has been defined

getFactory

public DBFactory getFactory()
Gets the DBFactory defined for this DBDelete

Returns:
The defined DBFactory

setUntranslatedTableName

public void setUntranslatedTableName(java.lang.String utableName)
Sets the untranslated table name for this DBDelete (if not set, the table name of the defined DBFactory will be used).

Parameters:
utableName - The table name

getUntranslatedTableName

public java.lang.String getUntranslatedTableName()
Gets the untranslated table name for this DBDelete

Returns:
The defined table name

getTranslatedTableName

public java.lang.String getTranslatedTableName()
Gets the table name for this DBSelect

Returns:
The defined table name

createDBWhere

public DBWhere createDBWhere()
Creates a new DBWhere instance (calling 'setWhere(...)' is still required in order to used the created DBWhere instance for this DBDelete).

Returns:
The new DBWhere instance

setWhere

public void setWhere(java.lang.String wh)
Sets the DBWhere instance used for this DBDelete

Parameters:
wh - The DBWhere instance used for this DBDelete

hasWhere

public boolean hasWhere()
Returns true if this DBDelete has a defined where clause

Returns:
True if this DBDelete has a defined where clause

getWhere

public java.lang.String getWhere()
Gets the where clause for this DBDelete

Returns:
The where clause for this DBDelete

toString

public java.lang.String toString()
Returns the DELETE statement for this DBDelete

Overrides:
toString in class java.lang.Object
Returns:
The DELETE statement for this DBDelete