IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.sdo.mediator.jdbc
Interface JDBCMediatorFactory


public interface JDBCMediatorFactory

A JDBCMediatorFactory is used to create JDBCMediator instances


Field Summary
static JDBCMediatorFactory soleInstance
          The singleton instance of the JDBCMediatorFactory
 
Method Summary
 JDBCMediator createMediator(java.io.InputStream metadata, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the provide InputStream and connection
 JDBCMediator createMediator(java.io.InputStream metadata, org.eclipse.emf.ecore.EClass class1, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance with the supplied metadata, EMF schema, and ConnectionWrapper
 JDBCMediator createMediator(java.io.InputStream metadata, org.eclipse.emf.ecore.EClass suppliedSchema, java.lang.String suppliedQuery, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the provided metadata, EMF schema, SQL query, and ConnectionWrapper
 JDBCMediator createMediator(java.io.InputStream metadata, java.lang.String suppliedQuery, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the supplied metadata, SQL query, and ConnectionWrapper
 JDBCMediator createMediator(Metadata metadata)
          Create a JDBCMediator instance without a connection.
 JDBCMediator createMediator(Metadata metadata, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the provided metadata and connection
 JDBCMediator createMediator(Metadata metadata, org.eclipse.emf.ecore.EClass class1, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance with the supplied metadata, EMF schema, and ConnectionWrapper
 JDBCMediator createMediator(Metadata metadata, org.eclipse.emf.ecore.EClass suppliedSchema, java.lang.String suppliedQuery, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the provided metadata, EMF schema, SQL query, and ConnectionWrapper
 JDBCMediator createMediator(Metadata metadata, java.lang.String suppliedQuery, ConnectionWrapper connectionWrapper)
          Create a JDBCMediator instance based on the supplied metadata, SQL query, and ConnectionWrapper
 Metadata getMetadataFromStream(java.io.InputStream stream)
          Return a Metadata instance based on the supplied InputStream
 

Field Detail

soleInstance

static final JDBCMediatorFactory soleInstance
The singleton instance of the JDBCMediatorFactory

Method Detail

createMediator

JDBCMediator createMediator(Metadata metadata,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException
Create a JDBCMediator instance based on the provided metadata and connection

Parameters:
metadata -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException

createMediator

JDBCMediator createMediator(java.io.InputStream metadata,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException,
                                   java.io.IOException
Create a JDBCMediator instance based on the provide InputStream and connection

Parameters:
metadata -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException
java.io.IOException

createMediator

JDBCMediator createMediator(Metadata metadata)
                            throws InvalidMetadataException
Create a JDBCMediator instance without a connection. The instance created will throw exceptions if any services are attempted that require the connection

Parameters:
metadata -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException

createMediator

JDBCMediator createMediator(Metadata metadata,
                            org.eclipse.emf.ecore.EClass class1,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException
Create a JDBCMediator instance with the supplied metadata, EMF schema, and ConnectionWrapper

Parameters:
metadata -
class1 -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException

createMediator

JDBCMediator createMediator(java.io.InputStream metadata,
                            org.eclipse.emf.ecore.EClass class1,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException,
                                   java.io.IOException
Create a JDBCMediator instance with the supplied metadata, EMF schema, and ConnectionWrapper

Parameters:
metadata -
class1 -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException
java.io.IOException

createMediator

JDBCMediator createMediator(Metadata metadata,
                            org.eclipse.emf.ecore.EClass suppliedSchema,
                            java.lang.String suppliedQuery,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException
Create a JDBCMediator instance based on the provided metadata, EMF schema, SQL query, and ConnectionWrapper

Parameters:
metadata -
suppliedSchema -
suppliedQuery -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException

createMediator

JDBCMediator createMediator(java.io.InputStream metadata,
                            org.eclipse.emf.ecore.EClass suppliedSchema,
                            java.lang.String suppliedQuery,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException,
                                   java.io.IOException
Create a JDBCMediator instance based on the provided metadata, EMF schema, SQL query, and ConnectionWrapper

Parameters:
metadata -
suppliedSchema -
suppliedQuery -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException
java.io.IOException

createMediator

JDBCMediator createMediator(Metadata metadata,
                            java.lang.String suppliedQuery,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException
Create a JDBCMediator instance based on the supplied metadata, SQL query, and ConnectionWrapper

Parameters:
metadata -
suppliedQuery -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException

createMediator

JDBCMediator createMediator(java.io.InputStream metadata,
                            java.lang.String suppliedQuery,
                            ConnectionWrapper connectionWrapper)
                            throws InvalidMetadataException,
                                   java.io.IOException
Create a JDBCMediator instance based on the supplied metadata, SQL query, and ConnectionWrapper

Parameters:
metadata -
suppliedQuery -
connectionWrapper -
Returns:
the JDBCMediator
Throws:
InvalidMetadataException
java.io.IOException

getMetadataFromStream

Metadata getMetadataFromStream(java.io.InputStream stream)
                               throws java.io.IOException
Return a Metadata instance based on the supplied InputStream

Parameters:
stream -
Returns:
the Metadata instance
Throws:
java.io.IOException

IBM WebSphere Application ServerTM
Release 8