/** * 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.Identity; 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.StaffRecord; 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 Staff extends TableImpl<StaffRecord> { private static final long serialVersionUID = -1621501102; /** * The reference instance of <code>public.staff</code> */ public static final Staff STAFF = new Staff(); /** * The class holding records for this type */ @Override public Class<StaffRecord> getRecordType() { return StaffRecord.class; } /** * The column <code>public.staff.staff_id</code>. */ public final TableField<StaffRecord, Integer> STAFF_ID = createField("staff_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('staff_staff_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column <code>public.staff.first_name</code>. */ public final TableField<StaffRecord, String> FIRST_NAME = createField("first_name", org.jooq.impl.SQLDataType.VARCHAR.length(45).nullable(false), this, ""); /** * The column <code>public.staff.last_name</code>. */ public final TableField<StaffRecord, String> LAST_NAME = createField("last_name", org.jooq.impl.SQLDataType.VARCHAR.length(45).nullable(false), this, ""); /** * The column <code>public.staff.address_id</code>. */ public final TableField<StaffRecord, Integer> ADDRESS_ID = createField("address_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.staff.email</code>. */ public final TableField<StaffRecord, String> EMAIL = createField("email", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); /** * The column <code>public.staff.store_id</code>. */ public final TableField<StaffRecord, Integer> STORE_ID = createField("store_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.staff.active</code>. */ public final TableField<StaffRecord, Boolean> ACTIVE = createField("active", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); /** * The column <code>public.staff.username</code>. */ public final TableField<StaffRecord, String> USERNAME = createField("username", org.jooq.impl.SQLDataType.VARCHAR.length(16).nullable(false), this, ""); /** * The column <code>public.staff.password</code>. */ public final TableField<StaffRecord, String> PASSWORD = createField("password", org.jooq.impl.SQLDataType.VARCHAR.length(40), this, ""); /** * The column <code>public.staff.last_update</code>. */ public final TableField<StaffRecord, 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, ""); /** * The column <code>public.staff.picture</code>. */ public final TableField<StaffRecord, byte[]> PICTURE = createField("picture", org.jooq.impl.SQLDataType.BLOB, this, ""); /** * Create a <code>public.staff</code> table reference */ public Staff() { this("staff", null); } /** * Create an aliased <code>public.staff</code> table reference */ public Staff(String alias) { this(alias, STAFF); } private Staff(String alias, Table<StaffRecord> aliased) { this(alias, aliased, null); } private Staff(String alias, Table<StaffRecord> aliased, Field<?>[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public Identity<StaffRecord, Integer> getIdentity() { return Keys.IDENTITY_STAFF; } /** * {@inheritDoc} */ @Override public UniqueKey<StaffRecord> getPrimaryKey() { return Keys.STAFF_PKEY; } /** * {@inheritDoc} */ @Override public List<UniqueKey<StaffRecord>> getKeys() { return Arrays.<UniqueKey<StaffRecord>>asList(Keys.STAFF_PKEY); } /** * {@inheritDoc} */ @Override public List<ForeignKey<StaffRecord, ?>> getReferences() { return Arrays.<ForeignKey<StaffRecord, ?>>asList(Keys.STAFF__STAFF_ADDRESS_ID_FKEY, Keys.STAFF__STAFF_STORE_ID_FKEY); } /** * {@inheritDoc} */ @Override public Staff as(String alias) { return new Staff(alias, this); } /** * Rename this table */ public Staff rename(String name) { return new Staff(name, null); } }