| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.persistence
public abstract class ConnectionFactory
Since:
3.1
Author:
jjohn-chuan
Abstract.
| Method Summary |
|
|
public abstract Connection |
|
public abstract Connection |
|
public abstract void |
|
protected boolean |
|
Static method to create the corresponding ConnectionFactory
It will create the corresponding ConnectionFactory based on the
ConnectionConfig.ConnectionFactoryClassName and initialize the
factory with that configuration.
Parameters:
config -
ConnectionConfiguration.
Return:
an instance of the corresponding ConnectionFactory
Static.
Throws:
PersistenceException
public abstract Connection getConnection (String username, String password)
Need to override getConnection method to provide specific methods to
retrieve/create Connections.
Parameters:
username
password
Return:
Connection object.
Abstract.
Throws:
PersistenceException
public abstract Connection getConnection ()
Need to override getConnection method to provide specific methods to
retrieve/create Connections.
Return:
Connection Object.
Abstract.
Throws:
PersistenceException
Need to override init method to provide specific initialization routines.
Parameters:
config -
ConnectionConfiguration Object.
Abstract.
Throws:
PersistenceException
protected boolean isEmpty (String str)
Parameters:
str
Return:
boolean str is empty/null
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|