com.metamatrix.jdbc
Class MMServerConnection

java.lang.Object
  extended by com.metamatrix.jdbc.WrapperImpl
      extended by com.metamatrix.jdbc.MMConnection
          extended by com.metamatrix.jdbc.MMServerConnection
All Implemented Interfaces:
java.sql.Connection, java.sql.Wrapper

public class MMServerConnection
extends MMConnection

Since:
4.3

Field Summary
 
Fields inherited from class com.metamatrix.jdbc.MMConnection
propInfo, serverConn
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
MMServerConnection(ServerConnection serverConn, java.util.Properties info, java.lang.String url)
           
 
Method Summary
 void close()
          This method will release the MMDriverConnection's connection to the server and all resources immediately instead of waiting for them to be automatically released.
 Admin getAdminAPI()
          Retrieve an administrative object used to control MM Query.
 BaseDriver getBaseDriver()
           
 java.lang.String getDatabaseName()
          Get the database name that this connection is representing
 boolean isSameProcess(MMConnection conn)
           
static MMServerConnection newInstance(ServerConnection serverConn, java.util.Properties info, java.lang.String url)
          Factory Constructor
 void recycleConnection()
           
 
Methods inherited from class com.metamatrix.jdbc.MMConnection
clearWarnings, commit, commitTransaction, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, endTransaction, forgetTransaction, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getConnectionId, getHoldability, getMetaData, getTransactionIsolation, getTransactionXid, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareTransaction, recoverTransaction, releaseSavepoint, rollback, rollback, rollbackTransaction, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, startTransaction
 
Methods inherited from class com.metamatrix.jdbc.WrapperImpl
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

MMServerConnection

public MMServerConnection(ServerConnection serverConn,
                          java.util.Properties info,
                          java.lang.String url)
Parameters:
driver -
serverConn -
info -
url -
tracker -
Since:
4.3
Method Detail

newInstance

public static MMServerConnection newInstance(ServerConnection serverConn,
                                             java.util.Properties info,
                                             java.lang.String url)
Factory Constructor

Parameters:
serverConn -
info -
url -

getAdminAPI

public Admin getAdminAPI()
                  throws java.sql.SQLException
Description copied from interface: Connection
Retrieve an administrative object used to control MM Query.

Returns:
EmbeddedAdmin object to administer the MM Query component corresponding to this connection.
Throws:
SQLException
java.sql.SQLException
Since:
4.3
See Also:
Connection.getAdminAPI()

close

public void close()
           throws java.sql.SQLException
Description copied from class: MMConnection

This method will release the MMDriverConnection's connection to the server and all resources immediately instead of waiting for them to be automatically released. Fatal errors will close a connection as will a garbage collection on this object.

Specified by:
close in interface java.sql.Connection
Overrides:
close in class MMConnection
Throws:
java.sql.SQLException - if a MetaMatrix server access error occurs.
Since:
4.3
See Also:
MMConnection.close()

getDatabaseName

public java.lang.String getDatabaseName()
Description copied from class: MMConnection
Get the database name that this connection is representing

Specified by:
getDatabaseName in class MMConnection
Returns:
String name of the database
See Also:
MMConnection.getDatabaseName()

getBaseDriver

public BaseDriver getBaseDriver()
Specified by:
getBaseDriver in class MMConnection

recycleConnection

public void recycleConnection()
Overrides:
recycleConnection in class MMConnection

isSameProcess

public boolean isSameProcess(MMConnection conn)
                      throws CommunicationException
Specified by:
isSameProcess in class MMConnection
Throws:
CommunicationException


Copyright © 2009. All Rights Reserved.