org.openorb.pss.connector.database
Class DatabaseSessionPool

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.openorb.pss.connector.database.DatabaseCatalog
          extended by org.openorb.pss.connector.database.DatabaseSession
              extended by org.openorb.pss.connector.database.DatabaseSessionPool
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, CatalogBase, CatalogBaseOperations, Session, SessionOperations, SessionPool, SessionPoolOperations, DatabaseCatalogBase, ExtendedCatalog

public class DatabaseSessionPool
extends DatabaseSession
implements SessionPool

This class is the implementation of the session pool for a database persistence.

Author:
Jerome Daniel
See Also:
Serialized Form

Constructor Summary
DatabaseSessionPool()
          Constructor without any parameter
DatabaseSessionPool(org.omg.PortableInterceptor.ORBInitInfo info)
          Constructor
 
Method Summary
 void flush_by_pids(byte[][] pids)
          Operation flush_by_pids
 TransactionalSession prepare_free_session()
          Return a free transactional session ( it means with NO ASSOCIATION for the association status )
 void refresh_by_pids(byte[][] pids)
          Operation refresh_by_pids
 void setBaseInfo(DatabaseConnector connector, java.lang.String catalog_type_name, short tx_policy, short access, Parameter[] parameters)
          Set the base information require by a catalog
 short transaction_policy()
          Read accessor for transaction_policy attribute
 
Methods inherited from class org.openorb.pss.connector.database.DatabaseSession
close, create_embedded_object, create_empty_object, create_object, createHomePID, createPID, destroy, find_home_base, find_pids, find, flush, free_all, getParameter, incarnate, read, refresh, remove, setBaseInfo, stored, write_entry_into_database, write
 
Methods inherited from class org.openorb.pss.connector.database.DatabaseCatalog
access_mode, clean, connector, find_all, find_by_pid, find_ref_by_pid, find_storage_home, iterator, parameters, setCatalogInfo
 
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.CosPersistentState.CatalogBaseOperations
access_mode, close, find_by_pid, find_storage_home, flush, free_all, refresh
 
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
 
Methods inherited from interface org.openorb.pss.connector.database.DatabaseCatalogBase
connector, parameters
 

Constructor Detail

DatabaseSessionPool

public DatabaseSessionPool()
Constructor without any parameter


DatabaseSessionPool

public DatabaseSessionPool(org.omg.PortableInterceptor.ORBInitInfo info)
Constructor

Method Detail

setBaseInfo

public void setBaseInfo(DatabaseConnector connector,
                        java.lang.String catalog_type_name,
                        short tx_policy,
                        short access,
                        Parameter[] parameters)
Set the base information require by a catalog


flush_by_pids

public void flush_by_pids(byte[][] pids)
Description copied from interface: SessionPoolOperations
Operation flush_by_pids

Specified by:
flush_by_pids in interface SessionPoolOperations

refresh_by_pids

public void refresh_by_pids(byte[][] pids)
Description copied from interface: SessionPoolOperations
Operation refresh_by_pids

Specified by:
refresh_by_pids in interface SessionPoolOperations

transaction_policy

public short transaction_policy()
Description copied from interface: SessionPoolOperations
Read accessor for transaction_policy attribute

Specified by:
transaction_policy in interface SessionPoolOperations
Returns:
the attribute value

prepare_free_session

public TransactionalSession prepare_free_session()
Return a free transactional session ( it means with NO ASSOCIATION for the association status )