/** * Return true if we're on an old version */ private MigrationRelationship<MvccLogEntrySerializationStrategy> getMigrationRelationShip() { return this.versions .getMigrationRelationship( migrationInfoCache.getVersion( CollectionMigrationPlugin.PLUGIN_NAME ) ); } }
/** * Given the current system version, return the maximum migration version we can move to * @param currentVersion * @return */ public int getMaxVersion(final int currentVersion){ return getMigrationRelationship( currentVersion ).to.getImplementationVersion(); }
/** * Return true if we're on an old version */ private MigrationRelationship<EdgeMetadataSerialization> getMigrationRelationShip() { return this.versions.getMigrationRelationship( migrationInfoCache.getVersion( GraphMigrationPlugin.PLUGIN_NAME ) ); }
/** * Return true if we're on an old version */ private MigrationRelationship<MvccEntitySerializationStrategy> getMigrationRelationShip() { return this.versions.getMigrationRelationship( migrationInfoCache.getVersion( CollectionMigrationPlugin.PLUGIN_NAME ) ); }
/** * Return true if we're on an old version */ private MigrationRelationship<UniqueValueSerializationStrategy> getMigrationRelationShip() { return this.versions .getMigrationRelationship( migrationInfoCache.getVersion( CollectionMigrationPlugin.PLUGIN_NAME ) ); }
allVersions.getMigrationRelationship( currentVersion );
allVersions.getMigrationRelationship( currentVersion );
set.getMigrationRelationship( 0 ); fail( "I should throw an exception" ); MigrationRelationship<TestVersionImpl> migrationRelationship = set.getMigrationRelationship( 1 ); migrationRelationship = set.getMigrationRelationship( 2 ); migrationRelationship = set.getMigrationRelationship( 3 ); set.getMigrationRelationship( 4 ); fail( "I should throw an exception" );
set.getMigrationRelationship( 0 ); fail( "I should throw an exception" ); MigrationRelationship<TestVersionImpl> migrationRelationship = set.getMigrationRelationship( 1 ); migrationRelationship = set.getMigrationRelationship( 2 ); migrationRelationship = set.getMigrationRelationship( 3 ); migrationRelationship = set.getMigrationRelationship( 4 ); migrationRelationship = set.getMigrationRelationship( 5 ); migrationRelationship = set.getMigrationRelationship( 6 ); set.getMigrationRelationship( 7 ); fail( "I should throw an exception" );
versions.getMigrationRelationship( startVersion.getVersion() ); versions.getMigrationRelationship( newVersion );