Enum Class Migration
- All Implemented Interfaces:
CompileParameter, ParameterParser, Serializable, Comparable<Migration>, 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 voidcreateMigration(Context context, File path, DatabaseInfo dbInfo, String file) static String[]getAlias()static DatabaseInfogetDatabaseInfo(Context context) static FilegetOracleMigrationFile(Context context) static FilegetPostgresMigrationFile(Context context) getUsage()voidstatic MigrationReturns the enum constant of this class with the specified name.static Migration[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
DESCRIPTION_START
- See Also:
-
DESCRIPTION_END
- See Also:
-
POSTGRES_MIGRATION_FILE_NAME
- See Also:
-
ORACLE_MIGRATION_FILE_NAME
- See Also:
-
-
Constructor Details
-
Migration
private Migration()
-
-
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
-
getPostgresMigrationFile
-
getOracleMigrationFile
-
extractDescriptions
-
tryParse
-
check
- Specified by:
checkin interfaceCompileParameter
-
run
- Specified by:
runin interfaceCompileParameter- Throws:
ExitException
-
getDatabaseInfo
- Throws:
ExitException
-
createMigration
private static void createMigration(Context context, File path, DatabaseInfo dbInfo, String file) throws ExitException - Throws:
ExitException
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceCompileParameter
-
getDetailedDescription
- Specified by:
getDetailedDescriptionin interfaceCompileParameter
-