public abstract class FndAbstractConnectionManager extends java.lang.Object implements FndConnectionManager
This is a framework internal class! Backward compatibility is not guaranteed.
Constructor and Description |
---|
FndAbstractConnectionManager() |
Modifier and Type | Method and Description |
---|---|
protected abstract FndConnection |
getConnection(java.lang.String username,
java.lang.String password)
Framework specific (J2EE or STA) method for getting a database connection.
|
java.lang.String |
getCurrentDatabaseUser()
Gets current database user name.
|
FndConnection |
getPlsqlConnection()
Get a PLSQL connection for current application user and current language.
|
FndConnection |
getPlsqlConnection(java.lang.String user,
java.lang.String language)
Get a database connection for a PLSQL session.
|
FndConnection |
getPlsqlGatewayConnection(java.lang.String user)
Get a database connection for a PLSQL session.
|
void |
getSystemConnection(FndSystemConnectionAccess caller,
java.lang.Object param)
Gets a system user (IFSSYS) connection to database.
|
boolean |
isTaggedConnectionMode()
Indicates if this connection manager gets connections from Tagged Connection Pool or from J2EE connection pool.
|
boolean |
isTaggedConnectionStateful()
Indicates if the current dedicated session is allowed to keep transaction and cursor state between client requests.
|
void |
returnConnection(FndConnection con)
Returns the connection which is no longer needed.
|
protected abstract FndConnection getConnection(java.lang.String username, java.lang.String password) throws IfsException
username
- the database user on whose behalf the connection is being made.password
- the user's password.IfsException
public boolean isTaggedConnectionStateful()
FndConnectionManager
isTaggedConnectionStateful
in interface FndConnectionManager
public boolean isTaggedConnectionMode()
FndConnectionManager
isTaggedConnectionMode
in interface FndConnectionManager
public FndConnection getPlsqlConnection(java.lang.String user, java.lang.String language) throws IfsException
getPlsqlConnection
in interface FndConnectionManager
user
- user name passed to PLSQL initialization procedurelanguage
- this parameter is ignored, instead current language is passed to PLSQL initialization procedureIfsException
public FndConnection getPlsqlGatewayConnection(java.lang.String user) throws IfsException
getPlsqlGatewayConnection
in interface FndConnectionManager
user
- user name passed to PLSQL initialization procedureIfsException
public FndConnection getPlsqlConnection() throws IfsException
getPlsqlConnection
in interface FndConnectionManager
IfsException
public void getSystemConnection(FndSystemConnectionAccess caller, java.lang.Object param) throws IfsException
getSystemConnection
in interface FndConnectionManager
caller
- an instance that wants to use a system connectionparam
- an object that will be passed to the callback method setSystemConnectionIfsException
FndSystemConnectionAccess.setSystemConnection
public void returnConnection(FndConnection con) throws IfsException
returnConnection
in interface FndConnectionManager
IfsException
public java.lang.String getCurrentDatabaseUser()
getCurrentDatabaseUser
in interface FndConnectionManager