public class ERXMemoryMigrationLock extends Object implements IERXMigrationLock
Constructor and Description |
---|
ERXMemoryMigrationLock() |
Modifier and Type | Method and Description |
---|---|
protected int |
initialVersionForModel(EOModel model) |
void |
setVersionNumber(EOAdaptorChannel channel,
EOModel model,
int versionNumber)
Sets the current version number of the named model.
|
boolean |
tryLock(EOAdaptorChannel channel,
EOModel model,
String lockOwnerName)
Attempts to retrieve a lock on the migration process for the named model.
|
void |
unlock(EOAdaptorChannel channel,
EOModel model)
Unlocks the given model.
|
int |
versionNumber(EOAdaptorChannel channel,
EOModel model)
Returns the current version number of the named model.
|
public void setVersionNumber(EOAdaptorChannel channel, EOModel model, int versionNumber)
IERXMigrationLock
setVersionNumber
in interface IERXMigrationLock
channel
- the adaptor channel associated with this processmodel
- the model to set version information onversionNumber
- the new version numberpublic boolean tryLock(EOAdaptorChannel channel, EOModel model, String lockOwnerName)
IERXMigrationLock
tryLock
in interface IERXMigrationLock
channel
- the adaptor channel associated with this processmodel
- the model to try to locklockOwnerName
- the name of the lock ownerpublic void unlock(EOAdaptorChannel channel, EOModel model)
IERXMigrationLock
unlock
in interface IERXMigrationLock
channel
- the adaptor channel associated with this processmodel
- the model to unlockpublic int versionNumber(EOAdaptorChannel channel, EOModel model)
IERXMigrationLock
versionNumber
in interface IERXMigrationLock
channel
- the adaptor channel associated with this processmodel
- the model to lookup version information onprotected int initialVersionForModel(EOModel model)
Copyright © 2002 – 2024 Project Wonder.