net.sf.farrago.jdbc.client
Class FarragoRJConnection

java.lang.Object
  extended by org.objectweb.rmijdbc.RJConnection
      extended by org.eigenbase.jdbc4.UnwrappableRJConnection
          extended by net.sf.farrago.jdbc.client.FarragoRJConnection
All Implemented Interfaces:
Serializable, Connection, FarragoConnection

public class FarragoRJConnection
extends UnwrappableRJConnection
implements Serializable, FarragoConnection

JDBC connection to Farrago across an RMI transport.

It is paired with an FarragoRJConnectionServer via RMI.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/jdbc/client/FarragoRJConnection.java#17 $
Author:
Tim Leung
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          SerialVersionUID created with JDK 1.5 serialver tool.
 
Fields inherited from class org.objectweb.rmijdbc.RJConnection
rmiConnection_
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
protected FarragoRJConnection(org.objectweb.rmijdbc.RJConnectionInterface rmiconn)
           
  FarragoRJConnection(org.objectweb.rmijdbc.RJDriverInterface drv, String url, Properties info)
           
 
Method Summary
 Array createArrayOf(String typeName, Object[] elements)
           
 Blob createBlob()
           
 Clob createClob()
           
 NClob createNClob()
           
 SQLXML createSQLXML()
           
 Struct createStruct(String typeName, Object[] attributes)
           
 String findMofId(String wrapperName)
           
 Properties getClientInfo()
           
 String getClientInfo(String name)
           
private  FarragoRJConnectionInterface getFarragoRmiCon()
           
 long getFarragoSessionId()
           
 FarragoMedDataWrapperInfo getWrapper(String mofId, String libraryName, Properties options)
           
 boolean isValid(int timeout)
           
 void setClientInfo(Properties props)
           
 void setClientInfo(String name, String value)
           
 
Methods inherited from class org.objectweb.rmijdbc.RJConnection
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Connection
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

serialVersionUID

private static final long serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool.

See Also:
Constant Field Values
Constructor Detail

FarragoRJConnection

protected FarragoRJConnection(org.objectweb.rmijdbc.RJConnectionInterface rmiconn)

FarragoRJConnection

public FarragoRJConnection(org.objectweb.rmijdbc.RJDriverInterface drv,
                           String url,
                           Properties info)
                    throws Exception
Throws:
Exception
Method Detail

getFarragoRmiCon

private FarragoRJConnectionInterface getFarragoRmiCon()

getFarragoSessionId

public long getFarragoSessionId()
                         throws SQLException
Specified by:
getFarragoSessionId in interface FarragoConnection
Throws:
SQLException

findMofId

public String findMofId(String wrapperName)
                 throws SQLException
Specified by:
findMofId in interface FarragoConnection
Throws:
SQLException

getWrapper

public FarragoMedDataWrapperInfo getWrapper(String mofId,
                                            String libraryName,
                                            Properties options)
                                     throws SQLException
Specified by:
getWrapper in interface FarragoConnection
Throws:
SQLException

createStruct

public Struct createStruct(String typeName,
                           Object[] attributes)
                    throws SQLException
Throws:
SQLException

createArrayOf

public Array createArrayOf(String typeName,
                           Object[] elements)
                    throws SQLException
Throws:
SQLException

getClientInfo

public Properties getClientInfo()
                         throws SQLException
Throws:
SQLException

getClientInfo

public String getClientInfo(String name)
                     throws SQLException
Throws:
SQLException

setClientInfo

public void setClientInfo(String name,
                          String value)

setClientInfo

public void setClientInfo(Properties props)

isValid

public boolean isValid(int timeout)

createSQLXML

public SQLXML createSQLXML()
                    throws SQLException
Throws:
SQLException

createNClob

public NClob createNClob()
                  throws SQLException
Throws:
SQLException

createClob

public Clob createClob()
                throws SQLException
Throws:
SQLException

createBlob

public Blob createBlob()
                throws SQLException
Throws:
SQLException