/** * 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.AddressRecord; 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 Address extends TableImpl<AddressRecord> { private static final long serialVersionUID = -2117230036; /** * The reference instance of <code>public.address</code> */ public static final Address ADDRESS = new Address(); /** * The class holding records for this type */ @Override public Class<AddressRecord> getRecordType() { return AddressRecord.class; } /** * The column <code>public.address.address_id</code>. */ public final TableField<AddressRecord, Integer> ADDRESS_ID = createField("address_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('address_address_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column <code>public.address.address</code>. */ public final TableField<AddressRecord, String> ADDRESS_ = createField("address", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); /** * The column <code>public.address.address2</code>. */ public final TableField<AddressRecord, String> ADDRESS2 = createField("address2", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); /** * The column <code>public.address.district</code>. */ public final TableField<AddressRecord, String> DISTRICT = createField("district", org.jooq.impl.SQLDataType.VARCHAR.length(20).nullable(false), this, ""); /** * The column <code>public.address.city_id</code>. */ public final TableField<AddressRecord, Integer> CITY_ID = createField("city_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.address.postal_code</code>. */ public final TableField<AddressRecord, String> POSTAL_CODE = createField("postal_code", org.jooq.impl.SQLDataType.VARCHAR.length(10), this, ""); /** * The column <code>public.address.phone</code>. */ public final TableField<AddressRecord, String> PHONE = createField("phone", org.jooq.impl.SQLDataType.VARCHAR.length(20).nullable(false), this, ""); /** * The column <code>public.address.last_update</code>. */ public final TableField<AddressRecord, 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.address</code> table reference */ public Address() { this("address", null); } /** * Create an aliased <code>public.address</code> table reference */ public Address(String alias) { this(alias, ADDRESS); } private Address(String alias, Table<AddressRecord> aliased) { this(alias, aliased, null); } private Address(String alias, Table<AddressRecord> aliased, Field<?>[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public Identity<AddressRecord, Integer> getIdentity() { return Keys.IDENTITY_ADDRESS; } /** * {@inheritDoc} */ @Override public UniqueKey<AddressRecord> getPrimaryKey() { return Keys.ADDRESS_PKEY; } /** * {@inheritDoc} */ @Override public List<UniqueKey<AddressRecord>> getKeys() { return Arrays.<UniqueKey<AddressRecord>>asList(Keys.ADDRESS_PKEY); } /** * {@inheritDoc} */ @Override public List<ForeignKey<AddressRecord, ?>> getReferences() { return Arrays.<ForeignKey<AddressRecord, ?>>asList(Keys.ADDRESS__ADDRESS_CITY_ID_FKEY); } /** * {@inheritDoc} */ @Override public Address as(String alias) { return new Address(alias, this); } /** * Rename this table */ public Address rename(String name) { return new Address(name, null); } }