it.eng.spago.dbaccess.sql.result.legacy
Class LegacyScrollableDataResult

java.lang.Object
  extended byit.eng.spago.dbaccess.sql.result.legacy.LegacyScrollableDataResult
All Implemented Interfaces:
DataResultInterface, ScrollableDataResult

public class LegacyScrollableDataResult
extends java.lang.Object
implements ScrollableDataResult

Questa classe è l'implementazione dell'interfaccia ScrollableDataResult implementata basandosi sun un result set jdbc 2.0


Field Summary
 
Fields inherited from interface it.eng.spago.dbaccess.sql.result.ScrollableDataResult
ROWS_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
LegacyScrollableDataResult(SQLCommand sqlCommand, java.util.List inputParameters, java.sql.ResultSet rs)
          Costruttore
 
Method Summary
 void close()
          Questo metodo permette di chiudere l'oggetto ScrollableDataResult
 int getColumnCount()
           
 java.lang.String[] getColumnNames()
           
 int[] getColumnTypes()
          Ritorna un vettore contenente i valori sql.Types delle colonne dell'oggetto ScrollableDataResult
 java.lang.String getDataResultType()
          Ritorna sempre DataResultInterface.SCROLLABLE_DATA_RESULT
 DataRow getDataRow()
          Questo metodo ritorna la riga corrente su cui il cursore è posizionato
 DataRow getDataRow(int position)
          Questo metodo ritorna la riga della posizione i-esima dell'oggetto scrollableDataResult
 java.sql.ResultSet getResultSet()
           
 int getRowsNumber()
          Ritorna il numero di righe dell'oggetto
 SourceBean getSourceBean()
          Ritorna un oggetto sorurce bean rappresentante l'oggetto
 boolean hasRows()
          Questo metodo viene usato per scorrere l'oggetto in maniera sequenziale in modo simile all'operatore il metodo ritorna true se l'oggetto ha altre righe in avanti rispetto alla posizione corrente in cui si è posizionati
 void moveTo(int position)
          Questo metodo permette il posizionamento del cursore sulla riga i-esima dell'oggetto ScrollableDataResult
 void refresh()
          Questo metodo permette di forzare l'aggiornamento dei dati sull'oggetto ScrollableDataResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyScrollableDataResult

public LegacyScrollableDataResult(SQLCommand sqlCommand,
                                  java.util.List inputParameters,
                                  java.sql.ResultSet rs)
                           throws EMFInternalError
Costruttore

Throws:
EMFInternalError - - Se si verifica qualche problema nella costruzione dell'oggetto.
EMFInternalError
Method Detail

hasRows

public boolean hasRows()
                throws EMFInternalError
Questo metodo viene usato per scorrere l'oggetto in maniera sequenziale in modo simile all'operatore il metodo ritorna true se l'oggetto ha altre righe in avanti rispetto alla posizione corrente in cui si è posizionati

Specified by:
hasRows in interface ScrollableDataResult
Returns:
true se l'oggetto ha altre righe in avanti rispetto alla posizione corrente in cui si è posizionati false altrimenti
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError

getDataRow

public DataRow getDataRow()
                   throws EMFInternalError
Questo metodo ritorna la riga corrente su cui il cursore è posizionato

Specified by:
getDataRow in interface ScrollableDataResult
Returns:
DataRow - l'oggetto rappresentante la riga del resultset su cui il cursore è posizionato
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError

getDataRow

public DataRow getDataRow(int position)
                   throws EMFInternalError
Questo metodo ritorna la riga della posizione i-esima dell'oggetto scrollableDataResult

Specified by:
getDataRow in interface ScrollableDataResult
Returns:
DataRow - l'oggetto rappresentante la riga del resultset su cui il cursore è posizionato
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ScrollableDataResult

getColumnTypes

public int[] getColumnTypes()
Ritorna un vettore contenente i valori sql.Types delle colonne dell'oggetto ScrollableDataResult

Specified by:
getColumnTypes in interface ScrollableDataResult
Returns:
int[] - il vettore contenente i valori sql.Types delle colonne dell'oggetto ScrollableDataResult

getColumnNames

public java.lang.String[] getColumnNames()
Specified by:
getColumnNames in interface ScrollableDataResult

getRowsNumber

public int getRowsNumber()
                  throws EMFInternalError
Ritorna il numero di righe dell'oggetto

Specified by:
getRowsNumber in interface ScrollableDataResult
Returns:
int - il numero di righe dell'oggetto
Throws:
EMFInternalError

getDataResultType

public java.lang.String getDataResultType()
Ritorna sempre DataResultInterface.SCROLLABLE_DATA_RESULT

Specified by:
getDataResultType in interface ScrollableDataResult
Returns:
String - Ritorna sempre DataResultInterface.SCROLLABLE_DATA_RESULT

moveTo

public void moveTo(int position)
            throws EMFInternalError
Questo metodo permette il posizionamento del cursore sulla riga i-esima dell'oggetto ScrollableDataResult

Specified by:
moveTo in interface ScrollableDataResult
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError

getSourceBean

public SourceBean getSourceBean()
                         throws EMFInternalError
Description copied from interface: DataResultInterface
Ritorna un oggetto sorurce bean rappresentante l'oggetto

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

refresh

public void refresh()
             throws EMFInternalError
Questo metodo permette di forzare l'aggiornamento dei dati sull'oggetto ScrollableDataResult

Specified by:
refresh in interface ScrollableDataResult
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError

getResultSet

public java.sql.ResultSet getResultSet()
Specified by:
getResultSet in interface ScrollableDataResult

close

public void close()
           throws EMFInternalError
Questo metodo permette di chiudere l'oggetto ScrollableDataResult

Specified by:
close in interface ScrollableDataResult
Throws:
EMFInternalError - - Se qualche errore si verifica
EMFInternalError