org.openorb.pss.connector.memory
Class TransactionalMemorySession

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.openorb.pss.connector.memory.MemoryCatalog
          extended by org.openorb.pss.connector.memory.MemorySession
              extended by org.openorb.pss.connector.memory.TransactionalMemorySession
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, CatalogBase, CatalogBaseOperations, Session, SessionOperations, TransactionalSession, TransactionalSessionOperations, ExtendedCatalog, MemoryCatalogBase

public class TransactionalMemorySession
extends MemorySession
implements TransactionalSession

This class is the implementation for a transactional session. In term of isolation level, we only support READ COMMITTED and SERIALIZABLE.

Author:
Jerome Daniel
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.omg.CosPersistentState.TransactionalSession
ACTIVE, ENDING, NO_ASSOCIATION, SUSPENDED
 
Constructor Summary
TransactionalMemorySession()
          Constructor
TransactionalMemorySession(org.omg.PortableInterceptor.ORBInitInfo info)
          Constructor
 
Method Summary
 short default_isolation_level()
          Read accessor for default_isolation_level attribute
 void end(org.omg.CosTransactions.Coordinator transaction, boolean success)
          Operation end
 short get_association_status()
          Operation get_association_status
 void start(org.omg.CosTransactions.Coordinator transaction)
          Operation start
 void suspend(org.omg.CosTransactions.Coordinator transaction)
          Operation suspend
 org.omg.CosTransactions.Coordinator transaction()
          Operation transaction
 
Methods inherited from class org.openorb.pss.connector.memory.MemorySession
close, create_embedded_object, create_object, createHomePID, createPID, delete, find_home_base, flush, free_all, incarnate, refresh, setBaseInfo, stored
 
Methods inherited from class org.openorb.pss.connector.memory.MemoryCatalog
access_mode, clean, connector, destroy, 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.memory.MemoryCatalogBase
connector, parameters
 

Constructor Detail

TransactionalMemorySession

public TransactionalMemorySession()
Constructor


TransactionalMemorySession

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

Method Detail

default_isolation_level

public short default_isolation_level()
Description copied from interface: TransactionalSessionOperations
Read accessor for default_isolation_level attribute

Specified by:
default_isolation_level in interface TransactionalSessionOperations
Returns:
the attribute value

start

public void start(org.omg.CosTransactions.Coordinator transaction)
Description copied from interface: TransactionalSessionOperations
Operation start

Specified by:
start in interface TransactionalSessionOperations

suspend

public void suspend(org.omg.CosTransactions.Coordinator transaction)
Description copied from interface: TransactionalSessionOperations
Operation suspend

Specified by:
suspend in interface TransactionalSessionOperations

end

public void end(org.omg.CosTransactions.Coordinator transaction,
                boolean success)
Description copied from interface: TransactionalSessionOperations
Operation end

Specified by:
end in interface TransactionalSessionOperations

get_association_status

public short get_association_status()
Description copied from interface: TransactionalSessionOperations
Operation get_association_status

Specified by:
get_association_status in interface TransactionalSessionOperations

transaction

public org.omg.CosTransactions.Coordinator transaction()
Description copied from interface: TransactionalSessionOperations
Operation transaction

Specified by:
transaction in interface TransactionalSessionOperations