- All Implemented Interfaces:
Serializable
,Comparable<ContentType>
,Constable
File.type()
.
This type describes the semantics of File.content()
. The files
contained in Commit.delta()
will be processed in the following order:
SNAPSHOT
(replacing all other contents of thisCommit
as well as previous commits, if migrating fromNode.root()
)INCREMENT
SCRIPT
SCHEMA
When undoing a migration, the order is:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe file contains decrement information.The file contains increment information.The file contains partial schema information.The file contains a script.A snapshot (or tag?) is a file / set of files that describes the entire schema. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentType
Returns the enum constant of this class with the specified name.static ContentType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCHEMA
The file contains partial schema information.Partial schema information could be
CREATE TABLE
and similar statements, which are not applied as increments in aMigration
, but used to create a diff between twoVersion
usingMeta.migrateTo(Meta)
. -
INCREMENT
The file contains increment information.Increments could be
ALTER TABLE
orUPDATE
and similar statements, which are applied as increments in a migration usingMeta.apply(Queries)
.Within the same
Commit
, increments are sorted according to theirFile.path()
. -
DECREMENT
The file contains decrement information.Decrements work like
INCREMENT
typed files, but are applied only when downgrading to a previous version, decrements are sorted in reverse order according to theirFile.path()
.This API is part of a commercial only feature. To use this feature, please use the jOOQ Professional Edition or the jOOQ Enterprise Edition.
-
SCRIPT
The 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.
-
SNAPSHOT
A 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.
This API is part of a commercial only feature. To use this feature, please use the jOOQ Professional Edition or the jOOQ Enterprise Edition.
-
-
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
-