001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.selector; 005 006 007import com.echothree.model.data.selector.common.pk.SelectorNodeEntityIntegerPK; 008import com.echothree.model.data.selector.common.pk.SelectorNodePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.selector.SelectorNodes.SelectorNodesPath; 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 SelectorNodeEntityIntegers extends TableImpl<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>selectornodeentityintegers</code> 046 */ 047 public static final SelectorNodeEntityIntegers SelectorNodeEntityIntegers = new SelectorNodeEntityIntegers(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers> getRecordType() { 054 return com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers.class; 055 } 056 057 /** 058 * The column 059 * <code>selectornodeentityintegers.slndei_selectornodeentityintegerid</code>. 060 */ 061 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, SelectorNodeEntityIntegerPK> SELECTOR_NODE_ENTITY_INTEGER = createField(DSL.name("slndei_selectornodeentityintegerid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorNodeEntityIntegerPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorNodeEntityIntegerPK(id), primaryKey -> primaryKey.getEntityId())); 062 063 /** 064 * The column 065 * <code>selectornodeentityintegers.slndei_slnd_selectornodeid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, SelectorNodePK> SELECTOR_NODE = createField(DSL.name("slndei_slnd_selectornodeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorNodePK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorNodePK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column 071 * <code>selectornodeentityintegers.slndei_integerattribute</code>. 072 */ 073 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, Integer> INTEGER_ATTRIBUTE = createField(DSL.name("slndei_integerattribute"), SQLDataType.INTEGER.nullable(false), this, ""); 074 075 /** 076 * The column <code>selectornodeentityintegers.slndei_fromtime</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, Long> FROM_TIME = createField(DSL.name("slndei_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 079 080 /** 081 * The column <code>selectornodeentityintegers.slndei_thrutime</code>. 082 */ 083 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, Long> THRU_TIME = createField(DSL.name("slndei_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 084 085 private SelectorNodeEntityIntegers(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers> aliased) { 086 this(alias, aliased, (Field<?>[]) null, null); 087 } 088 089 private SelectorNodeEntityIntegers(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers> aliased, Field<?>[] parameters, Condition where) { 090 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 091 } 092 093 /** 094 * Create an aliased <code>selectornodeentityintegers</code> table reference 095 */ 096 public SelectorNodeEntityIntegers(String alias) { 097 this(DSL.name(alias), SelectorNodeEntityIntegers); 098 } 099 100 /** 101 * Create an aliased <code>selectornodeentityintegers</code> table reference 102 */ 103 public SelectorNodeEntityIntegers(Name alias) { 104 this(alias, SelectorNodeEntityIntegers); 105 } 106 107 /** 108 * Create a <code>selectornodeentityintegers</code> table reference 109 */ 110 public SelectorNodeEntityIntegers() { 111 this(DSL.name("selectornodeentityintegers"), null); 112 } 113 114 @Override 115 public UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers> getPrimaryKey() { 116 return KeyRegistry.SELECTOR_NODE_ENTITY_INTEGERS_PK; 117 } 118 119 @Override 120 public List<UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers>> getUniqueKeys() { 121 return Arrays.asList(KeyRegistry.SELECTOR_NODE_ENTITY_INTEGERS_SELECTOR_NODE_AND_THRU_TIME_UK); 122 } 123 124 @Override 125 public List<ForeignKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityIntegers, ?>> getReferences() { 126 return Arrays.asList(KeyRegistry.SELECTOR_NODE_ENTITY_INTEGERS_SELECTOR_NODE_FK); 127 } 128 129 private transient SelectorNodesPath _slndei_slnd_selectornodeid_fk; 130 131 /** 132 * Get the implicit join path to the <code>selectornodes</code> table. 133 */ 134 public SelectorNodesPath slndei_slnd_selectornodeid_fk() { 135 if (_slndei_slnd_selectornodeid_fk == null) 136 _slndei_slnd_selectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_ENTITY_INTEGERS_SELECTOR_NODE_FK, null); 137 138 return _slndei_slnd_selectornodeid_fk; 139 } 140 141 @Override 142 public SelectorNodeEntityIntegers as(String alias) { 143 return new SelectorNodeEntityIntegers(DSL.name(alias), this); 144 } 145 146 @Override 147 public SelectorNodeEntityIntegers as(Name alias) { 148 return new SelectorNodeEntityIntegers(alias, this); 149 } 150 151 @Override 152 public SelectorNodeEntityIntegers as(Table<?> alias) { 153 return new SelectorNodeEntityIntegers(alias.getQualifiedName(), this); 154 } 155 156 /** 157 * Rename this table 158 */ 159 @Override 160 public SelectorNodeEntityIntegers rename(String name) { 161 return new SelectorNodeEntityIntegers(DSL.name(name), null); 162 } 163 164 /** 165 * Rename this table 166 */ 167 @Override 168 public SelectorNodeEntityIntegers rename(Name name) { 169 return new SelectorNodeEntityIntegers(name, null); 170 } 171 172 /** 173 * Rename this table 174 */ 175 @Override 176 public SelectorNodeEntityIntegers rename(Table<?> name) { 177 return new SelectorNodeEntityIntegers(name.getQualifiedName(), null); 178 } 179 180 /** 181 * Create an inline derived table from this table 182 */ 183 @Override 184 public SelectorNodeEntityIntegers where(Condition condition) { 185 return new SelectorNodeEntityIntegers(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 186 } 187 188 /** 189 * Create an inline derived table from this table 190 */ 191 @Override 192 public SelectorNodeEntityIntegers where(Collection<? extends Condition> conditions) { 193 return where(DSL.and(conditions)); 194 } 195 196 /** 197 * Create an inline derived table from this table 198 */ 199 @Override 200 public SelectorNodeEntityIntegers where(Condition... conditions) { 201 return where(DSL.and(conditions)); 202 } 203 204 /** 205 * Create an inline derived table from this table 206 */ 207 @Override 208 public SelectorNodeEntityIntegers where(Field<Boolean> condition) { 209 return where(DSL.condition(condition)); 210 } 211 212 /** 213 * Create an inline derived table from this table 214 */ 215 @Override 216 @PlainSQL 217 public SelectorNodeEntityIntegers where(SQL 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 SelectorNodeEntityIntegers where(@Stringly.SQL String 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 SelectorNodeEntityIntegers where(@Stringly.SQL String condition, Object... binds) { 236 return where(DSL.condition(condition, binds)); 237 } 238 239 /** 240 * Create an inline derived table from this table 241 */ 242 @Override 243 @PlainSQL 244 public SelectorNodeEntityIntegers where(@Stringly.SQL String condition, QueryPart... parts) { 245 return where(DSL.condition(condition, parts)); 246 } 247 248 /** 249 * Create an inline derived table from this table 250 */ 251 @Override 252 public SelectorNodeEntityIntegers whereExists(TableLike<?> select) { 253 return where(DSL.exists(select)); 254 } 255 256 /** 257 * Create an inline derived table from this table 258 */ 259 @Override 260 public SelectorNodeEntityIntegers whereNotExists(TableLike<?> select) { 261 return where(DSL.notExists(select)); 262 } 263}