it.eng.spago.dbaccess.sql.command
Interface CommandCreator

All Known Implementing Classes:
DefaultCommandCreator, LegacyCommandCreator

public interface CommandCreator

Questa interfaccia è un AbstractFactory per le factory concrete di creazione dei comandi SQL DefaultCommandCreator e LegacyCommandCreator


Method Summary
 SQLCommand createDeleteCommand(DataConnection dataConnection, java.lang.String commandString)
          Crea un SQLCommand di delete data una DataConnection e la CommandString
 SQLCommand createInsertCommand(DataConnection dataConnection, java.lang.String commandString)
          Crea un SQLCommand di insert data una DataConnection e la CommandString
 SQLCommand createSelectCommand(DataConnection dataConnection, java.lang.String commandString, boolean scroll)
          Crea un SQLCommand di select data una DataConnection e la CommandString
 SQLCommand createStoredProcedureCommand(DataConnection dataConnection, java.lang.String commandString)
          Crea un SQLCommand per l'esecuzione di una stored procedure data una DataConnection e la CommandString
 SQLCommand createUpdateCommand(DataConnection dataConnection, java.lang.String commandString)
          Crea un SQLCommand di update data una DataConnection e la CommandString
 

Method Detail

createSelectCommand

public SQLCommand createSelectCommand(DataConnection dataConnection,
                                      java.lang.String commandString,
                                      boolean scroll)
Crea un SQLCommand di select data una DataConnection e la CommandString

Returns:
un oggetto di tipo SQLCommand rapprsentante il comando di select contenuto nella command string

createInsertCommand

public SQLCommand createInsertCommand(DataConnection dataConnection,
                                      java.lang.String commandString)
Crea un SQLCommand di insert data una DataConnection e la CommandString

Returns:
un oggetto di tipo SQLCommand rapprsentante il comando di insert contenuto nella command string

createUpdateCommand

public SQLCommand createUpdateCommand(DataConnection dataConnection,
                                      java.lang.String commandString)
Crea un SQLCommand di update data una DataConnection e la CommandString

Returns:
un oggetto di tipo SQLCommand rapprsentante il comando di update contenuto nella command string

createDeleteCommand

public SQLCommand createDeleteCommand(DataConnection dataConnection,
                                      java.lang.String commandString)
Crea un SQLCommand di delete data una DataConnection e la CommandString

Returns:
un oggetto di tipo SQLCommand rapprsentante il comando di delete contenuto nella command string

createStoredProcedureCommand

public SQLCommand createStoredProcedureCommand(DataConnection dataConnection,
                                               java.lang.String commandString)
Crea un SQLCommand per l'esecuzione di una stored procedure data una DataConnection e la CommandString

Returns:
un oggetto di tipo SQLCommand rapprsentante il comando di delete contenuto nella command string