- All Implemented Interfaces:
This type describes the semantics of
File.content(). The files
Commit.delta() will be processed in the following order:
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Method SummaryModifier and TypeMethodDescription
static ContentTypeReturns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
SCHEMApublic static final ContentType SCHEMAThe file contains partial schema information.
Partial schema information could be
CREATE TABLEand similar statements, which are not applied as increments in a
Migration, but used to create a diff between two
INCREMENTpublic static final ContentType INCREMENTThe file contains increment information.
Increments could be
UPDATEand similar statements, which are applied as increments in a migration using
Within the same
SCRIPTpublic static final ContentType SCRIPTThe file contains a script.
Scripts are increments that are not processed by jOOQ, and can thus not be interpreted. They can contain vendor-specific SQL that jOOQ doesn't understand.
SNAPSHOTpublic static final ContentType SNAPSHOTA snapshot (or tag?) is a file / set of files that describes the entire schema.
In order to restore a database, or install a new one, we don't have to go back any further than the snapshot.
valuespublic static ContentType values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfpublic static ContentType valueOf
(String name)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.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum class has no constant with the specified name
NullPointerException- if the argument is null