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