Class DefaultRepositoryExporter
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.server.db.evolution.phased.BasicPhaseHandler
org.eclipse.emf.cdo.server.db.evolution.phased.DefaultRepositoryExporter
- All Implemented Interfaces:
Phase.Handler,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.event.INotifier.INotifier2,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Evolves the models with the given mapping strategy, context, and store accessor.
This method performs the following steps:
- It delegates the model evolution to the mapping strategy, which is responsible for updating the database schema, migrating the existing data, and changing the container feature IDs in case of shifted features.
- It updates the system tables, including the cdo_package_units table, cdo_package_infos table, and cdo_external_refs table.
- It commits the transaction unless it's a dry run, in which case it rolls back the changes.
- Since:
- 4.14
- Author:
- Eike Stepper
- No Implement
- This package is currently considered provisional.
- No Extend
- This package is currently considered provisional.
- No Reference
- This package is currently considered provisional.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.event.Notifier.CancelationNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe factory type of the default repository exporter.Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABELFields inherited from interface org.eclipse.emf.cdo.server.db.evolution.phased.Phase.Handler
PRODUCT_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionCreates an XML repository exporter.DefaultRepositoryExporter(boolean binary) Creates a repository exporter that is either binary or XML. -
Method Summary
Methods inherited from class org.eclipse.emf.cdo.server.db.evolution.phased.BasicPhaseHandler
doBeforeActivate, getPhase, setPhaseMethods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
FACTORY_TYPE
The factory type of the default repository exporter.- See Also:
-
-
Constructor Details
-
DefaultRepositoryExporter
public DefaultRepositoryExporter()Creates an XML repository exporter. -
DefaultRepositoryExporter
public DefaultRepositoryExporter(boolean binary) Creates a repository exporter that is either binary or XML.
-
-
Method Details
-
isBinary
public boolean isBinary() -
setBinary
public void setBinary(boolean binary) -
execute
Description copied from interface:Phase.HandlerExecutes the phase handler.- Throws:
Exception
-