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.BaseEncryptionKeyPK; 008import com.echothree.model.jooq.server.KeyRegistry; 009 010import java.util.Arrays; 011import java.util.Collection; 012import java.util.List; 013 014import org.jooq.Condition; 015import org.jooq.Converter; 016import org.jooq.Field; 017import org.jooq.Name; 018import org.jooq.PlainSQL; 019import org.jooq.QueryPart; 020import org.jooq.SQL; 021import org.jooq.Stringly; 022import org.jooq.Table; 023import org.jooq.TableField; 024import org.jooq.TableLike; 025import org.jooq.TableOptions; 026import org.jooq.UniqueKey; 027import org.jooq.impl.DSL; 028import org.jooq.impl.Internal; 029import org.jooq.impl.SQLDataType; 030import org.jooq.impl.TableImpl; 031 032 033/** 034 * This class is generated by jOOQ. 035 */ 036@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 037public class BaseEncryptionKeys extends TableImpl<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys> { 038 039 private static final long serialVersionUID = 1L; 040 041 /** 042 * The reference instance of <code>baseencryptionkeys</code> 043 */ 044 public static final BaseEncryptionKeys BaseEncryptionKeys = new BaseEncryptionKeys(); 045 046 /** 047 * The class holding records for this type 048 */ 049 @Override 050 public Class<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys> getRecordType() { 051 return com.echothree.model.jooq.server.records.core.BaseEncryptionKeys.class; 052 } 053 054 /** 055 * The column <code>baseencryptionkeys.bek_baseencryptionkeyid</code>. 056 */ 057 public final TableField<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys, BaseEncryptionKeyPK> BASE_ENCRYPTION_KEY = createField(DSL.name("bek_baseencryptionkeyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, BaseEncryptionKeyPK.class, id -> new com.echothree.model.data.core.common.pk.BaseEncryptionKeyPK(id), primaryKey -> primaryKey.getEntityId())); 058 059 /** 060 * The column <code>baseencryptionkeys.bek_baseencryptionkeyname</code>. 061 */ 062 public final TableField<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys, String> BASE_ENCRYPTION_KEY_NAME = createField(DSL.name("bek_baseencryptionkeyname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 063 064 /** 065 * The column <code>baseencryptionkeys.bek_sha1hash</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys, String> SHA1_HASH = createField(DSL.name("bek_sha1hash"), SQLDataType.VARCHAR(28).nullable(false), this, ""); 068 069 private BaseEncryptionKeys(Name alias, Table<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys> aliased) { 070 this(alias, aliased, (Field<?>[]) null, null); 071 } 072 073 private BaseEncryptionKeys(Name alias, Table<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys> aliased, Field<?>[] parameters, Condition where) { 074 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 075 } 076 077 /** 078 * Create an aliased <code>baseencryptionkeys</code> table reference 079 */ 080 public BaseEncryptionKeys(String alias) { 081 this(DSL.name(alias), BaseEncryptionKeys); 082 } 083 084 /** 085 * Create an aliased <code>baseencryptionkeys</code> table reference 086 */ 087 public BaseEncryptionKeys(Name alias) { 088 this(alias, BaseEncryptionKeys); 089 } 090 091 /** 092 * Create a <code>baseencryptionkeys</code> table reference 093 */ 094 public BaseEncryptionKeys() { 095 this(DSL.name("baseencryptionkeys"), null); 096 } 097 098 @Override 099 public UniqueKey<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys> getPrimaryKey() { 100 return KeyRegistry.BASE_ENCRYPTION_KEYS_PK; 101 } 102 103 @Override 104 public List<UniqueKey<com.echothree.model.jooq.server.records.core.BaseEncryptionKeys>> getUniqueKeys() { 105 return Arrays.asList(KeyRegistry.BASE_ENCRYPTION_KEYS_BASE_ENCRYPTION_KEY_NAME_UK, KeyRegistry.BASE_ENCRYPTION_KEYS_SHA1_HASH_UK); 106 } 107 108 @Override 109 public BaseEncryptionKeys as(String alias) { 110 return new BaseEncryptionKeys(DSL.name(alias), this); 111 } 112 113 @Override 114 public BaseEncryptionKeys as(Name alias) { 115 return new BaseEncryptionKeys(alias, this); 116 } 117 118 @Override 119 public BaseEncryptionKeys as(Table<?> alias) { 120 return new BaseEncryptionKeys(alias.getQualifiedName(), this); 121 } 122 123 /** 124 * Rename this table 125 */ 126 @Override 127 public BaseEncryptionKeys rename(String name) { 128 return new BaseEncryptionKeys(DSL.name(name), null); 129 } 130 131 /** 132 * Rename this table 133 */ 134 @Override 135 public BaseEncryptionKeys rename(Name name) { 136 return new BaseEncryptionKeys(name, null); 137 } 138 139 /** 140 * Rename this table 141 */ 142 @Override 143 public BaseEncryptionKeys rename(Table<?> name) { 144 return new BaseEncryptionKeys(name.getQualifiedName(), null); 145 } 146 147 /** 148 * Create an inline derived table from this table 149 */ 150 @Override 151 public BaseEncryptionKeys where(Condition condition) { 152 return new BaseEncryptionKeys(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 153 } 154 155 /** 156 * Create an inline derived table from this table 157 */ 158 @Override 159 public BaseEncryptionKeys where(Collection<? extends Condition> conditions) { 160 return where(DSL.and(conditions)); 161 } 162 163 /** 164 * Create an inline derived table from this table 165 */ 166 @Override 167 public BaseEncryptionKeys where(Condition... conditions) { 168 return where(DSL.and(conditions)); 169 } 170 171 /** 172 * Create an inline derived table from this table 173 */ 174 @Override 175 public BaseEncryptionKeys where(Field<Boolean> condition) { 176 return where(DSL.condition(condition)); 177 } 178 179 /** 180 * Create an inline derived table from this table 181 */ 182 @Override 183 @PlainSQL 184 public BaseEncryptionKeys where(SQL condition) { 185 return where(DSL.condition(condition)); 186 } 187 188 /** 189 * Create an inline derived table from this table 190 */ 191 @Override 192 @PlainSQL 193 public BaseEncryptionKeys where(@Stringly.SQL String condition) { 194 return where(DSL.condition(condition)); 195 } 196 197 /** 198 * Create an inline derived table from this table 199 */ 200 @Override 201 @PlainSQL 202 public BaseEncryptionKeys where(@Stringly.SQL String condition, Object... binds) { 203 return where(DSL.condition(condition, binds)); 204 } 205 206 /** 207 * Create an inline derived table from this table 208 */ 209 @Override 210 @PlainSQL 211 public BaseEncryptionKeys where(@Stringly.SQL String condition, QueryPart... parts) { 212 return where(DSL.condition(condition, parts)); 213 } 214 215 /** 216 * Create an inline derived table from this table 217 */ 218 @Override 219 public BaseEncryptionKeys whereExists(TableLike<?> select) { 220 return where(DSL.exists(select)); 221 } 222 223 /** 224 * Create an inline derived table from this table 225 */ 226 @Override 227 public BaseEncryptionKeys whereNotExists(TableLike<?> select) { 228 return where(DSL.notExists(select)); 229 } 230}