com.scooterframework.orm.sqldataexpress.connection
Class DataSourceConnection

java.lang.Object
  extended by com.scooterframework.orm.sqldataexpress.connection.UserDatabaseConnectionImpl
      extended by com.scooterframework.orm.sqldataexpress.connection.DataSourceConnection
All Implemented Interfaces:
UserDatabaseConnection

public class DataSourceConnection
extends UserDatabaseConnectionImpl

DataSourceConnection class has information about database connection created by DataSource which has been registered to the container or server through JNDI APIs.


Field Summary
 
Fields inherited from interface com.scooterframework.orm.sqldataexpress.connection.UserDatabaseConnection
DATASOURCE_CONNECTION, JDBC_CONNECTION
 
Constructor Summary
DataSourceConnection(DataSourceConnectionContext dcc)
           
DataSourceConnection(java.lang.String connectionName, DataSourceConnectionContext dcc)
           
 
Method Summary
protected  java.sql.Connection createConnection()
          Create a connection based on specific database connection context.
 java.lang.String getConnectionType()
          Return the connection type.
 
Methods inherited from class com.scooterframework.orm.sqldataexpress.connection.UserDatabaseConnectionImpl
connectionIsOpen, getAutoCommit, getConnection, getConnectionName, getDatabaseConnectionContext, setAutoCommit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceConnection

public DataSourceConnection(DataSourceConnectionContext dcc)

DataSourceConnection

public DataSourceConnection(java.lang.String connectionName,
                            DataSourceConnectionContext dcc)
Method Detail

getConnectionType

public java.lang.String getConnectionType()
Return the connection type.


createConnection

protected java.sql.Connection createConnection()
Create a connection based on specific database connection context.

Specified by:
createConnection in class UserDatabaseConnectionImpl
Returns:
Connection