/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This class is generated by jOOQ */ package smoketest.jooq.domain; import javax.annotation.Generated; import org.jooq.ForeignKey; import org.jooq.Record; import org.jooq.UniqueKey; import org.jooq.impl.AbstractKeys; /** * A class modelling foreign key relationships between tables of the PUBLIC * schema */ @Generated(value = { "https://www.jooq.org", "jOOQ version:3.8.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, "CONSTRAINT_C", Language.LANGUAGE.ID); public static final UniqueKey CONSTRAINT_7 = createUniqueKey( Author.AUTHOR, "CONSTRAINT_7", Author.AUTHOR.ID); public static final UniqueKey CONSTRAINT_1 = createUniqueKey(Book.BOOK, "CONSTRAINT_1", Book.BOOK.ID); public static final UniqueKey CONSTRAINT_F = createUniqueKey( BookStore.BOOK_STORE, "CONSTRAINT_F", BookStore.BOOK_STORE.NAME); public static final UniqueKey CONSTRAINT_2 = createUniqueKey( BookToBookStore.BOOK_TO_BOOK_STORE, "CONSTRAINT_2", 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( Keys.CONSTRAINT_7, Book.BOOK, "FK_BOOK_AUTHOR", Book.BOOK.AUTHOR_ID); public static final ForeignKey FK_BOOK_LANGUAGE = createForeignKey( Keys.CONSTRAINT_C, Book.BOOK, "FK_BOOK_LANGUAGE", Book.BOOK.LANGUAGE_ID); public static final ForeignKey FK_B2BS_BOOK_STORE = createForeignKey( Keys.CONSTRAINT_F, BookToBookStore.BOOK_TO_BOOK_STORE, "FK_B2BS_BOOK_STORE", BookToBookStore.BOOK_TO_BOOK_STORE.NAME); public static final ForeignKey FK_B2BS_BOOK = createForeignKey( Keys.CONSTRAINT_1, BookToBookStore.BOOK_TO_BOOK_STORE, "FK_B2BS_BOOK", BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID); } }