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