public enum PostgresConnection extends Enum<PostgresConnection> implements CompileParameter
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Context context) |
static void |
execute(Context context,
String sql) |
static DatabaseInfo |
extractDatabaseInfoFromMigration(Context context,
String previous) |
String |
getAlias() |
static Map<String,String> |
getDatabaseDsl(Context context) |
static DatabaseInfo |
getDatabaseDslAndVersion(Context context) |
String |
getDetailedDescription() |
String |
getShortDescription() |
String |
getUsage() |
void |
run(Context context) |
static PostgresConnection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PostgresConnection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostgresConnection INSTANCE
public static PostgresConnection[] values()
for (PostgresConnection c : PostgresConnection.values()) System.out.println(c);
public static PostgresConnection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAlias()
getAlias in interface CompileParameterpublic String getUsage()
getUsage in interface CompileParameterpublic static Map<String,String> getDatabaseDsl(Context context) throws ExitException
ExitExceptionpublic static DatabaseInfo getDatabaseDslAndVersion(Context context) throws ExitException
ExitExceptionpublic static DatabaseInfo extractDatabaseInfoFromMigration(Context context, String previous) throws ExitException
ExitExceptionpublic static void execute(Context context, String sql) throws ExitException
ExitExceptionpublic boolean check(Context context) throws ExitException
check in interface CompileParameterExitExceptionpublic void run(Context context)
run in interface CompileParameterpublic String getShortDescription()
getShortDescription in interface CompileParameterpublic String getDetailedDescription()
getDetailedDescription in interface CompileParameterCopyright © 2021. All rights reserved.