/**
* This class is generated by jOOQ
*/
package org.jooq.example.chart.db.tables.records;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.example.chart.db.tables.City;
import org.jooq.impl.UpdatableRecordImpl;
/**
* 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 CityRecord extends UpdatableRecordImpl<CityRecord> implements Record4<Integer, String, Integer, Timestamp> {
private static final long serialVersionUID = -738167980;
/**
* Setter for <code>public.city.city_id</code>.
*/
public void setCityId(Integer value) {
set(0, value);
}
/**
* Getter for <code>public.city.city_id</code>.
*/
public Integer getCityId() {
return (Integer) get(0);
}
/**
* Setter for <code>public.city.city</code>.
*/
public void setCity(String value) {
set(1, value);
}
/**
* Getter for <code>public.city.city</code>.
*/
public String getCity() {
return (String) get(1);
}
/**
* Setter for <code>public.city.country_id</code>.
*/
public void setCountryId(Integer value) {
set(2, value);
}
/**
* Getter for <code>public.city.country_id</code>.
*/
public Integer getCountryId() {
return (Integer) get(2);
}
/**
* Setter for <code>public.city.last_update</code>.
*/
public void setLastUpdate(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>public.city.last_update</code>.
*/
public Timestamp getLastUpdate() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record4 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row4<Integer, String, Integer, Timestamp> fieldsRow() {
return (Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row4<Integer, String, Integer, Timestamp> valuesRow() {
return (Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field1() {
return City.CITY.CITY_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field2() {
return City.CITY.CITY_;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Integer> field3() {
return City.CITY.COUNTRY_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Timestamp> field4() {
return City.CITY.LAST_UPDATE;
}
/**
* {@inheritDoc}
*/
@Override
public Integer value1() {
return getCityId();
}
/**
* {@inheritDoc}
*/
@Override
public String value2() {
return getCity();
}
/**
* {@inheritDoc}
*/
@Override
public Integer value3() {
return getCountryId();
}
/**
* {@inheritDoc}
*/
@Override
public Timestamp value4() {
return getLastUpdate();
}
/**
* {@inheritDoc}
*/
@Override
public CityRecord value1(Integer value) {
setCityId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CityRecord value2(String value) {
setCity(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CityRecord value3(Integer value) {
setCountryId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CityRecord value4(Timestamp value) {
setLastUpdate(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CityRecord values(Integer value1, String value2, Integer value3, Timestamp value4) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached CityRecord
*/
public CityRecord() {
super(City.CITY);
}
/**
* Create a detached, initialised CityRecord
*/
public CityRecord(Integer cityId, String city, Integer countryId, Timestamp lastUpdate) {
super(City.CITY);
set(0, cityId);
set(1, city);
set(2, countryId);
set(3, lastUpdate);
}
}