Project Wonder 5.0

er.memoryadaptor
Class EREntityStoreFactory

java.lang.Object
  extended by er.memoryadaptor.EREntityStoreFactory

public class EREntityStoreFactory
extends java.lang.Object

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

Author:
q

Field Summary
static java.lang.String RESET_ALL_ENTITIES
           
 
Constructor Summary
EREntityStoreFactory(java.lang.Class<? extends EREntityStore> clazz)
           
 
Method Summary
 EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.EOEntity entity)
          Returns an EREntityStore for the given entity.
 EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.EOEntity entity, boolean transactional)
          Returns an EREntityStore for the given entity.
 void beginTransaction()
           
 void commitTransaction()
           
 void resetAllEntities()
          Resets all the entities in this context, removing any known rows and clearing out any transactions.
 void resetAllEntities(com.webobjects.foundation.NSNotification object)
           
 void resetEntity(com.webobjects.eoaccess.EOEntity entity)
          Resets the given entity, removing any known rows and clearing out any transactions.
 void rollbackTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESET_ALL_ENTITIES

public static final java.lang.String RESET_ALL_ENTITIES
See Also:
Constant Field Values
Constructor Detail

EREntityStoreFactory

public EREntityStoreFactory(java.lang.Class<? extends EREntityStore> clazz)
Method Detail

resetAllEntities

public void resetAllEntities()
Resets all the entities in this context, removing any known rows and clearing out any transactions.


resetAllEntities

public void resetAllEntities(com.webobjects.foundation.NSNotification object)

resetEntity

public void resetEntity(com.webobjects.eoaccess.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

_entityStoreForEntity

public EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.EOEntity entity)
Returns an EREntityStore for the given entity.

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

_entityStoreForEntity

public EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.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

beginTransaction

public void beginTransaction()

commitTransaction

public void commitTransaction()

rollbackTransaction

public void rollbackTransaction()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.