com.metamatrix.common.jdbc
Class JDBCPlatform

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

public class JDBCPlatform
extends java.lang.Object


Nested Class Summary
protected static interface JDBCPlatform.Protocol
          The use of platforms is a secondary search option in case the supported platforms don't match to the product name
static class JDBCPlatform.Supported
          These are the platforms supported
 
Constructor Summary
JDBCPlatform()
           
 
Method Summary
protected static byte[] convertToByteArray(java.sql.Blob sourceObject)
           
protected static byte[] convertToByteArray(java.sql.Clob sourceObject)
           
static byte[] convertToByteArray(java.lang.Object sourceObject)
           
static int getDatabaseColumnSize(java.lang.String tableName, java.lang.String columnName, java.sql.Connection jdbcConnection)
           
static java.lang.String getIdentifierQuoteString(java.sql.Connection connection)
           
static JDBCPlatform.Supported getSupportedByProtocol(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCPlatform

public JDBCPlatform()
Method Detail

getSupportedByProtocol

public static JDBCPlatform.Supported getSupportedByProtocol(java.lang.String value)

convertToByteArray

public static byte[] convertToByteArray(java.lang.Object sourceObject)
                                 throws TransformationException
Throws:
TransformationException

convertToByteArray

protected static byte[] convertToByteArray(java.sql.Blob sourceObject)
                                    throws TransformationException
Throws:
TransformationException

convertToByteArray

protected static byte[] convertToByteArray(java.sql.Clob sourceObject)
                                    throws TransformationException
Throws:
TransformationException

getDatabaseColumnSize

public static int getDatabaseColumnSize(java.lang.String tableName,
                                        java.lang.String columnName,
                                        java.sql.Connection jdbcConnection)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getIdentifierQuoteString

public static java.lang.String getIdentifierQuoteString(java.sql.Connection connection)
                                                 throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.