public class DatabaseLifeCycleUtils extends Object
| Constructor and Description |
|---|
DatabaseLifeCycleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
backupDatabase(Statement stmt,
String databaseName,
DatabaseConfiguration config,
String fileName) |
static void |
deleteTable(String tableName,
int databaseType,
Statement stmt) |
static String |
extractText(InputStream inStream) |
static void |
resetTableIndex(String tableName,
int databaseType,
Statement stmt) |
static void |
restoreDatabase(Statement stmt,
String databaseName,
DatabaseConfiguration config,
String fileName) |
public static void backupDatabase(Statement stmt, String databaseName, DatabaseConfiguration config, String fileName) throws Exception
Exceptionpublic static void restoreDatabase(Statement stmt, String databaseName, DatabaseConfiguration config, String fileName) throws Exception
Exceptionpublic static String extractText(InputStream inStream) throws IOException
IOExceptionpublic static void deleteTable(String tableName, int databaseType, Statement stmt) throws SQLException
SQLExceptionpublic static void resetTableIndex(String tableName, int databaseType, Statement stmt) throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.