ERMemoryAdaptorContext Class Reference

Inherits com::webobjects::eoaccess::EOAdaptorContext.

Collaboration diagram for ERMemoryAdaptorContext:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EREntityStore _entityStoreForEntity (EOEntity entity, boolean transactional)
EREntityStore _entityStoreForEntity (EOEntity entity)
NSDictionary _newPrimaryKey (EOEnterpriseObject object, EOEntity entity)
void beginTransaction ()
void commitTransaction ()
EOAdaptorChannel createAdaptorChannel ()
 ERMemoryAdaptorContext (EOAdaptor adaptor)
void handleDroppedConnection ()
void resetAllEntities ()
void resetEntity (EOEntity entity)
void rollbackTransaction ()

Static Private Attributes

static final EREntityStoreFactory _storeFactory = new EREntityStoreFactory(ERMemoryEntityStore.class)


Detailed Description

ERMemoryAdaptorContext provides the adaptor context implementation for ERMemoryAdaptor. For the most part, you don't need to interact with ERMemoryAdaptor at this level. However, the context does expose resetEntity(EOEntity) and resetAllEntities() methods which allow control over resetting the memory datastore. This can be helpful when you need to reset the "database" between test cases.

Author:
mschrag

Constructor & Destructor Documentation

ERMemoryAdaptorContext ( EOAdaptor  adaptor  ) 


Member Function Documentation

EREntityStore _entityStoreForEntity ( EOEntity  entity,
boolean  transactional 
)

Returns an EREntityStore for the given entity.

Parameters:
entity the entity to lookup
transactional if true, this will return a transactional view of the store
Returns:
the datastore for the entity

EREntityStore _entityStoreForEntity ( EOEntity  entity  ) 

Returns an EREntityStore for the given entity.

Parameters:
entity the entity to lookup
Returns:
the datastore for the entity

NSDictionary _newPrimaryKey ( EOEnterpriseObject  object,
EOEntity  entity 
)

void beginTransaction (  ) 

void commitTransaction (  ) 

EOAdaptorChannel createAdaptorChannel (  ) 

void handleDroppedConnection (  ) 

void resetAllEntities (  ) 

Resets all the entities in this context, removing any known rows and clearing out any transactions.

void resetEntity ( EOEntity  entity  ) 

Resets the given entity, removing any known rows and clearing out any transactions.

Parameters:
entity the entity to reset

void rollbackTransaction (  ) 


Member Data Documentation

final EREntityStoreFactory _storeFactory = new EREntityStoreFactory(ERMemoryEntityStore.class) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:23 2012 for Project Wonder by  doxygen 1.5.8