001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.core; 005 006 007import com.echothree.model.data.core.common.pk.EntityAttributePK; 008import com.echothree.model.data.core.common.pk.EntityGeoPointDefaultPK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.core.EntityAttributes.EntityAttributesPath; 011 012import java.util.Arrays; 013import java.util.Collection; 014import java.util.List; 015 016import org.jooq.Condition; 017import org.jooq.Converter; 018import org.jooq.Field; 019import org.jooq.ForeignKey; 020import org.jooq.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class EntityGeoPointDefaults extends TableImpl<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>entitygeopointdefaults</code> 046 */ 047 public static final EntityGeoPointDefaults EntityGeoPointDefaults = new EntityGeoPointDefaults(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults> getRecordType() { 054 return com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults.class; 055 } 056 057 /** 058 * The column 059 * <code>entitygeopointdefaults.engeopntdef_entitygeopointdefaultid</code>. 060 */ 061 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, EntityGeoPointDefaultPK> ENTITY_GEO_POINT_DEFAULT = createField(DSL.name("engeopntdef_entitygeopointdefaultid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityGeoPointDefaultPK.class, id -> new com.echothree.model.data.core.common.pk.EntityGeoPointDefaultPK(id), primaryKey -> primaryKey.getEntityId())); 062 063 /** 064 * The column 065 * <code>entitygeopointdefaults.engeopntdef_ena_entityattributeid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, EntityAttributePK> ENTITY_ATTRIBUTE = createField(DSL.name("engeopntdef_ena_entityattributeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityAttributePK.class, id -> new com.echothree.model.data.core.common.pk.EntityAttributePK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column <code>entitygeopointdefaults.engeopntdef_latitude</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Integer> LATITUDE = createField(DSL.name("engeopntdef_latitude"), SQLDataType.INTEGER.nullable(false), this, ""); 073 074 /** 075 * The column <code>entitygeopointdefaults.engeopntdef_longitude</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Integer> LONGITUDE = createField(DSL.name("engeopntdef_longitude"), SQLDataType.INTEGER.nullable(false), this, ""); 078 079 /** 080 * The column <code>entitygeopointdefaults.engeopntdef_elevation</code>. 081 */ 082 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Long> ELEVATION = createField(DSL.name("engeopntdef_elevation"), SQLDataType.BIGINT, this, ""); 083 084 /** 085 * The column <code>entitygeopointdefaults.engeopntdef_altitude</code>. 086 */ 087 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Long> ALTITUDE = createField(DSL.name("engeopntdef_altitude"), SQLDataType.BIGINT, this, ""); 088 089 /** 090 * The column <code>entitygeopointdefaults.engeopntdef_fromtime</code>. 091 */ 092 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Long> FROM_TIME = createField(DSL.name("engeopntdef_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 093 094 /** 095 * The column <code>entitygeopointdefaults.engeopntdef_thrutime</code>. 096 */ 097 public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, Long> THRU_TIME = createField(DSL.name("engeopntdef_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 098 099 private EntityGeoPointDefaults(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults> aliased) { 100 this(alias, aliased, (Field<?>[]) null, null); 101 } 102 103 private EntityGeoPointDefaults(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults> aliased, Field<?>[] parameters, Condition where) { 104 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 105 } 106 107 /** 108 * Create an aliased <code>entitygeopointdefaults</code> table reference 109 */ 110 public EntityGeoPointDefaults(String alias) { 111 this(DSL.name(alias), EntityGeoPointDefaults); 112 } 113 114 /** 115 * Create an aliased <code>entitygeopointdefaults</code> table reference 116 */ 117 public EntityGeoPointDefaults(Name alias) { 118 this(alias, EntityGeoPointDefaults); 119 } 120 121 /** 122 * Create a <code>entitygeopointdefaults</code> table reference 123 */ 124 public EntityGeoPointDefaults() { 125 this(DSL.name("entitygeopointdefaults"), null); 126 } 127 128 @Override 129 public UniqueKey<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults> getPrimaryKey() { 130 return KeyRegistry.ENTITY_GEO_POINT_DEFAULTS_PK; 131 } 132 133 @Override 134 public List<ForeignKey<com.echothree.model.jooq.server.records.core.EntityGeoPointDefaults, ?>> getReferences() { 135 return Arrays.asList(KeyRegistry.ENTITY_GEO_POINT_DEFAULTS_ENTITY_ATTRIBUTE_FK); 136 } 137 138 private transient EntityAttributesPath _engeopntdef_ena_entityattributeid_fk; 139 140 /** 141 * Get the implicit join path to the <code>entityattributes</code> table. 142 */ 143 public EntityAttributesPath engeopntdef_ena_entityattributeid_fk() { 144 if (_engeopntdef_ena_entityattributeid_fk == null) 145 _engeopntdef_ena_entityattributeid_fk = new EntityAttributesPath(this, KeyRegistry.ENTITY_GEO_POINT_DEFAULTS_ENTITY_ATTRIBUTE_FK, null); 146 147 return _engeopntdef_ena_entityattributeid_fk; 148 } 149 150 @Override 151 public EntityGeoPointDefaults as(String alias) { 152 return new EntityGeoPointDefaults(DSL.name(alias), this); 153 } 154 155 @Override 156 public EntityGeoPointDefaults as(Name alias) { 157 return new EntityGeoPointDefaults(alias, this); 158 } 159 160 @Override 161 public EntityGeoPointDefaults as(Table<?> alias) { 162 return new EntityGeoPointDefaults(alias.getQualifiedName(), this); 163 } 164 165 /** 166 * Rename this table 167 */ 168 @Override 169 public EntityGeoPointDefaults rename(String name) { 170 return new EntityGeoPointDefaults(DSL.name(name), null); 171 } 172 173 /** 174 * Rename this table 175 */ 176 @Override 177 public EntityGeoPointDefaults rename(Name name) { 178 return new EntityGeoPointDefaults(name, null); 179 } 180 181 /** 182 * Rename this table 183 */ 184 @Override 185 public EntityGeoPointDefaults rename(Table<?> name) { 186 return new EntityGeoPointDefaults(name.getQualifiedName(), null); 187 } 188 189 /** 190 * Create an inline derived table from this table 191 */ 192 @Override 193 public EntityGeoPointDefaults where(Condition condition) { 194 return new EntityGeoPointDefaults(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 195 } 196 197 /** 198 * Create an inline derived table from this table 199 */ 200 @Override 201 public EntityGeoPointDefaults where(Collection<? extends Condition> conditions) { 202 return where(DSL.and(conditions)); 203 } 204 205 /** 206 * Create an inline derived table from this table 207 */ 208 @Override 209 public EntityGeoPointDefaults where(Condition... conditions) { 210 return where(DSL.and(conditions)); 211 } 212 213 /** 214 * Create an inline derived table from this table 215 */ 216 @Override 217 public EntityGeoPointDefaults where(Field<Boolean> condition) { 218 return where(DSL.condition(condition)); 219 } 220 221 /** 222 * Create an inline derived table from this table 223 */ 224 @Override 225 @PlainSQL 226 public EntityGeoPointDefaults where(SQL condition) { 227 return where(DSL.condition(condition)); 228 } 229 230 /** 231 * Create an inline derived table from this table 232 */ 233 @Override 234 @PlainSQL 235 public EntityGeoPointDefaults where(@Stringly.SQL String condition) { 236 return where(DSL.condition(condition)); 237 } 238 239 /** 240 * Create an inline derived table from this table 241 */ 242 @Override 243 @PlainSQL 244 public EntityGeoPointDefaults where(@Stringly.SQL String condition, Object... binds) { 245 return where(DSL.condition(condition, binds)); 246 } 247 248 /** 249 * Create an inline derived table from this table 250 */ 251 @Override 252 @PlainSQL 253 public EntityGeoPointDefaults where(@Stringly.SQL String condition, QueryPart... parts) { 254 return where(DSL.condition(condition, parts)); 255 } 256 257 /** 258 * Create an inline derived table from this table 259 */ 260 @Override 261 public EntityGeoPointDefaults whereExists(TableLike<?> select) { 262 return where(DSL.exists(select)); 263 } 264 265 /** 266 * Create an inline derived table from this table 267 */ 268 @Override 269 public EntityGeoPointDefaults whereNotExists(TableLike<?> select) { 270 return where(DSL.notExists(select)); 271 } 272}