001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.party;
005
006
007import com.echothree.model.data.party.common.pk.BirthdayFormatDetailPK;
008import com.echothree.model.data.party.common.pk.BirthdayFormatPK;
009import com.echothree.model.jooq.server.KeyRegistry;
010import com.echothree.model.jooq.server.tables.party.BirthdayFormats.BirthdayFormatsPath;
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.InverseForeignKey;
021import org.jooq.Name;
022import org.jooq.Path;
023import org.jooq.PlainSQL;
024import org.jooq.QueryPart;
025import org.jooq.Record;
026import org.jooq.SQL;
027import org.jooq.Stringly;
028import org.jooq.Table;
029import org.jooq.TableField;
030import org.jooq.TableLike;
031import org.jooq.TableOptions;
032import org.jooq.UniqueKey;
033import org.jooq.impl.DSL;
034import org.jooq.impl.Internal;
035import org.jooq.impl.SQLDataType;
036import org.jooq.impl.TableImpl;
037
038
039/**
040 * This class is generated by jOOQ.
041 */
042@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
043public class BirthdayFormatDetails extends TableImpl<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> {
044
045    private static final long serialVersionUID = 1L;
046
047    /**
048     * The reference instance of <code>birthdayformatdetails</code>
049     */
050    public static final BirthdayFormatDetails BirthdayFormatDetails = new BirthdayFormatDetails();
051
052    /**
053     * The class holding records for this type
054     */
055    @Override
056    public Class<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> getRecordType() {
057        return com.echothree.model.jooq.server.records.party.BirthdayFormatDetails.class;
058    }
059
060    /**
061     * The column
062     * <code>birthdayformatdetails.bdyfdt_birthdayformatdetailid</code>.
063     */
064    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, BirthdayFormatDetailPK> BIRTHDAY_FORMAT_DETAIL = createField(DSL.name("bdyfdt_birthdayformatdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, BirthdayFormatDetailPK.class, id -> new com.echothree.model.data.party.common.pk.BirthdayFormatDetailPK(id), primaryKey -> primaryKey.getEntityId()));
065
066    /**
067     * The column
068     * <code>birthdayformatdetails.bdyfdt_bdyf_birthdayformatid</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, BirthdayFormatPK> BIRTHDAY_FORMAT = createField(DSL.name("bdyfdt_bdyf_birthdayformatid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, BirthdayFormatPK.class, id -> new com.echothree.model.data.party.common.pk.BirthdayFormatPK(id), primaryKey -> primaryKey.getEntityId()));
071
072    /**
073     * The column <code>birthdayformatdetails.bdyfdt_birthdayformatname</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, String> BIRTHDAY_FORMAT_NAME = createField(DSL.name("bdyfdt_birthdayformatname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
076
077    /**
078     * The column <code>birthdayformatdetails.bdyfdt_isdefault</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, Boolean> IS_DEFAULT = createField(DSL.name("bdyfdt_isdefault"), SQLDataType.BIT.nullable(false), this, "");
081
082    /**
083     * The column <code>birthdayformatdetails.bdyfdt_sortorder</code>.
084     */
085    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, Integer> SORT_ORDER = createField(DSL.name("bdyfdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, "");
086
087    /**
088     * The column <code>birthdayformatdetails.bdyfdt_fromtime</code>.
089     */
090    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, Long> FROM_TIME = createField(DSL.name("bdyfdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
091
092    /**
093     * The column <code>birthdayformatdetails.bdyfdt_thrutime</code>.
094     */
095    public final TableField<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, Long> THRU_TIME = createField(DSL.name("bdyfdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
096
097    private BirthdayFormatDetails(Name alias, Table<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> aliased) {
098        this(alias, aliased, (Field<?>[]) null, null);
099    }
100
101    private BirthdayFormatDetails(Name alias, Table<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> aliased, Field<?>[] parameters, Condition where) {
102        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
103    }
104
105    /**
106     * Create an aliased <code>birthdayformatdetails</code> table reference
107     */
108    public BirthdayFormatDetails(String alias) {
109        this(DSL.name(alias), BirthdayFormatDetails);
110    }
111
112    /**
113     * Create an aliased <code>birthdayformatdetails</code> table reference
114     */
115    public BirthdayFormatDetails(Name alias) {
116        this(alias, BirthdayFormatDetails);
117    }
118
119    /**
120     * Create a <code>birthdayformatdetails</code> table reference
121     */
122    public BirthdayFormatDetails() {
123        this(DSL.name("birthdayformatdetails"), null);
124    }
125
126    public <O extends Record> BirthdayFormatDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> parentPath) {
127        super(path, childPath, parentPath, BirthdayFormatDetails);
128    }
129
130    /**
131     * A subtype implementing {@link Path} for simplified path-based joins.
132     */
133    public static class BirthdayFormatDetailsPath extends BirthdayFormatDetails implements Path<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> {
134
135        private static final long serialVersionUID = 1L;
136        public <O extends Record> BirthdayFormatDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> parentPath) {
137            super(path, childPath, parentPath);
138        }
139        private BirthdayFormatDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> aliased) {
140            super(alias, aliased);
141        }
142
143        @Override
144        public BirthdayFormatDetailsPath as(String alias) {
145            return new BirthdayFormatDetailsPath(DSL.name(alias), this);
146        }
147
148        @Override
149        public BirthdayFormatDetailsPath as(Name alias) {
150            return new BirthdayFormatDetailsPath(alias, this);
151        }
152
153        @Override
154        public BirthdayFormatDetailsPath as(Table<?> alias) {
155            return new BirthdayFormatDetailsPath(alias.getQualifiedName(), this);
156        }
157    }
158
159    @Override
160    public UniqueKey<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails> getPrimaryKey() {
161        return KeyRegistry.BIRTHDAY_FORMAT_DETAILS_PK;
162    }
163
164    @Override
165    public List<UniqueKey<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails>> getUniqueKeys() {
166        return Arrays.asList(KeyRegistry.BIRTHDAY_FORMAT_DETAILS_BIRTHDAY_FORMAT_AND_THRU_TIME_UK, KeyRegistry.BIRTHDAY_FORMAT_DETAILS_BIRTHDAY_FORMAT_NAME_AND_THRU_TIME_UK);
167    }
168
169    @Override
170    public List<ForeignKey<com.echothree.model.jooq.server.records.party.BirthdayFormatDetails, ?>> getReferences() {
171        return Arrays.asList(KeyRegistry.BIRTHDAY_FORMAT_DETAILS_BIRTHDAY_FORMAT_FK);
172    }
173
174    private transient BirthdayFormatsPath _bdyfdt_bdyf_birthdayformatid_fk;
175
176    /**
177     * Get the implicit join path to the <code>birthdayformats</code> table.
178     */
179    public BirthdayFormatsPath bdyfdt_bdyf_birthdayformatid_fk() {
180        if (_bdyfdt_bdyf_birthdayformatid_fk == null)
181            _bdyfdt_bdyf_birthdayformatid_fk = new BirthdayFormatsPath(this, KeyRegistry.BIRTHDAY_FORMAT_DETAILS_BIRTHDAY_FORMAT_FK, null);
182
183        return _bdyfdt_bdyf_birthdayformatid_fk;
184    }
185
186    @Override
187    public BirthdayFormatDetails as(String alias) {
188        return new BirthdayFormatDetails(DSL.name(alias), this);
189    }
190
191    @Override
192    public BirthdayFormatDetails as(Name alias) {
193        return new BirthdayFormatDetails(alias, this);
194    }
195
196    @Override
197    public BirthdayFormatDetails as(Table<?> alias) {
198        return new BirthdayFormatDetails(alias.getQualifiedName(), this);
199    }
200
201    /**
202     * Rename this table
203     */
204    @Override
205    public BirthdayFormatDetails rename(String name) {
206        return new BirthdayFormatDetails(DSL.name(name), null);
207    }
208
209    /**
210     * Rename this table
211     */
212    @Override
213    public BirthdayFormatDetails rename(Name name) {
214        return new BirthdayFormatDetails(name, null);
215    }
216
217    /**
218     * Rename this table
219     */
220    @Override
221    public BirthdayFormatDetails rename(Table<?> name) {
222        return new BirthdayFormatDetails(name.getQualifiedName(), null);
223    }
224
225    /**
226     * Create an inline derived table from this table
227     */
228    @Override
229    public BirthdayFormatDetails where(Condition condition) {
230        return new BirthdayFormatDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
231    }
232
233    /**
234     * Create an inline derived table from this table
235     */
236    @Override
237    public BirthdayFormatDetails where(Collection<? extends Condition> conditions) {
238        return where(DSL.and(conditions));
239    }
240
241    /**
242     * Create an inline derived table from this table
243     */
244    @Override
245    public BirthdayFormatDetails where(Condition... conditions) {
246        return where(DSL.and(conditions));
247    }
248
249    /**
250     * Create an inline derived table from this table
251     */
252    @Override
253    public BirthdayFormatDetails where(Field<Boolean> condition) {
254        return where(DSL.condition(condition));
255    }
256
257    /**
258     * Create an inline derived table from this table
259     */
260    @Override
261    @PlainSQL
262    public BirthdayFormatDetails where(SQL condition) {
263        return where(DSL.condition(condition));
264    }
265
266    /**
267     * Create an inline derived table from this table
268     */
269    @Override
270    @PlainSQL
271    public BirthdayFormatDetails where(@Stringly.SQL String condition) {
272        return where(DSL.condition(condition));
273    }
274
275    /**
276     * Create an inline derived table from this table
277     */
278    @Override
279    @PlainSQL
280    public BirthdayFormatDetails where(@Stringly.SQL String condition, Object... binds) {
281        return where(DSL.condition(condition, binds));
282    }
283
284    /**
285     * Create an inline derived table from this table
286     */
287    @Override
288    @PlainSQL
289    public BirthdayFormatDetails where(@Stringly.SQL String condition, QueryPart... parts) {
290        return where(DSL.condition(condition, parts));
291    }
292
293    /**
294     * Create an inline derived table from this table
295     */
296    @Override
297    public BirthdayFormatDetails whereExists(TableLike<?> select) {
298        return where(DSL.exists(select));
299    }
300
301    /**
302     * Create an inline derived table from this table
303     */
304    @Override
305    public BirthdayFormatDetails whereNotExists(TableLike<?> select) {
306        return where(DSL.notExists(select));
307    }
308}