org.jooq.example.flyway.db.h2.tables.Book Maven / Gradle / Ivy
/**
* This class is generated by jOOQ
*/
package org.jooq.example.flyway.db.h2.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.example.flyway.db.h2.FlywayTest;
import org.jooq.example.flyway.db.h2.Keys;
import org.jooq.example.flyway.db.h2.tables.records.BookRecord;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.4",
"catalog version:DEFAULT_CATALOG_20211023101339",
"schema version:FLYWAY_TEST_3",
},
date = "2021-10-23T10:13:38.976+00:00",
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Book extends TableImpl {
private static final long serialVersionUID = -1968286990;
/**
* The reference instance of FLYWAY_TEST.BOOK
*/
public static final Book BOOK = new Book();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return BookRecord.class;
}
/**
* The column FLYWAY_TEST.BOOK.ID
.
*/
public final TableField ID = createField("ID", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column FLYWAY_TEST.BOOK.AUTHOR_ID
.
*/
public final TableField AUTHOR_ID = createField("AUTHOR_ID", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column FLYWAY_TEST.BOOK.TITLE
.
*/
public final TableField TITLE = createField("TITLE", org.jooq.impl.SQLDataType.VARCHAR.length(400).nullable(false), this, "");
/**
* Create a FLYWAY_TEST.BOOK
table reference
*/
public Book() {
this("BOOK", null);
}
/**
* Create an aliased FLYWAY_TEST.BOOK
table reference
*/
public Book(String alias) {
this(alias, BOOK);
}
private Book(String alias, Table aliased) {
this(alias, aliased, null);
}
private Book(String alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return FlywayTest.FLYWAY_TEST;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey getPrimaryKey() {
return Keys.PK_T_BOOK;
}
/**
* {@inheritDoc}
*/
@Override
public List> getKeys() {
return Arrays.>asList(Keys.PK_T_BOOK);
}
/**
* {@inheritDoc}
*/
@Override
public List> getReferences() {
return Arrays.>asList(Keys.FK_T_BOOK_AUTHOR_ID);
}
/**
* {@inheritDoc}
*/
@Override
public Book as(String alias) {
return new Book(alias, this);
}
/**
* Rename this table
*/
public Book rename(String name) {
return new Book(name, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy