|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbmaintain.launch.api.DbMaintainOperations
public class DbMaintainOperations
Class that offers static methods that expose all available DbMaintain operations.
Constructor Summary | |
---|---|
DbMaintainOperations()
|
Method Summary | |
---|---|
static void |
cleanDatabase()
Removes the data of all database tables, except for the DBMAINTAIN_SCRIPTS table. |
static void |
clearDatabase()
Removes all database items, and empties the DBMAINTAIN_SCRIPTS table. |
static void |
createScriptArchive(String archiveFileName)
Creates an archive file containing all scripts in all configured script locations |
static void |
disableConstraints()
Disables or drops all foreign key and not null constraints. |
static void |
markDatabaseAsUptodate()
Marks the database as up-to-date, without executing any script. |
static void |
updateDatabase()
Updates the database to the latest version. |
static void |
updateSequences()
Updates all sequences and identity columns to a minimum value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbMaintainOperations()
Method Detail |
---|
public static void createScriptArchive(String archiveFileName)
archiveFileName
- The name of the archive file to createpublic static void updateDatabase()
public static void markDatabaseAsUptodate()
public static void clearDatabase()
public static void cleanDatabase()
public static void disableConstraints()
public static void updateSequences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |