public interface JetspeedMigration
Modifier and Type | Interface and Description |
---|---|
static class |
JetspeedMigration.Static
Static utility functions class.
|
Modifier and Type | Field and Description |
---|---|
static int |
FETCH_SIZE |
static int |
JETSPEED_SCHEMA_VERSION_2_1_3 |
static int |
JETSPEED_SCHEMA_VERSION_2_1_4 |
static int |
JETSPEED_SCHEMA_VERSION_2_2_0 |
static int |
JETSPEED_SCHEMA_VERSION_2_2_1 |
static int |
JETSPEED_SCHEMA_VERSION_UNKNOWN |
static Map<String,String> |
LAYOUT_DECORATOR_2_1_X_TO_2_2_X_MIGRATION_MAP |
static Map<String,String> |
PORTLET_DECORATOR_2_1_X_TO_2_2_X_MIGRATION_MAP |
static Map<String,String> |
PORTLET_NAME_2_1_X_TO_2_2_X_MIGRATION_MAP |
Modifier and Type | Method and Description |
---|---|
int |
detectSourceVersion(Connection sourceConnection,
int sourceVersion)
Detect Jetspeed schema version of source database.
|
String |
getName()
Get migration name.
|
JetspeedMigrationResult |
migrate(Connection sourceConnection,
int sourceVersion,
Connection targetConnection,
JetspeedMigrationListener migrationListener)
Migrate data from source to target database.
|
static final int FETCH_SIZE
static final int JETSPEED_SCHEMA_VERSION_UNKNOWN
static final int JETSPEED_SCHEMA_VERSION_2_1_3
static final int JETSPEED_SCHEMA_VERSION_2_1_4
static final int JETSPEED_SCHEMA_VERSION_2_2_0
static final int JETSPEED_SCHEMA_VERSION_2_2_1
static final Map<String,String> PORTLET_NAME_2_1_X_TO_2_2_X_MIGRATION_MAP
static final Map<String,String> LAYOUT_DECORATOR_2_1_X_TO_2_2_X_MIGRATION_MAP
String getName()
int detectSourceVersion(Connection sourceConnection, int sourceVersion) throws SQLException
sourceConnection
- connection to source databasesourceVersion
- detected minimal source schema versionSQLException
- on SQL error or version incompatibilityJetspeedMigrationResult migrate(Connection sourceConnection, int sourceVersion, Connection targetConnection, JetspeedMigrationListener migrationListener) throws SQLException
sourceConnection
- connection to source databasesourceVersion
- source versiontargetConnection
- connection to target databasemigrationListener
- migration listenerSQLException
- on SQL error or version incompatibilityCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.