|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.LocalObject
org.openorb.ots.xa.SessionManager
public class SessionManager
This class is a session manager that provides a connection to a user for SQL statements. The same connection will be used for XA.
Constructor Summary | |
---|---|
SessionManager(org.omg.PortableInterceptor.ORBInitInfo info)
Constructor |
Method Summary | |
---|---|
void |
connectionClosed(javax.sql.ConnectionEvent event)
This operation is called by the application when it invokes the 'close' operation on the connection. |
void |
connectionErrorOccurred(javax.sql.ConnectionEvent event)
This operation is called when an error occured. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
|
void |
freeConnections(Coordinator coordinator)
This operation is used to free connections. |
java.sql.Connection |
getConnection(java.lang.String name,
java.lang.String password,
java.lang.String profile)
Return a new database connection for the user |
org.apache.avalon.framework.logger.Logger |
getLogger()
|
void |
updateConnection(javax.sql.XAConnection xa_connection,
Coordinator coordinator)
This operation is used to update a connection coordinator |
Methods inherited from class org.omg.CORBA.LocalObject |
---|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
---|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Constructor Detail |
---|
public SessionManager(org.omg.PortableInterceptor.ORBInitInfo info)
Method Detail |
---|
public java.sql.Connection getConnection(java.lang.String name, java.lang.String password, java.lang.String profile)
getConnection
in interface SessionManagerOperations
name
- the user name to get a connection to the database.password
- the user password to get a connection to the database.profile
- the database profile ( this profile name is used to get information from
the openORB OTS configuration file, i.e. JDBC driver and so on... )
public void freeConnections(Coordinator coordinator)
freeConnections
in interface SessionManagerOperations
public void updateConnection(javax.sql.XAConnection xa_connection, Coordinator coordinator)
updateConnection
in interface SessionManagerOperations
public void connectionClosed(javax.sql.ConnectionEvent event)
connectionClosed
in interface javax.sql.ConnectionEventListener
public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
connectionErrorOccurred
in interface javax.sql.ConnectionEventListener
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
public org.apache.avalon.framework.logger.Logger getLogger()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |