
Public Member Functions | |
| ERXMemoryMigrationLock () | |
| void | setVersionNumber (EOAdaptorChannel channel, EOModel model, int versionNumber) |
| boolean | tryLock (EOAdaptorChannel channel, EOModel model, String lockOwnerName) |
| void | unlock (EOAdaptorChannel channel, EOModel model) |
| int | versionNumber (EOAdaptorChannel channel, EOModel model) |
Protected Member Functions | |
| int | initialVersionForModel (EOModel model) |
Private Attributes | |
| NSMutableDictionary< String, Integer > | _modelVersions |
| int initialVersionForModel | ( | EOModel | model | ) | [protected] |
| void setVersionNumber | ( | EOAdaptorChannel | channel, | |
| EOModel | model, | |||
| int | versionNumber | |||
| ) |
Sets the current version number of the named model.
| channel | the adaptor channel associated with this process | |
| model | the model to set version information on | |
| versionNumber | the new version number |
Implements IERXMigrationLock.
| boolean tryLock | ( | EOAdaptorChannel | channel, | |
| EOModel | model, | |||
| String | lockOwnerName | |||
| ) |
Attempts to retrieve a lock on the migration process for the named model. A lockOwnerName is provided that provides a simple mechanism to recover from a stale lock. If the lock owner name passed in matches the current lock owner name, then the lock is acquired.
| channel | the adaptor channel associated with this process | |
| model | the model to try to lock | |
| lockOwnerName | the name of the lock owner |
Implements IERXMigrationLock.
| void unlock | ( | EOAdaptorChannel | channel, | |
| EOModel | model | |||
| ) |
Unlocks the given model. This should only be called if you acquired a lock with tryLock(..).
| channel | the adaptor channel associated with this process | |
| model | the model to unlock |
Implements IERXMigrationLock.
| int versionNumber | ( | EOAdaptorChannel | channel, | |
| EOModel | model | |||
| ) |
Returns the current version number of the named model.
| channel | the adaptor channel associated with this process | |
| model | the model to lookup version information on |
Implements IERXMigrationLock.
NSMutableDictionary<String, Integer> _modelVersions [private] |
1.5.8