public interface RepositoryVersionAware
Modifier and Type | Interface and Description |
---|---|
static interface |
RepositoryVersionAware.SchemaVersion |
Modifier and Type | Method and Description |
---|---|
default Version |
getVersion()
Returns current required version of the repository implementing this interface
(If we are version aware then we have to specify the version)
|
default SchemaLoader.Result |
updateSchema(Optional<Version> oldVersion,
Version newVersion)
Method used to update schema in the database from the (optional)
oldVersion to newVersion . |
default Version getVersion()
default SchemaLoader.Result updateSchema(Optional<Version> oldVersion, Version newVersion) throws Exception
oldVersion
to newVersion
. If the
process was correct (i.e. return SchemaLoader.Result.ok
) then new version will be stored
in the database.oldVersion
- optional version of the schema currently loaded in the databasenewVersion
- version to which component schema should be updatedSchemaLoader.Result.ok
should be returnedException
- when something unexpected happenedCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.