it.unimo.dbgroup.momis.communication
Class WrapperRSProxy

java.lang.Object
  extended byit.unimo.dbgroup.momis.communication.WrapperRSProxy
All Implemented Interfaces:
WrapperRS
Direct Known Subclasses:
WSDLWrapperRS_timeOutAble

public class WrapperRSProxy
extends java.lang.Object
implements WrapperRS

Simple implementation of the WrapperRS useful for subclassing. See the interface for comments to each method.


Field Summary
private  WrapperRS _wrapperRS
          The core wrapperRS
 
Constructor Summary
WrapperRSProxy(WrapperRS wrapperRS)
          Constructor!
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_wrapperRS

private WrapperRS _wrapperRS
The core wrapperRS

Constructor Detail

WrapperRSProxy

public WrapperRSProxy(WrapperRS wrapperRS)
Constructor!

Method Detail

close

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

Specified by:
close in interface WrapperRS
Throws:
WrapperException

getColumnByName

public long getColumnByName(java.lang.String column)
                     throws WrapperException
Description copied from interface: WrapperRS
Get the position of a column identified by name.

Specified by:
getColumnByName in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the number of column in the resultset.

Specified by:
getColumnCount in interface WrapperRS
Returns:
the number of columns in this result set.
Throws:
WrapperException

getColumnName

public java.lang.String getColumnName(int column)
                               throws WrapperException
Description copied from interface: WrapperRS
Get the name of the specified column in the resultset.

Specified by:
getColumnName in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the Type of the specified column in the resultset.

Specified by:
getColumnType in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the char value of the specified column in the resultset.

Specified by:
getChar in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the double value of the specified column in the resultset.

Specified by:
getDouble in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the float value of the specified column in the resultset.

Specified by:
getFloat in interface WrapperRS
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
Description copied from interface: WrapperRS
Get the long value of the specified column in the resultset.

Specified by:
getLong in interface WrapperRS
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
Specified by:
getDate in interface WrapperRS
Throws:
WrapperException

getBoolean

public boolean getBoolean(int column)
                   throws WrapperException
Specified by:
getBoolean in interface WrapperRS
Throws:
WrapperException

getString

public java.lang.String getString(int column)
                           throws WrapperException
Description copied from interface: WrapperRS
Get the String value of the specified column in the resultset.

Specified by:
getString in interface WrapperRS
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
Specified by:
getRSAsString in interface WrapperRS
Throws:
WrapperException

getRSAsXmlString

public java.lang.String getRSAsXmlString()
                                  throws WrapperException
Specified by:
getRSAsXmlString in interface WrapperRS
Throws:
WrapperException

next

public boolean next()
             throws WrapperException
Description copied from interface: WrapperRS
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.

Specified by:
next in interface WrapperRS
Returns:
true if the new current row is valid; false if there are no more rows
Throws:
WrapperException


Universita' di Modena e Reggio Emilia