001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.invoice; 005 006 007import com.echothree.model.data.invoice.common.pk.InvoicePK; 008import com.echothree.model.data.invoice.common.pk.InvoiceStatusPK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.invoice.Invoices.InvoicesPath; 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 InvoiceStatuses extends TableImpl<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>invoicestatuses</code> 046 */ 047 public static final InvoiceStatuses InvoiceStatuses = new InvoiceStatuses(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses> getRecordType() { 054 return com.echothree.model.jooq.server.records.invoice.InvoiceStatuses.class; 055 } 056 057 /** 058 * The column <code>invoicestatuses.invcst_invoicestatusid</code>. 059 */ 060 public final TableField<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses, InvoiceStatusPK> INVOICE_STATUS = createField(DSL.name("invcst_invoicestatusid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InvoiceStatusPK.class, id -> new com.echothree.model.data.invoice.common.pk.InvoiceStatusPK(id), primaryKey -> primaryKey.getEntityId())); 061 062 /** 063 * The column <code>invoicestatuses.invcst_invc_invoiceid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses, InvoicePK> INVOICE = createField(DSL.name("invcst_invc_invoiceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InvoicePK.class, id -> new com.echothree.model.data.invoice.common.pk.InvoicePK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>invoicestatuses.invcst_invoicelinesequence</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses, Integer> INVOICE_LINE_SEQUENCE = createField(DSL.name("invcst_invoicelinesequence"), SQLDataType.INTEGER.nullable(false), this, ""); 071 072 private InvoiceStatuses(Name alias, Table<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses> aliased) { 073 this(alias, aliased, (Field<?>[]) null, null); 074 } 075 076 private InvoiceStatuses(Name alias, Table<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses> aliased, Field<?>[] parameters, Condition where) { 077 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 078 } 079 080 /** 081 * Create an aliased <code>invoicestatuses</code> table reference 082 */ 083 public InvoiceStatuses(String alias) { 084 this(DSL.name(alias), InvoiceStatuses); 085 } 086 087 /** 088 * Create an aliased <code>invoicestatuses</code> table reference 089 */ 090 public InvoiceStatuses(Name alias) { 091 this(alias, InvoiceStatuses); 092 } 093 094 /** 095 * Create a <code>invoicestatuses</code> table reference 096 */ 097 public InvoiceStatuses() { 098 this(DSL.name("invoicestatuses"), null); 099 } 100 101 @Override 102 public UniqueKey<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses> getPrimaryKey() { 103 return KeyRegistry.INVOICE_STATUSES_PK; 104 } 105 106 @Override 107 public List<UniqueKey<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses>> getUniqueKeys() { 108 return Arrays.asList(KeyRegistry.INVOICE_STATUSES_INVOICE_UK); 109 } 110 111 @Override 112 public List<ForeignKey<com.echothree.model.jooq.server.records.invoice.InvoiceStatuses, ?>> getReferences() { 113 return Arrays.asList(KeyRegistry.INVOICE_STATUSES_INVOICE_FK); 114 } 115 116 private transient InvoicesPath _invcst_invc_invoiceid_fk; 117 118 /** 119 * Get the implicit join path to the <code>invoices</code> table. 120 */ 121 public InvoicesPath invcst_invc_invoiceid_fk() { 122 if (_invcst_invc_invoiceid_fk == null) 123 _invcst_invc_invoiceid_fk = new InvoicesPath(this, KeyRegistry.INVOICE_STATUSES_INVOICE_FK, null); 124 125 return _invcst_invc_invoiceid_fk; 126 } 127 128 @Override 129 public InvoiceStatuses as(String alias) { 130 return new InvoiceStatuses(DSL.name(alias), this); 131 } 132 133 @Override 134 public InvoiceStatuses as(Name alias) { 135 return new InvoiceStatuses(alias, this); 136 } 137 138 @Override 139 public InvoiceStatuses as(Table<?> alias) { 140 return new InvoiceStatuses(alias.getQualifiedName(), this); 141 } 142 143 /** 144 * Rename this table 145 */ 146 @Override 147 public InvoiceStatuses rename(String name) { 148 return new InvoiceStatuses(DSL.name(name), null); 149 } 150 151 /** 152 * Rename this table 153 */ 154 @Override 155 public InvoiceStatuses rename(Name name) { 156 return new InvoiceStatuses(name, null); 157 } 158 159 /** 160 * Rename this table 161 */ 162 @Override 163 public InvoiceStatuses rename(Table<?> name) { 164 return new InvoiceStatuses(name.getQualifiedName(), null); 165 } 166 167 /** 168 * Create an inline derived table from this table 169 */ 170 @Override 171 public InvoiceStatuses where(Condition condition) { 172 return new InvoiceStatuses(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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses 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 InvoiceStatuses whereNotExists(TableLike<?> select) { 248 return where(DSL.notExists(select)); 249 } 250}