/**
* This class is generated by jOOQ
*/
package sample.jooq.domain;
import javax.annotation.Generated;
import org.jooq.ForeignKey;
import org.jooq.UniqueKey;
import org.jooq.impl.AbstractKeys;
import sample.jooq.domain.tables.Author;
import sample.jooq.domain.tables.Book;
import sample.jooq.domain.tables.BookStore;
import sample.jooq.domain.tables.BookToBookStore;
import sample.jooq.domain.tables.Language;
import sample.jooq.domain.tables.records.AuthorRecord;
import sample.jooq.domain.tables.records.BookRecord;
import sample.jooq.domain.tables.records.BookStoreRecord;
import sample.jooq.domain.tables.records.BookToBookStoreRecord;
import sample.jooq.domain.tables.records.LanguageRecord;
/**
* A class modelling foreign key relationships between tables of the PUBLIC
* schema
*/
@Generated(value = { "http://www.jooq.org", "jOOQ version:3.6.2" }, comments = "This class is generated by jOOQ")
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey CONSTRAINT_C = UniqueKeys0.CONSTRAINT_C;
public static final UniqueKey CONSTRAINT_7 = UniqueKeys0.CONSTRAINT_7;
public static final UniqueKey CONSTRAINT_1 = UniqueKeys0.CONSTRAINT_1;
public static final UniqueKey CONSTRAINT_F = UniqueKeys0.CONSTRAINT_F;
public static final UniqueKey CONSTRAINT_2 = UniqueKeys0.CONSTRAINT_2;
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey FK_BOOK_AUTHOR = ForeignKeys0.FK_BOOK_AUTHOR;
public static final ForeignKey FK_BOOK_LANGUAGE = ForeignKeys0.FK_BOOK_LANGUAGE;
public static final ForeignKey FK_B2BS_BOOK_STORE = ForeignKeys0.FK_B2BS_BOOK_STORE;
public static final ForeignKey FK_B2BS_BOOK = ForeignKeys0.FK_B2BS_BOOK;
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
private static class UniqueKeys0 extends AbstractKeys {
public static final UniqueKey CONSTRAINT_C = createUniqueKey(
Language.LANGUAGE, Language.LANGUAGE.ID);
public static final UniqueKey CONSTRAINT_7 = createUniqueKey(
Author.AUTHOR, Author.AUTHOR.ID);
public static final UniqueKey CONSTRAINT_1 = createUniqueKey(
Book.BOOK, Book.BOOK.ID);
public static final UniqueKey CONSTRAINT_F = createUniqueKey(
BookStore.BOOK_STORE, BookStore.BOOK_STORE.NAME);
public static final UniqueKey CONSTRAINT_2 = createUniqueKey(
BookToBookStore.BOOK_TO_BOOK_STORE,
BookToBookStore.BOOK_TO_BOOK_STORE.NAME,
BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
}
private static class ForeignKeys0 extends AbstractKeys {
public static final ForeignKey FK_BOOK_AUTHOR = createForeignKey(
sample.jooq.domain.Keys.CONSTRAINT_7, Book.BOOK, Book.BOOK.AUTHOR_ID);
public static final ForeignKey FK_BOOK_LANGUAGE = createForeignKey(
sample.jooq.domain.Keys.CONSTRAINT_C, Book.BOOK, Book.BOOK.LANGUAGE_ID);
public static final ForeignKey FK_B2BS_BOOK_STORE = createForeignKey(
sample.jooq.domain.Keys.CONSTRAINT_F, BookToBookStore.BOOK_TO_BOOK_STORE,
BookToBookStore.BOOK_TO_BOOK_STORE.NAME);
public static final ForeignKey FK_B2BS_BOOK = createForeignKey(
sample.jooq.domain.Keys.CONSTRAINT_1, BookToBookStore.BOOK_TO_BOOK_STORE,
BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
}
}