/** * 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.CityRecord; 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 City extends TableImpl<CityRecord> { private static final long serialVersionUID = 1839439851; /** * The reference instance of <code>public.city</code> */ public static final City CITY = new City(); /** * The class holding records for this type */ @Override public Class<CityRecord> getRecordType() { return CityRecord.class; } /** * The column <code>public.city.city_id</code>. */ public final TableField<CityRecord, Integer> CITY_ID = createField("city_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('city_city_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column <code>public.city.city</code>. */ public final TableField<CityRecord, String> CITY_ = createField("city", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); /** * The column <code>public.city.country_id</code>. */ public final TableField<CityRecord, Integer> COUNTRY_ID = createField("country_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column <code>public.city.last_update</code>. */ public final TableField<CityRecord, 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.city</code> table reference */ public City() { this("city", null); } /** * Create an aliased <code>public.city</code> table reference */ public City(String alias) { this(alias, CITY); } private City(String alias, Table<CityRecord> aliased) { this(alias, aliased, null); } private City(String alias, Table<CityRecord> aliased, Field<?>[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public Identity<CityRecord, Integer> getIdentity() { return Keys.IDENTITY_CITY; } /** * {@inheritDoc} */ @Override public UniqueKey<CityRecord> getPrimaryKey() { return Keys.CITY_PKEY; } /** * {@inheritDoc} */ @Override public List<UniqueKey<CityRecord>> getKeys() { return Arrays.<UniqueKey<CityRecord>>asList(Keys.CITY_PKEY); } /** * {@inheritDoc} */ @Override public List<ForeignKey<CityRecord, ?>> getReferences() { return Arrays.<ForeignKey<CityRecord, ?>>asList(Keys.CITY__CITY_COUNTRY_ID_FKEY); } /** * {@inheritDoc} */ @Override public City as(String alias) { return new City(alias, this); } /** * Rename this table */ public City rename(String name) { return new City(name, null); } }