Enum Class PostgresConnection
- All Implemented Interfaces:
CompileParameter, Serializable, Comparable<PostgresConnection>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate static voidcleanup(Connection conn, Context context) static voidstatic DatabaseInfoextractDatabaseInfoFromMigration(Context context, String previous) (package private) static StringextractPostgresVersion(String version, Context context) getAlias()getDatabaseDsl(Context context) static DatabaseInfogetDatabaseDslAndVersion(Context context) getUsage()private static Propertiesvoidprivate static booleantestConnection(Context context) static PostgresConnectionReturns the enum constant of this class with the specified name.static PostgresConnection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
PostgresConnection
private PostgresConnection()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getAlias
- Specified by:
getAliasin interfaceCompileParameter
-
getUsage
- Specified by:
getUsagein interfaceCompileParameter
-
getDatabaseDsl
- Throws:
ExitException
-
extractPostgresVersion
-
getDatabaseDslAndVersion
- Throws:
ExitException
-
extractDatabaseInfoFromMigration
public static DatabaseInfo extractDatabaseInfoFromMigration(Context context, String previous) throws ExitException - Throws:
ExitException
-
execute
- Throws:
ExitException
-
cleanup
-
parse
-
testConnection
- Throws:
ExitException
-
check
- Specified by:
checkin interfaceCompileParameter- Throws:
ExitException
-
run
- Specified by:
runin interfaceCompileParameter
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceCompileParameter
-
getDetailedDescription
- Specified by:
getDetailedDescriptionin interfaceCompileParameter
-