
Classes | |
| class | ERXMigrationAction |
| class | ModelVersion |
Public Member Functions | |
| ERXMigrator (String lockOwnerName) | |
| void | migrateToLatest () |
Static Public Member Functions | |
| static boolean | shouldMigrateAtStartup () |
Static Public Attributes | |
| static final int | LATEST_VERSION = Integer.MAX_VALUE |
| static final Logger | log = Logger.getLogger(ERXMigrator.class) |
Protected Member Functions | |
| void | _buildDependenciesForModel (EOModel model, int migrateToVersion, Map< String, Integer > versions, Map< IERXMigration, ERXModelVersion > migrations) throws InstantiationException, IllegalAccessException |
| Map< IERXMigration, ERXModelVersion > | _buildDependenciesForModelsNamed (NSArray< String > modelNames, NSArray< String > skipModelNames) |
| boolean | canMigrateModel (EOModel model) |
| IERXMigrationLock | databaseLockForModel (EOModel model) |
| EOEditingContext | newEditingContext () |
Private Attributes | |
| String | _lockOwnerName |
| ERXMigrator | ( | String | lockOwnerName | ) |
Constructs an ERXMigrator with the given lock owner. For an application, the lock owner name defaults to appname-instancenumber.
| lockOwnerName | the name of the lock owner |
| void _buildDependenciesForModel | ( | EOModel | model, | |
| int | migrateToVersion, | |||
| Map< String, Integer > | versions, | |||
| Map< IERXMigration, ERXModelVersion > | migrations | |||
| ) | throws InstantiationException, IllegalAccessException [protected] |
| Map<IERXMigration, ERXModelVersion> _buildDependenciesForModelsNamed | ( | NSArray< String > | modelNames, | |
| NSArray< String > | skipModelNames | |||
| ) | [protected] |
| boolean canMigrateModel | ( | EOModel | model | ) | [protected] |
| IERXMigrationLock databaseLockForModel | ( | EOModel | model | ) | [protected] |
| void migrateToLatest | ( | ) |
Migrates all models specified in the default model group to the latest versions.
| IllegalAccessException | ||
| InstantiationException |
| EOEditingContext newEditingContext | ( | ) | [protected] |
Subclasses can override this to return a different editing context.
| static boolean shouldMigrateAtStartup | ( | ) | [static] |
Returns whether or not migration should run at startup. Defaults to false.
String _lockOwnerName [private] |
final int LATEST_VERSION = Integer.MAX_VALUE [static] |
Symbolic version number for migrating to "the latest" version.
final Logger log = Logger.getLogger(ERXMigrator.class) [static] |
1.5.8