public class ERMemoryAdaptorContext extends EOAdaptorContext
EOAdaptorContext.Delegate_adaptor, _channels, _delegate, _delegateRespondsTo_didBegin, _delegateRespondsTo_didCommit, _delegateRespondsTo_didRollback, _delegateRespondsTo_shouldBegin, _delegateRespondsTo_shouldCommit, _delegateRespondsTo_shouldConnect, _delegateRespondsTo_shouldRollback, _hasOpenTransaction, AdaptorContextBeginTransactionNotification, AdaptorContextCommitTransactionNotification, AdaptorContextRollbackTransactionNotification| Constructor and Description |
|---|
ERMemoryAdaptorContext(EOAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
EREntityStore |
_entityStoreForEntity(EOEntity entity)
Returns an EREntityStore for the given entity.
|
EREntityStore |
_entityStoreForEntity(EOEntity entity,
boolean transactional)
Returns an EREntityStore for the given entity.
|
NSDictionary<String,Object> |
_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.
|
void |
rollbackTransaction() |
_registerAdaptorChannel, _unregisterAdaptorChannel, adaptor, canNestTransactions, channels, defaultDelegate, delegate, hasBusyChannels, hasOpenChannels, hasOpenTransaction, setDefaultDelegate, setDelegate, transactionDidBegin, transactionDidCommit, transactionDidRollback, transactionNestingLevelpublic ERMemoryAdaptorContext(EOAdaptor adaptor)
public void resetAllEntities()
public void resetEntity(EOEntity entity)
entity - the entity to resetpublic EREntityStore _entityStoreForEntity(EOEntity entity)
entity - the entity to lookuppublic EREntityStore _entityStoreForEntity(EOEntity entity, boolean transactional)
entity - the entity to lookuptransactional - if true, this will return a transactional view of the storepublic NSDictionary<String,Object> _newPrimaryKey(EOEnterpriseObject object, EOEntity entity)
_newPrimaryKey in class EOAdaptorContextpublic void beginTransaction()
beginTransaction in class EOAdaptorContextpublic void commitTransaction()
commitTransaction in class EOAdaptorContextpublic EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel in class EOAdaptorContextpublic void handleDroppedConnection()
handleDroppedConnection in class EOAdaptorContextpublic void rollbackTransaction()
rollbackTransaction in class EOAdaptorContextCopyright © 2002 – 2025 Project Wonder.