net.sf.farrago.server
Class FarragoRJConnectionServer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.objectweb.rmijdbc.RJConnectionServer
                  extended by net.sf.farrago.server.FarragoRJConnectionServer
All Implemented Interfaces:
Serializable, Remote, Unreferenced, FarragoRJConnectionInterface, org.objectweb.rmijdbc.RJConnectionInterface

public class FarragoRJConnectionServer
extends org.objectweb.rmijdbc.RJConnectionServer
implements FarragoRJConnectionInterface

RMI server-side implementation of Connection, also contains server-side implementations of the the extended methods of a Farrago JDBC connection defined by the interface FarragoConnection.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/server/FarragoRJConnectionServer.java#12 $
Author:
Tim Leung
See Also:
Serialized Form

Field Summary
private  FarragoConnection farragoConnection
          Holds the underlying connection.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
FarragoRJConnectionServer(FarragoConnection c)
           
 
Method Summary
 String findMofId(String wrapperName)
           
 long getFarragoSessionId()
           
 FarragoRJMedDataWrapperInterface getWrapper(String mofId, String libraryName, Properties options)
           
 
Methods inherited from class org.objectweb.rmijdbc.RJConnectionServer
clearWarnings, close, commit, createStatement, createStatement, createStatement, finalize, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, unreferenced
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.rmijdbc.RJConnectionInterface
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 

Field Detail

farragoConnection

private final FarragoConnection farragoConnection
Holds the underlying connection. The underlying connection is also held in the base class, but that member is private and is of the wrong type.

Constructor Detail

FarragoRJConnectionServer

public FarragoRJConnectionServer(FarragoConnection c)
                          throws RemoteException
Throws:
RemoteException
Method Detail

findMofId

public String findMofId(String wrapperName)
                 throws RemoteException,
                        SQLException
Specified by:
findMofId in interface FarragoRJConnectionInterface
Throws:
RemoteException
SQLException
See Also:
FarragoConnection.getWrapper(java.lang.String, java.lang.String, java.util.Properties)

getFarragoSessionId

public long getFarragoSessionId()
                         throws RemoteException,
                                SQLException
Specified by:
getFarragoSessionId in interface FarragoRJConnectionInterface
Throws:
RemoteException
SQLException
See Also:
FarragoConnection.getFarragoSessionId()

getWrapper

public FarragoRJMedDataWrapperInterface getWrapper(String mofId,
                                                   String libraryName,
                                                   Properties options)
                                            throws RemoteException,
                                                   SQLException
Specified by:
getWrapper in interface FarragoRJConnectionInterface
Throws:
RemoteException
SQLException
See Also:
FarragoConnection.getWrapper(java.lang.String, java.lang.String, java.util.Properties)