com.metamatrix.common.jdbc
Class JDBCPlatformFactory

java.lang.Object
  extended by com.metamatrix.common.jdbc.JDBCPlatformFactory

public class JDBCPlatformFactory
extends java.lang.Object

DO NOT USE LogManager in this class Here's the matrix for determining which platform to use: PN = Product Name, which means the product name from the metadata will help determine the platform Protocol = means the Protocol (mmx:oracle, oracle, sequelink) will help determine the platform Driver | Oracle DB2 SQLServer Sybase Informix ------------------------------------------------------------------------------ Native PN PN PN PN PN MMX (DD) Protocol PN PN PN PN (mmx:oracle) MetaMatrix JDBC Protocol -->(SAME) -->(SAME) ----->(SAME) --> (SAME) ------------------------------------------------------------------------------ The process will look 1st at the protocol and then the product name to further deliniate the type of platform that should be used.


Nested Class Summary
protected static interface JDBCPlatformFactory.PlatformClass
           
protected static interface JDBCPlatformFactory.Protocol
          The use of platforms is a secondary search option in case the supported platforms don't match to the product name
static interface JDBCPlatformFactory.Supported
          These are the platforms supported
 
Constructor Summary
JDBCPlatformFactory()
           
 
Method Summary
static JDBCPlatform getPlatform(java.sql.Connection jdbcConnection)
           
static JDBCPlatform getPlatform(java.lang.String url, java.lang.String driverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCPlatformFactory

public JDBCPlatformFactory()
Method Detail

getPlatform

public static JDBCPlatform getPlatform(java.sql.Connection jdbcConnection)
                                throws MetaMatrixException
Throws:
MetaMatrixException

getPlatform

public static JDBCPlatform getPlatform(java.lang.String url,
                                       java.lang.String driverName)
                                throws MetaMatrixException
Throws:
MetaMatrixException


Copyright © 2009. All Rights Reserved.