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, transactionNestingLevel
public 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 EOAdaptorContext
public void beginTransaction()
beginTransaction
in class EOAdaptorContext
public void commitTransaction()
commitTransaction
in class EOAdaptorContext
public EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel
in class EOAdaptorContext
public void handleDroppedConnection()
handleDroppedConnection
in class EOAdaptorContext
public void rollbackTransaction()
rollbackTransaction
in class EOAdaptorContext
Copyright © 2002 – 2024 Project Wonder.