|
Project Wonder 5.0.0.8794 | |||||||||
| 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(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. |
| Method Detail |
|---|
int versionNumber(EOAdaptorChannel channel,
EOModel model)
channel - the adaptor channel associated with this processmodel - the model to lookup version information on
void setVersionNumber(EOAdaptorChannel channel,
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(EOAdaptorChannel channel,
EOModel model,
String lockOwnerName)
channel - the adaptor channel associated with this processmodel - the model to try to locklockOwnerName - the name of the lock owner
void unlock(EOAdaptorChannel channel,
EOModel model)
channel - the adaptor channel associated with this processmodel - the model to unlock
|
Last updated: Thu, Jan 8, 2009 12:32 PM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||