it.eng.spago.dbaccess.sql.command.std
Class DeleteCommand

java.lang.Object
  extended by it.eng.spago.dbaccess.sql.SQLCommand
      extended by it.eng.spago.dbaccess.sql.command.std.DeleteCommand

public class DeleteCommand
extends SQLCommand

Questa Classe rappresenta un comando SQL di DELETE per driver jdbc 2.0 o superiori

Version:
1.0
Author:
Andrea Zoppello

Field Summary
 
Fields inherited from class it.eng.spago.dbaccess.sql.SQLCommand
_closed, _commandString, _dataConnection, _inputParameter, _stmt, _tracer
 
Constructor Summary
DeleteCommand(DataConnection dataConnection, java.lang.String commandString)
          Costruttore
 
Method Summary
 DataResult execute()
          Questo metodo server per eseguire il comnado senza parametri
 DataResult execute(java.util.List inputParameters)
          Questo metodo serve per eseguire il comando con dei parametri di input
 
Methods inherited from class it.eng.spago.dbaccess.sql.SQLCommand
close, closeInternal, getDataConnection, getInternalConnection, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteCommand

public DeleteCommand(DataConnection dataConnection,
                     java.lang.String commandString)
Costruttore

Parameters:
DataConnection - dataConnection - l'oggetto dataConnection legato al comando
String - commandString - La Stringa rappresentante il comando
Method Detail

execute

public DataResult execute()
                   throws EMFInternalError
Questo metodo server per eseguire il comnado senza parametri

Specified by:
execute in class SQLCommand
Returns:
un oggetto di tipo DataResult contente il risultato dell'esecuzione del comando
Throws:
EMFInternalError - - Se si verifica qualche problema durante l'esecuzione del comando
EMFInternalError

execute

public DataResult execute(java.util.List inputParameters)
                   throws EMFInternalError
Questo metodo serve per eseguire il comando con dei parametri di input

Specified by:
execute in class SQLCommand
Parameters:
List - inputParameters - una lista di DataField object
Returns:
un oggetto di tipo DataResult contente il risultato dell'esecuzione del comando
Throws:
EMFInternalError - - Se si verifica qualche problema durante l'esecuzione del comando
EMFInternalError