com.scooterframework.orm.sqldataexpress.connection
Class DataSourceConnectionContext

java.lang.Object
  extended by com.scooterframework.orm.sqldataexpress.connection.DatabaseConnectionContextImpl
      extended by com.scooterframework.orm.sqldataexpress.connection.DataSourceConnectionContext
All Implemented Interfaces:
DatabaseConnectionContext, java.io.Serializable

public class DataSourceConnectionContext
extends DatabaseConnectionContextImpl

DataSourceConnectionContext class

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.scooterframework.orm.sqldataexpress.connection.DatabaseConnectionContextImpl
afterConnectionClassName, afterConnectionMethodName, autoCommit, beforeConnectionClassName, beforeConnectionMethodName, connectionName, loginTimeout, password, properties, readonly, roles, schema, transactionIsolationLevel, useLoginAsSchema, useLoginForConnection, username, vendor
 
Fields inherited from interface com.scooterframework.orm.sqldataexpress.connection.DatabaseConnectionContext
KEY_ACQUIRE_INCREMENT, KEY_AFTER_CONNECTION, KEY_AUTOCOMMIT, KEY_BEFORE_CONNECTION, KEY_CONNECTION_NAME, KEY_DATASOURCENAME, KEY_DRIVER, KEY_INITIAL_POOL_SIZE, KEY_LOGINTIMEOUT, KEY_MAX_IDLE_TIME, KEY_MAX_POOL_SIZE, KEY_MIN_POOL_SIZE, KEY_PASSWORD, KEY_READONLY, KEY_SCHEMA, KEY_TRANSACTION_ISOLATION_LEVEL, KEY_URL, KEY_USE_LOGIN_AS_SCHEMA, KEY_USE_LOGIN_FOR_CONNECTION, KEY_USERNAME, KEY_VENDOR
 
Constructor Summary
DataSourceConnectionContext(java.util.Properties prop)
          Initializes database connection context
DataSourceConnectionContext(java.lang.String connectionName, java.lang.String dataSourceName)
          Initialize database connection context
DataSourceConnectionContext(java.lang.String connectionName, java.lang.String dataSourceName, java.lang.String username, java.lang.String password)
          Initialize database connection context
 
Method Summary
 java.lang.String getDataSourceName()
          Return the jndi data source name of the database
 java.lang.String getVendor()
          Return the vendor name of the database
 
Methods inherited from class com.scooterframework.orm.sqldataexpress.connection.DatabaseConnectionContextImpl
checkVendor, getAfterConnectionClassName, getAfterConnectionMethodName, getBeforeConnectionClassName, getBeforeConnectionMethodName, getConnectionName, getConnectionRoles, getLoginTimeout, getPassword, getProperties, getSchema, getTransactionIsolationLevel, getUsername, hasSpecifiedTransactionIsolationLevel, isAutoCommit, isReadonly, setAutoCommit, setConnectionRoles, setLoginTimeout, setProperties, setReadonly, useLoginAsSchema, useLoginForConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceConnectionContext

public DataSourceConnectionContext(java.util.Properties prop)
Initializes database connection context


DataSourceConnectionContext

public DataSourceConnectionContext(java.lang.String connectionName,
                                   java.lang.String dataSourceName)
Initialize database connection context


DataSourceConnectionContext

public DataSourceConnectionContext(java.lang.String connectionName,
                                   java.lang.String dataSourceName,
                                   java.lang.String username,
                                   java.lang.String password)
Initialize database connection context

Method Detail

getDataSourceName

public java.lang.String getDataSourceName()
Return the jndi data source name of the database

Returns:
String

getVendor

public java.lang.String getVendor()
Return the vendor name of the database

Specified by:
getVendor in interface DatabaseConnectionContext
Overrides:
getVendor in class DatabaseConnectionContextImpl
Returns:
String