Top Description Fields Constructors Methods
org.jooq

public final Enum ContentType

extends Enum<ContentType>
Class Inheritance
Annotations
@Experimental
Imports
org.jetbrains.annotations.ApiStatus.Experimental

The File#type().

This type describes the semantics of File#content(). The files contained in Commit#delta() will be processed in the following order:

Field Summary

Modifier and TypeField and Description
public static final ContentType
INCREMENT

The file contains increment information.

public static final ContentType
SCHEMA

The file contains partial schema information.

public static final ContentType
SCRIPT

The file contains a script.

public static final ContentType
SNAPSHOT

A snapshot (or tag?) is a file / set of files that describes the entire schema.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ContentType
public static ContentType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INCREMENTback to summary
public static final ContentType INCREMENT

The file contains increment information.

Increments could be ALTER TABLE or UPDATE and similar statements, which are applied as increments in a migration using Meta#apply(Queries).

Within the same Commit.

SCHEMAback to summary
public static final ContentType SCHEMA

The file contains partial schema information.

Partial schema information could be CREATE TABLE and similar statements, which are not applied as increments in a Migration, but used to create a diff between two Version using Meta#migrateTo(Meta).

SCRIPTback to summary
public static final ContentType 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.

SNAPSHOTback to summary
public static final ContentType 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.

Constructor Detail

ContentTypeback to summary
private ContentType()

Method Detail

valueOfback to summary
public static ContentType valueOf(String name)
valuesback to summary
public static ContentType[] values()