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