org.teiid.jdbc
Class EmbeddedProfile

java.lang.Object
  extended by org.teiid.jdbc.EmbeddedProfile
All Implemented Interfaces:
ConnectionProfile

public class EmbeddedProfile
extends java.lang.Object
implements ConnectionProfile


Field Summary
static java.lang.String USE_CALLING_THREAD
           
 
Constructor Summary
EmbeddedProfile()
           
 
Method Summary
 ConnectionImpl connect(java.lang.String url, java.util.Properties info)
          This method tries to make a connection to the given URL.
protected  ServerConnection createServerConnection(java.util.Properties info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_CALLING_THREAD

public static final java.lang.String USE_CALLING_THREAD
See Also:
Constant Field Values
Constructor Detail

EmbeddedProfile

public EmbeddedProfile()
Method Detail

connect

public ConnectionImpl connect(java.lang.String url,
                              java.util.Properties info)
                       throws TeiidSQLException
This method tries to make a connection to the given URL. This class will return a null if this is not the right driver to connect to the given URL.

Specified by:
connect in interface ConnectionProfile
Parameters:
The - URL used to establish a connection.
Returns:
Connection object created
Throws:
java.sql.SQLException - if it is unable to establish a connection
TeiidSQLException

createServerConnection

protected ServerConnection createServerConnection(java.util.Properties info)
                                           throws TeiidException
Throws:
TeiidException


Copyright © 2011. All Rights Reserved.