|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface IERXMigrationLock
Because you might be running with multiple instances, there needs to be a locking mechanism that is higher level than just a db context lock. IERXMigrationLock is a simple interface for accessing and locking information about the migration process.
| Method Summary | |
|---|---|
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,
java.lang.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. |
| Method Detail |
|---|
int versionNumber(com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model)
channel - the adaptor channel associated with this processmodel - the model to lookup version information on
void setVersionNumber(com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
int versionNumber)
channel - the adaptor channel associated with this processmodel - the model to set version information onversionNumber - the new version number
boolean tryLock(com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
java.lang.String lockOwnerName)
channel - the adaptor channel associated with this processmodel - the model to try to locklockOwnerName - the name of the lock owner
void unlock(com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model)
channel - the adaptor channel associated with this processmodel - the model to unlock
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||