it.unimo.dbgroup.momis.communication
Interface WrapperRS

All Known Subinterfaces:
WrapperRSInternal
All Known Implementing Classes:
CorbaWrapperRSClient, WrapperRSJdbcCore, WrapperRSProxy, WrapperRSXMLCore, WSDLWrapperRSClient

public interface WrapperRS


Method Summary
 void close()
          Releases this ResultSet object's database and resources immediately instead of waiting for this to happen when it is automatically closed.
 boolean getBoolean(int column)
           
 char getChar(int column)
          Get the char value of the specified column in the resultset.
 long getColumnByName(java.lang.String column)
          Get the position of a column identified by name.
 long getColumnCount()
          Get the number of column in the resultset.
 java.lang.String getColumnName(int column)
          Get the name of the specified column in the resultset.
 java.lang.String getColumnType(int column)
          Get the Type of the specified column in the resultset.
 java.util.Date getDate(int column)
           
 double getDouble(int column)
          Get the double value of the specified column in the resultset.
 float getFloat(int column)
          Get the float value of the specified column in the resultset.
 long getLong(int column)
          Get the long value of the specified column in the resultset.
 java.lang.String getRSAsString()
           
 java.lang.String getRSAsXmlString()
           
 java.lang.String getString(int column)
          Get the String value of the specified column in the resultset.
 boolean next()
          Moves the cursor down one row from its current position.
 

Method Detail

close

public void close()
           throws WrapperException
Releases this ResultSet object's database and resources immediately instead of waiting for this to happen when it is automatically closed.

Throws:
WrapperException

getColumnByName

public long getColumnByName(java.lang.String column)
                     throws WrapperException
Get the position of a column identified by name.

Parameters:
column - the name of the chosen column.
Returns:
the position of the chosen column or -1 if such name does not exist.
Throws:
WrapperException

getColumnCount

public long getColumnCount()
                    throws WrapperException
Get the number of column in the resultset.

Returns:
the number of columns in this result set.
Throws:
WrapperException

getColumnName

public java.lang.String getColumnName(int column)
                               throws WrapperException
Get the name of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
the name of the chosen column.
Throws:
WrapperException

getColumnType

public java.lang.String getColumnType(int column)
                               throws WrapperException
Get the Type of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
the XML representation of the odli3-type of the chosen column.
Throws:
WrapperException

getChar

public char getChar(int column)
             throws WrapperException
Get the char value of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
The char value of the choosen cell.
Throws:
WrapperException

getDouble

public double getDouble(int column)
                 throws WrapperException
Get the double value of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
The double value of the choosen cell.
Throws:
WrapperException

getFloat

public float getFloat(int column)
               throws WrapperException
Get the float value of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
The float value of the choosen cell.
Throws:
WrapperException

getLong

public long getLong(int column)
             throws WrapperException
Get the long value of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
The long value of the choosen cell.
Throws:
WrapperException

getDate

public java.util.Date getDate(int column)
                       throws WrapperException
Throws:
WrapperException

getBoolean

public boolean getBoolean(int column)
                   throws WrapperException
Throws:
WrapperException

getString

public java.lang.String getString(int column)
                           throws WrapperException
Get the String value of the specified column in the resultset.

Parameters:
column - the number of the chosen column.
Returns:
The String value of the choosen cell.
Throws:
WrapperException

getRSAsString

public java.lang.String getRSAsString()
                               throws WrapperException
Throws:
WrapperException

getRSAsXmlString

public java.lang.String getRSAsXmlString()
                                  throws WrapperException
Throws:
WrapperException

next

public boolean next()
             throws WrapperException
Moves the cursor down one row from its current position.

A ResultSet cursor is initially positioned before the first row; the first call to next makes the first row the current row; the second call makes the second row the current row, and so on.

Returns:
true if the new current row is valid; false if there are no more rows
Throws:
WrapperException


Universita' di Modena e Reggio Emilia