EREntityStoreFactory Class Reference

Collaboration diagram for EREntityStoreFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EREntityStore _entityStoreForEntity (EOEntity entity, boolean transactional)
EREntityStore _entityStoreForEntity (EOEntity entity)
void beginTransaction ()
void commitTransaction ()
 EREntityStoreFactory (Class<?extends EREntityStore > clazz)
void resetAllEntities (NSNotification object)
void resetAllEntities ()
void resetEntity (EOEntity entity)
void rollbackTransaction ()

Static Public Attributes

static final String RESET_ALL_ENTITIES = "EREntityStoreResetAllEntities"

Private Member Functions

String _entityExternalName (EOEntity entity)
EREntityStore _entityStoreForExternalName (String name, boolean transactional)
NSSet< EOEntity > _relatedEntities (EOEntity entity)

Private Attributes

final Class<?extends
EREntityStore
_entityStoreClazz
NSMutableDictionary< String,
EREntityStore
_entityStores
boolean _hasTransaction = false
NSMutableDictionary< String,
EREntityStore
_transactionEntityStores


Detailed Description

EREntityStoreFactory is an factory class used for creating and managing EREntityStore instances.

Author:
q

Constructor & Destructor Documentation

EREntityStoreFactory ( Class<?extends EREntityStore clazz  ) 


Member Function Documentation

String _entityExternalName ( EOEntity  entity  )  [private]

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

EREntityStore _entityStoreForExternalName ( String  name,
boolean  transactional 
) [private]

NSSet<EOEntity> _relatedEntities ( EOEntity  entity  )  [private]

void beginTransaction (  ) 

void commitTransaction (  ) 

void resetAllEntities ( NSNotification  object  ) 

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. This is the equivalent deleting all rows in a relational database table. Be careful using this if you use single table inheritance.

Parameters:
entity the entity to reset

void rollbackTransaction (  ) 


Member Data Documentation

final Class<? extends EREntityStore> _entityStoreClazz [private]

boolean _hasTransaction = false [private]

final String RESET_ALL_ENTITIES = "EREntityStoreResetAllEntities" [static]


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