|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.mysql.v0_5.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(int expectedVersion)
Validates that the version number of the schema matches the expected version. |
| 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(int expectedVersion)
expectedVersion - The expected version number.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||