it.eng.spago.dbaccess.sql.result
Class InformationDataResult

java.lang.Object
  extended byit.eng.spago.dbaccess.sql.result.InformationDataResult
All Implemented Interfaces:
DataResultInterface

public class InformationDataResult
extends java.lang.Object
implements DataResultInterface

Questa classe rappresenta un InformationDataResult, cioč un DataResult che contiene informazioni quali:

  • il numero di righe coinvolte nell'esecuzione del comando
  • un messaggio di esecuzione
  • lo stato di correttezza o meno dell'esecuzione del comando


    Field Summary
    static boolean CORRECT_EXECUTION
               
    static boolean ERROR_EXECUTION
               
    static java.lang.String TAG
               
     
    Fields inherited from interface it.eng.spago.dbaccess.sql.result.DataResultInterface
    COMPOSITE_DATA_RESULT, INFORMATION_DATA_RESULT, PUNCTUAL_DATA_RESULT, SCROLLABLE_DATA_RESULT
     
    Constructor Summary
    InformationDataResult(SQLCommand sqlCommand, java.util.List inputParameters, boolean correctExecution, int affectedRows, java.lang.String executionMessage)
              Costruttore
     
    Method Summary
     boolean correctExecution()
              Metodo getter per il parametro _correctExecution
     int getAffectedRows()
              Metodo getter per il parametro _affectedRows
     java.lang.String getDataResultType()
              Ritorna come valore la costante return DataResultInterface.INFORMATION_DATA_RESULT;
     java.lang.String getExecutionMessage()
              Metodo getter per il parametro _executionMessage
     SourceBean getSourceBean()
              Ritorna un oggetto sourcebean rappresentante l'oggetto
     void setAffectedRows(int affectedRows)
              Metodo setter per il parametro connectionPoolFactory
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    CORRECT_EXECUTION

    public static boolean CORRECT_EXECUTION

    ERROR_EXECUTION

    public static boolean ERROR_EXECUTION

    TAG

    public static final java.lang.String TAG
    See Also:
    Constant Field Values
    Constructor Detail

    InformationDataResult

    public InformationDataResult(SQLCommand sqlCommand,
                                 java.util.List inputParameters,
                                 boolean correctExecution,
                                 int affectedRows,
                                 java.lang.String executionMessage)
    Costruttore

    Throws:
    EMFInternalError - - Se qualche errore si verifica nella creazione dell'oggetto fi tipo InformationDataResult
    Method Detail

    getExecutionMessage

    public java.lang.String getExecutionMessage()
    Metodo getter per il parametro _executionMessage

    Returns:
    un oggetto di tipo String con il valore di _executionMessage

    correctExecution

    public boolean correctExecution()
    Metodo getter per il parametro _correctExecution

    Returns:
    true se l'esecuzione č avvenuta in maniera corretta

    getAffectedRows

    public int getAffectedRows()
    Metodo getter per il parametro _affectedRows

    Returns:
    il numero di righe coinvolte nell'esecuzione del comando

    setAffectedRows

    public void setAffectedRows(int affectedRows)
    Metodo setter per il parametro connectionPoolFactory


    getDataResultType

    public java.lang.String getDataResultType()
    Ritorna come valore la costante return DataResultInterface.INFORMATION_DATA_RESULT;

    Returns:
    DataResultInterface.INFORMATION_DATA_RESULT

    getSourceBean

    public SourceBean getSourceBean()
                             throws EMFInternalError
    Ritorna un oggetto sourcebean rappresentante l'oggetto

    Specified by:
    getSourceBean in interface DataResultInterface
    Returns:
    la rappresentazione dell'oggetto fi tipo DataResultInterface come SourceBean
    Throws:
    EMFInternalError