org.teiid.test.framework.connection
Class JEEConnection

java.lang.Object
  extended by org.teiid.test.framework.connection.ConnectionStrategy
      extended by org.teiid.test.framework.connection.JEEConnection

public class JEEConnection
extends ConnectionStrategy

JEE (JNDI) Connection Strategy, when the test is run inside an application server. Make sure all the jndi names are set correctly in the properties file.


Field Summary
static String DS_JNDINAME
           
 
Constructor Summary
JEEConnection(Properties props)
           
 
Method Summary
 Connection getConnection()
          Returns a connection
 void shutdown()
           
 void validate()
           
 
Methods inherited from class org.teiid.test.framework.connection.ConnectionStrategy
createDataSourceConnection, createDriverConnection, getAdminConnection, getAutocommit, getEnvironment, getXAConnection, isDataStoreDisabled, setEnvironmentProperty, useProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DS_JNDINAME

public static final String DS_JNDINAME
See Also:
Constant Field Values
Constructor Detail

JEEConnection

public JEEConnection(Properties props)
              throws QueryTestFailedException
Throws:
QueryTestFailedException
Method Detail

getConnection

public Connection getConnection()
                         throws QueryTestFailedException
Description copied from class: ConnectionStrategy
Returns a connection

Specified by:
getConnection in class ConnectionStrategy
Returns:
Connection
Throws:
QueryTestFailedException

shutdown

public void shutdown()
Overrides:
shutdown in class ConnectionStrategy

validate

public void validate()


Copyright © 2012. All Rights Reserved.