/** * This class is generated by jOOQ */ package org.jooq.example.chart.db.tables; import java.sql.Timestamp; 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.chart.db.Keys; import org.jooq.example.chart.db.Public; import org.jooq.example.chart.db.tables.records.FilmCategoryRecord; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.0", "schema version:public_2", }, date = "2016-06-30T15:44:15.143Z", comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class FilmCategory extends TableImpl<FilmCategoryRecord> { private static final long serialVersionUID = -1690453370; /** * The reference instance of <code>public.film_category</code> */ public static final FilmCategory FILM_CATEGORY = new FilmCategory(); /** * The class holding records for this type */ @Override public Class<FilmCategoryRecord> getRecordType() { return FilmCategoryRecord.class; } /** * The column <code>public.film_category.film_id</code>. */ public final TableField<FilmCategoryRecord, Integer> FILM_ID = createField("film_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.film_category.category_id</code>. */ public final TableField<FilmCategoryRecord, Integer> CATEGORY_ID = createField("category_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.film_category.last_update</code>. */ public final TableField<FilmCategoryRecord, Timestamp> LAST_UPDATE = createField("last_update", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); /** * Create a <code>public.film_category</code> table reference */ public FilmCategory() { this("film_category", null); } /** * Create an aliased <code>public.film_category</code> table reference */ public FilmCategory(String alias) { this(alias, FILM_CATEGORY); } private FilmCategory(String alias, Table<FilmCategoryRecord> aliased) { this(alias, aliased, null); } private FilmCategory(String alias, Table<FilmCategoryRecord> aliased, Field<?>[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public UniqueKey<FilmCategoryRecord> getPrimaryKey() { return Keys.FILM_CATEGORY_PKEY; } /** * {@inheritDoc} */ @Override public List<UniqueKey<FilmCategoryRecord>> getKeys() { return Arrays.<UniqueKey<FilmCategoryRecord>>asList(Keys.FILM_CATEGORY_PKEY); } /** * {@inheritDoc} */ @Override public List<ForeignKey<FilmCategoryRecord, ?>> getReferences() { return Arrays.<ForeignKey<FilmCategoryRecord, ?>>asList(Keys.FILM_CATEGORY__FILM_CATEGORY_FILM_ID_FKEY, Keys.FILM_CATEGORY__FILM_CATEGORY_CATEGORY_ID_FKEY); } /** * {@inheritDoc} */ @Override public FilmCategory as(String alias) { return new FilmCategory(alias, this); } /** * Rename this table */ public FilmCategory rename(String name) { return new FilmCategory(name, null); } }