/** * This class is generated by jOOQ */ package classes.tables; import classes.Keys; import classes.Public; import classes.tables.records.PersonsRecord; import classes.udt.records.PassportRecord; import java.sql.Date; 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.impl.TableImpl; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.6" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Persons extends TableImpl { private static final long serialVersionUID = -1033476907; /** * The reference instance of public.persons */ public static final Persons PERSONS = new Persons(); /** * The class holding records for this type */ @Override public Class getRecordType() { return PersonsRecord.class; } /** * The column public.persons.person_id. */ public final TableField PERSON_ID = createField("person_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('persons_person_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column public.persons.last_name. */ public final TableField LAST_NAME = createField("last_name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.persons.first_name. */ public final TableField FIRST_NAME = createField("first_name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.persons.second_name. */ public final TableField SECOND_NAME = createField("second_name", org.jooq.impl.SQLDataType.CLOB, this, ""); /** * The column public.persons.date_of_birth. */ public final TableField DATE_OF_BIRTH = createField("date_of_birth", org.jooq.impl.SQLDataType.DATE.nullable(false), this, ""); /** * The column public.persons.sex. */ public final TableField SEX = createField("sex", org.jooq.impl.SQLDataType.CHAR.length(1).nullable(false).defaultValue(org.jooq.impl.DSL.field("NULL::bpchar", org.jooq.impl.SQLDataType.CHAR)), this, ""); /** * The column public.persons.place_of_birth. */ public final TableField PLACE_OF_BIRTH = createField("place_of_birth", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.persons.address. */ public final TableField ADDRESS = createField("address", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.persons.phone. */ public final TableField PHONE = createField("phone", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.persons.photo. */ public final TableField PHOTO = createField("photo", org.jooq.impl.SQLDataType.BLOB, this, ""); /** * The column public.persons.passport. */ public final TableField PASSPORT = createField("passport", classes.udt.Passport.PASSPORT.getDataType(), this, ""); /** * The column public.persons.position_id. */ public final TableField POSITION_ID = createField("position_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * Create a public.persons table reference */ public Persons() { this("persons", null); } /** * Create an aliased public.persons table reference */ public Persons(String alias) { this(alias, PERSONS); } private Persons(String alias, Table aliased) { this(alias, aliased, null); } private Persons(String alias, Table aliased, Field[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public Identity getIdentity() { return Keys.IDENTITY_PERSONS; } /** * {@inheritDoc} */ @Override public UniqueKey getPrimaryKey() { return Keys.PERSONS_PKEY; } /** * {@inheritDoc} */ @Override public List> getKeys() { return Arrays.>asList(Keys.PERSONS_PKEY, Keys.PASSPORT_KEY); } /** * {@inheritDoc} */ @Override public List> getReferences() { return Arrays.>asList(Keys.PERSONS__FK_POSITION_ID); } /** * {@inheritDoc} */ @Override public Persons as(String alias) { return new Persons(alias, this); } /** * Rename this table */ public Persons rename(String name) { return new Persons(name, null); } }