-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
generated-jooq-table.java
141 lines (116 loc) · 3.63 KB
/
generated-jooq-table.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
* This file is generated by jOOQ.
*/
package org.jooq.example.db.h2.tables;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row1;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.example.db.h2.Indexes;
import org.jooq.example.db.h2.Keys;
import org.jooq.example.db.h2.Public;
import org.jooq.example.db.h2.tables.records.BookStoreRecord;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BookStore extends TableImpl<BookStoreRecord> {
private static final long serialVersionUID = 873069360;
/**
* The reference instance of <code>PUBLIC.BOOK_STORE</code>
*/
public static final BookStore BOOK_STORE = new BookStore();
/**
* The class holding records for this type
*/
@Override
public Class<BookStoreRecord> getRecordType() {
return BookStoreRecord.class;
}
/**
* The column <code>PUBLIC.BOOK_STORE.NAME</code>.
*/
public final TableField<BookStoreRecord, String> NAME = createField(DSL.name("NAME"), org.jooq.impl.SQLDataType.VARCHAR(400).nullable(false), this, "");
/**
* Create a <code>PUBLIC.BOOK_STORE</code> table reference
*/
public BookStore() {
this(DSL.name("BOOK_STORE"), null);
}
/**
* Create an aliased <code>PUBLIC.BOOK_STORE</code> table reference
*/
public BookStore(String alias) {
this(DSL.name(alias), BOOK_STORE);
}
/**
* Create an aliased <code>PUBLIC.BOOK_STORE</code> table reference
*/
public BookStore(Name alias) {
this(alias, BOOK_STORE);
}
private BookStore(Name alias, Table<BookStoreRecord> aliased) {
this(alias, aliased, null);
}
private BookStore(Name alias, Table<BookStoreRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""));
}
public <O extends Record> BookStore(Table<O> child, ForeignKey<O, BookStoreRecord> key) {
super(child, key, BOOK_STORE);
}
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
@Override
public List<Index> getIndexes() {
return Arrays.<Index>asList(Indexes.PRIMARY_KEY_F);
}
@Override
public UniqueKey<BookStoreRecord> getPrimaryKey() {
return Keys.UK_T_BOOK_STORE_NAME;
}
@Override
public List<UniqueKey<BookStoreRecord>> getKeys() {
return Arrays.<UniqueKey<BookStoreRecord>>asList(Keys.UK_T_BOOK_STORE_NAME);
}
@Override
public BookStore as(String alias) {
return new BookStore(DSL.name(alias), this);
}
@Override
public BookStore as(Name alias) {
return new BookStore(alias, this);
}
/**
* Rename this table
*/
@Override
public BookStore rename(String name) {
return new BookStore(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public BookStore rename(Name name) {
return new BookStore(name, null);
}
// -------------------------------------------------------------------------
// Row1 type methods
// -------------------------------------------------------------------------
@Override
public Row1<String> fieldsRow() {
return (Row1) super.fieldsRow();
}
}