Пример #1
0
		public override void Convert(ConversionStage.SystemUpStage stage)
		{
			// calling #storedClasses forces reading all classes
			// That's good enough to load them all and to call the
			// above convert method.
			stage.File().StoredClasses();
		}
Пример #2
0
 public static bool Convert(ConversionStage stage)
 {
     if (!NeedsConversion(stage.ConverterVersion()))
     {
         return false;
     }
     return Instance().RunConversions(stage);
 }
		public override void Convert(ConversionStage.SystemUpStage stage)
		{
			LocalObjectContainer container = stage.File();
			if (!container.Config().GenerateCommitTimestamps().DefiniteYes())
			{
				return;
			}
			container.ClassCollection().WriteAllClasses();
			BuildCommitTimestampIndex(container);
			container.SystemTransaction().Commit();
		}
Пример #4
0
 public virtual bool RunConversions(ConversionStage stage)
 {
     var startingVersion = Math.Max(stage.ConverterVersion() + 1, _minimumVersion);
     for (var version = startingVersion; version <= Version; version++)
     {
         var conversion = ConversionFor(version);
         if (conversion == null)
         {
             throw new InvalidOperationException("Could not find a conversion for version " +
                                                 version);
         }
         stage.Accept(conversion);
     }
     return true;
 }
Пример #5
0
        public virtual bool RunConversions(ConversionStage stage)
        {
            int startingVersion = Math.Max(stage.ConverterVersion() + 1, _minimumVersion);

            for (int version = startingVersion; version <= Version; version++)
            {
                Conversion conversion = ConversionFor(version);
                if (conversion == null)
                {
                    throw new InvalidOperationException("Could not find a conversion for version " +
                                                        version);
                }
                stage.Accept(conversion);
            }
            return(true);
        }
Пример #6
0
		/// <param name="stage"></param>
		public virtual void Convert(ConversionStage.SystemUpStage stage)
		{
		}
Пример #7
0
		/// <param name="stage"></param>
		public virtual void Convert(ConversionStage.ClassCollectionAvailableStage stage)
		{
		}
Пример #8
0
		public override void Convert(ConversionStage.SystemUpStage stage)
		{
			stage.File().ClassCollection().WriteAllClasses();
		}
		public override void Convert(ConversionStage.SystemUpStage stage)
		{
			stage.File().ClassCollection().WriteAllClasses();
			RebuildUUIDIndex(stage.File());
			FreeOldUUIDMetaIndex(stage.File());
		}