|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.v0_6.impl.SchemaVersionValidator
public class SchemaVersionValidator
Reads the version number stored in the schema_info table and verifies that it matches the expected version.
Constructor Summary | |
---|---|
SchemaVersionValidator(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences)
Creates a new instance. |
Method Summary | |
---|---|
void |
validateVersion(java.lang.String[] expectedMigrations)
Validates that the schema migrations match the expected list of migrations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaVersionValidator(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences)
loginCredentials
- Contains all information required to connect to the database.preferences
- The database preferences.Method Detail |
---|
public void validateVersion(java.lang.String[] expectedMigrations)
expectedMigrations
- The expected schema migrations.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |