All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yourrents.services.geodata.jooq.Keys Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package com.yourrents.services.geodata.jooq;

/*-
 * #%L
 * YourRents GeoData Service
 * %%
 * Copyright (C) 2023 Your Rents Team
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */


import com.yourrents.services.geodata.jooq.tables.Address;
import com.yourrents.services.geodata.jooq.tables.City;
import com.yourrents.services.geodata.jooq.tables.CityLocalData;
import com.yourrents.services.geodata.jooq.tables.Continent;
import com.yourrents.services.geodata.jooq.tables.Country;
import com.yourrents.services.geodata.jooq.tables.Province;
import com.yourrents.services.geodata.jooq.tables.ProvinceLocalData;
import com.yourrents.services.geodata.jooq.tables.Region;
import com.yourrents.services.geodata.jooq.tables.RegionLocalData;
import com.yourrents.services.geodata.jooq.tables.records.AddressRecord;
import com.yourrents.services.geodata.jooq.tables.records.CityLocalDataRecord;
import com.yourrents.services.geodata.jooq.tables.records.CityRecord;
import com.yourrents.services.geodata.jooq.tables.records.ContinentRecord;
import com.yourrents.services.geodata.jooq.tables.records.CountryRecord;
import com.yourrents.services.geodata.jooq.tables.records.ProvinceLocalDataRecord;
import com.yourrents.services.geodata.jooq.tables.records.ProvinceRecord;
import com.yourrents.services.geodata.jooq.tables.records.RegionLocalDataRecord;
import com.yourrents.services.geodata.jooq.tables.records.RegionRecord;

import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;


/**
 * A class modelling foreign key relationships and constraints of tables in
 * yrs_geodata.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {

    // -------------------------------------------------------------------------
    // UNIQUE and PRIMARY KEY definitions
    // -------------------------------------------------------------------------

    public static final UniqueKey ADDRESS_EXTERNAL_ID_KEY = Internal.createUniqueKey(Address.ADDRESS, DSL.name("address_external_id_key"), new TableField[] { Address.ADDRESS.EXTERNAL_ID }, true);
    public static final UniqueKey ADDRESS_PKEY = Internal.createUniqueKey(Address.ADDRESS, DSL.name("address_pkey"), new TableField[] { Address.ADDRESS.ID }, true);
    public static final UniqueKey CITY_EXTERNAL_ID_KEY = Internal.createUniqueKey(City.CITY, DSL.name("city_external_id_key"), new TableField[] { City.CITY.EXTERNAL_ID }, true);
    public static final UniqueKey CITY_PKEY = Internal.createUniqueKey(City.CITY, DSL.name("city_pkey"), new TableField[] { City.CITY.ID }, true);
    public static final UniqueKey CITY_LOCAL_DATA_PKEY = Internal.createUniqueKey(CityLocalData.CITY_LOCAL_DATA, DSL.name("city_local_data_pkey"), new TableField[] { CityLocalData.CITY_LOCAL_DATA.ID }, true);
    public static final UniqueKey CONTINENT_EXTERNAL_ID_KEY = Internal.createUniqueKey(Continent.CONTINENT, DSL.name("continent_external_id_key"), new TableField[] { Continent.CONTINENT.EXTERNAL_ID }, true);
    public static final UniqueKey CONTINENT_PKEY = Internal.createUniqueKey(Continent.CONTINENT, DSL.name("continent_pkey"), new TableField[] { Continent.CONTINENT.ID }, true);
    public static final UniqueKey UK_CONTINENT_NAME = Internal.createUniqueKey(Continent.CONTINENT, DSL.name("uk_continent_name"), new TableField[] { Continent.CONTINENT.NAME }, true);
    public static final UniqueKey COUNTRY_EXTERNAL_ID_KEY = Internal.createUniqueKey(Country.COUNTRY, DSL.name("country_external_id_key"), new TableField[] { Country.COUNTRY.EXTERNAL_ID }, true);
    public static final UniqueKey COUNTRY_PKEY = Internal.createUniqueKey(Country.COUNTRY, DSL.name("country_pkey"), new TableField[] { Country.COUNTRY.ID }, true);
    public static final UniqueKey PROVINCE_EXTERNAL_ID_KEY = Internal.createUniqueKey(Province.PROVINCE, DSL.name("province_external_id_key"), new TableField[] { Province.PROVINCE.EXTERNAL_ID }, true);
    public static final UniqueKey PROVINCIA_PKEY = Internal.createUniqueKey(Province.PROVINCE, DSL.name("provincia_pkey"), new TableField[] { Province.PROVINCE.ID }, true);
    public static final UniqueKey PROVINCE_LOCAL_DATA_PKEY = Internal.createUniqueKey(ProvinceLocalData.PROVINCE_LOCAL_DATA, DSL.name("province_local_data_pkey"), new TableField[] { ProvinceLocalData.PROVINCE_LOCAL_DATA.ID }, true);
    public static final UniqueKey REGION_EXTERNAL_ID_KEY = Internal.createUniqueKey(Region.REGION, DSL.name("region_external_id_key"), new TableField[] { Region.REGION.EXTERNAL_ID }, true);
    public static final UniqueKey REGION_PKEY = Internal.createUniqueKey(Region.REGION, DSL.name("region_pkey"), new TableField[] { Region.REGION.ID }, true);
    public static final UniqueKey REGION_LOCAL_DATA_PKEY = Internal.createUniqueKey(RegionLocalData.REGION_LOCAL_DATA, DSL.name("region_local_data_pkey"), new TableField[] { RegionLocalData.REGION_LOCAL_DATA.ID }, true);

    // -------------------------------------------------------------------------
    // FOREIGN KEY definitions
    // -------------------------------------------------------------------------

    public static final ForeignKey CITY__FK_CITY_PROVINCE = Internal.createForeignKey(City.CITY, DSL.name("fk_city_province"), new TableField[] { City.CITY.PROVINCE_ID }, Keys.PROVINCIA_PKEY, new TableField[] { Province.PROVINCE.ID }, true);
    public static final ForeignKey CITY_LOCAL_DATA__FK_CITY_LOCAL_DATA_CITY = Internal.createForeignKey(CityLocalData.CITY_LOCAL_DATA, DSL.name("fk_city_local_data_city"), new TableField[] { CityLocalData.CITY_LOCAL_DATA.ID }, Keys.CITY_PKEY, new TableField[] { City.CITY.ID }, true);
    public static final ForeignKey COUNTRY__FK_COUNTRY_CONTINENT = Internal.createForeignKey(Country.COUNTRY, DSL.name("fk_country_continent"), new TableField[] { Country.COUNTRY.CONTINENT_ID }, Keys.CONTINENT_PKEY, new TableField[] { Continent.CONTINENT.ID }, true);
    public static final ForeignKey PROVINCE__FK_PROVINCE_REGION = Internal.createForeignKey(Province.PROVINCE, DSL.name("fk_province_region"), new TableField[] { Province.PROVINCE.REGION_ID }, Keys.REGION_PKEY, new TableField[] { Region.REGION.ID }, true);
    public static final ForeignKey PROVINCE_LOCAL_DATA__FK_PROVINCE_LOCAL_DATA_PROVINCE = Internal.createForeignKey(ProvinceLocalData.PROVINCE_LOCAL_DATA, DSL.name("fk_province_local_data_province"), new TableField[] { ProvinceLocalData.PROVINCE_LOCAL_DATA.ID }, Keys.PROVINCIA_PKEY, new TableField[] { Province.PROVINCE.ID }, true);
    public static final ForeignKey REGION__FK_REGION_COUNTRY = Internal.createForeignKey(Region.REGION, DSL.name("fk_region_country"), new TableField[] { Region.REGION.COUNTRY_ID }, Keys.COUNTRY_PKEY, new TableField[] { Country.COUNTRY.ID }, true);
    public static final ForeignKey REGION_LOCAL_DATA__FK_REGION_LOCAL_DATA_REGION = Internal.createForeignKey(RegionLocalData.REGION_LOCAL_DATA, DSL.name("fk_region_local_data_region"), new TableField[] { RegionLocalData.REGION_LOCAL_DATA.ID }, Keys.REGION_PKEY, new TableField[] { Region.REGION.ID }, true);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy