Top Description Methods
org.jooq

public Interface Commits

extends Iterable<Commit>
Known Direct Implementers
org.jooq.impl.CommitsImpl
Imports
java.util.Collection, org.jooq.migrations.xml.jaxb.MigrationsType, org.jetbrains.annotations.NotNull, .Nullable

A (sub) set of commits.

This type is used to group together a set of commits that form a subgraph of the complete commit graph. Like the complete graph, this subgraph will have a single root() node.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public void
add(Commit commit)

Add a commit to the graph.

public void
addAll(Commit... commits)

Add all commits to the graph.

public void
addAll(Collection<? extends Commit> commits)

Add all commits to the graph.

public @NotNull MigrationsType
export()

Export XML content from this commits graph.

public @Nullable Commit
get(String id)

Get a commit from the graph by ID, or null, if the ID was not found.

public @NotNull Commits
load(MigrationsType migrations)

Load XML content into this commits graph.

public @NotNull Commit
root()

The root node.

Inherited from java.lang.Iterable:
forEachiteratorspliterator

Method Detail

addback to summary
public void add(Commit commit)

Add a commit to the graph.

addAllback to summary
public void addAll(Commit... commits)

Add all commits to the graph.

addAllback to summary
public void addAll(Collection<? extends Commit> commits)

Add all commits to the graph.

exportback to summary
public @NotNull MigrationsType export()

Export XML content from this commits graph.

Annotations
@NotNull
getback to summary
public @Nullable Commit get(String id)

Get a commit from the graph by ID, or null, if the ID was not found.

Annotations
@Nullable
loadback to summary
public @NotNull Commits load(MigrationsType migrations)

Load XML content into this commits graph.

Annotations
@NotNull
rootback to summary
public @NotNull Commit root()

The root node.

Annotations
@NotNull