com.scooterframework.orm.sqldataexpress.connection
Class UserDatabaseConnectionFactory

java.lang.Object
  extended by com.scooterframework.orm.sqldataexpress.connection.UserDatabaseConnectionFactory

public class UserDatabaseConnectionFactory
extends java.lang.Object

UserDatabaseConnectionFactory class creates UserDatabaseConnection.


Method Summary
 UserDatabaseConnection createUserDatabaseConnection()
          Create a UserDatabaseConnection instance based on the default connection name in the properties file.
 UserDatabaseConnection createUserDatabaseConnection(DatabaseConnectionContext dcc)
          Create a UserDatabaseConnection instance based on supplied DatabaseConnectionContext instance.
 UserDatabaseConnection createUserDatabaseConnection(java.lang.String connName)
          Create a UserDatabaseConnection instance based on connection name.
static UserDatabaseConnectionFactory getInstance()
          Returns self.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UserDatabaseConnectionFactory getInstance()
Returns self.


createUserDatabaseConnection

public UserDatabaseConnection createUserDatabaseConnection()
Create a UserDatabaseConnection instance based on the default connection name in the properties file.

Returns:
UserDatabaseConnection

createUserDatabaseConnection

public UserDatabaseConnection createUserDatabaseConnection(java.lang.String connName)
Create a UserDatabaseConnection instance based on connection name. The properties related to the name must be in the properties file.

Parameters:
connName - database connection name
Returns:
UserDatabaseConnection

createUserDatabaseConnection

public UserDatabaseConnection createUserDatabaseConnection(DatabaseConnectionContext dcc)
Create a UserDatabaseConnection instance based on supplied DatabaseConnectionContext instance.

Parameters:
dcc - a DatabaseConnectionContext instance
Returns:
UserDatabaseConnection