public class ERMemoryAdaptorContext
extends com.webobjects.eoaccess.EOAdaptorContext
_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(com.webobjects.eoaccess.EOAdaptor adaptor) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
NSDictionary<String,Object> |
_newPrimaryKey(com.webobjects.eocontrol.EOEnterpriseObject object,
com.webobjects.eoaccess.EOEntity entity) |
void |
beginTransaction() |
void |
commitTransaction() |
com.webobjects.eoaccess.EOAdaptorChannel |
createAdaptorChannel() |
void |
handleDroppedConnection() |
void |
resetAllEntities()
Resets all the entities in this context, removing any known rows and
clearing out any transactions.
|
void |
resetEntity(com.webobjects.eoaccess.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(com.webobjects.eoaccess.EOAdaptor adaptor)
public void resetAllEntities()
public void resetEntity(com.webobjects.eoaccess.EOEntity entity)
entity - the entity to resetpublic EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.EOEntity entity)
entity - the entity to lookuppublic EREntityStore _entityStoreForEntity(com.webobjects.eoaccess.EOEntity entity, boolean transactional)
entity - the entity to lookuptransactional - if true, this will return a transactional view of the storepublic NSDictionary<String,Object> _newPrimaryKey(com.webobjects.eocontrol.EOEnterpriseObject object, com.webobjects.eoaccess.EOEntity entity)
_newPrimaryKey in class com.webobjects.eoaccess.EOAdaptorContextpublic void beginTransaction()
beginTransaction in class com.webobjects.eoaccess.EOAdaptorContextpublic void commitTransaction()
commitTransaction in class com.webobjects.eoaccess.EOAdaptorContextpublic com.webobjects.eoaccess.EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel in class com.webobjects.eoaccess.EOAdaptorContextpublic void handleDroppedConnection()
handleDroppedConnection in class com.webobjects.eoaccess.EOAdaptorContextpublic void rollbackTransaction()
rollbackTransaction in class com.webobjects.eoaccess.EOAdaptorContextCopyright © 2002 – 2020 Project Wonder.