| java.lang.Object org.jivesoftware.database.SchemaManager
SchemaManager | public class SchemaManager (Code) | | Manages database schemas for Openfire and Openfire plugins. The manager uses the
jiveVersion database table to figure out which database schema is currently installed
and then attempts to automatically apply database schema changes as necessary.
Running database schemas automatically requires appropriate database permissions.
Without those permissions, the automatic installation/upgrade process will fail
and users will be prompted to apply database changes manually.
See Also: DbConnectionManager.getSchemaManager author: Matt Tucker |
Constructor Summary | |
| SchemaManager() Creates a new Schema manager. |
Method Summary | |
public boolean | checkOpenfireSchema(Connection con) Checks the Openfire database schema to ensure that it's installed and up to date.
If the schema isn't present or up to date, an automatic update will be attempted.
Parameters: con - a connection to the database. | public boolean | checkPluginSchema(Plugin plugin) Checks the plugin's database schema (if one is required) to ensure that it's
installed and up to date. |
SchemaManager | SchemaManager()(Code) | | Creates a new Schema manager.
|
checkOpenfireSchema | public boolean checkOpenfireSchema(Connection con)(Code) | | Checks the Openfire database schema to ensure that it's installed and up to date.
If the schema isn't present or up to date, an automatic update will be attempted.
Parameters: con - a connection to the database. true if database schema checked out fine, or was automatically installedor updated successfully. |
checkPluginSchema | public boolean checkPluginSchema(Plugin plugin)(Code) | | Checks the plugin's database schema (if one is required) to ensure that it's
installed and up to date. If the schema isn't present or up to date, an automatic
update will be attempted.
Parameters: plugin - the plugin. true if database schema checked out fine, or was automatically installedor updated successfully, or if it isn't needed. False will only be returnedif there is an error. |
|
|