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