java.lang.Object
io.ebeaninternal.api.DbOffline
Helper to indicate that an EbeanServer should come up offline
typically for DDL generation purposes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidasH2()Bring up the next EbeanServer instance using the H2 platform.static StringReturn the platform to use when creating the next EbeanServer instance.static booleanReturn true if the migration is running.static booleanisSet()Return true if the offline platform has been set.static voidreset()Reset the offline platform and runningMigration flag.static voidCalled when the migration is running is order to stop other plugins like the full DDL generation from executing.static voidsetPlatform(io.ebean.annotation.Platform dbPlatform) Set the platform to use when creating the next EbeanServer instance.static voidsetPlatform(String platformName) Set the platform to use when creating the next EbeanServer instance.
-
Constructor Details
-
DbOffline
public DbOffline()
-
-
Method Details
-
setPlatform
public static void setPlatform(io.ebean.annotation.Platform dbPlatform) Set the platform to use when creating the next EbeanServer instance. -
setPlatform
Set the platform to use when creating the next EbeanServer instance. -
getPlatform
Return the platform to use when creating the next EbeanServer instance. -
asH2
public static void asH2()Bring up the next EbeanServer instance using the H2 platform. -
isSet
public static boolean isSet()Return true if the offline platform has been set. -
isGenerateMigration
public static boolean isGenerateMigration()Return true if the migration is running. This typically means don't run the plugins like full DDL generation. -
setGenerateMigration
public static void setGenerateMigration()Called when the migration is running is order to stop other plugins like the full DDL generation from executing. -
reset
public static void reset()Reset the offline platform and runningMigration flag.
-