You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
3.7 KiB
Java
161 lines
3.7 KiB
Java
5 years ago
|
/*
|
||
|
* Copyright 2012-2019 the original author or authors.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
8 years ago
|
/**
|
||
|
* This class is generated by jOOQ
|
||
|
*/
|
||
5 years ago
|
package smoketest.jooq.domain;
|
||
8 years ago
|
|
||
|
import java.util.Arrays;
|
||
|
import java.util.List;
|
||
|
|
||
|
import javax.annotation.Generated;
|
||
|
|
||
|
import org.jooq.Field;
|
||
|
import org.jooq.ForeignKey;
|
||
|
import org.jooq.Record;
|
||
|
import org.jooq.Schema;
|
||
|
import org.jooq.Table;
|
||
|
import org.jooq.TableField;
|
||
|
import org.jooq.UniqueKey;
|
||
|
import org.jooq.impl.TableImpl;
|
||
|
|
||
|
/**
|
||
|
* This class is generated by jOOQ.
|
||
|
*/
|
||
6 years ago
|
@Generated(value = { "https://www.jooq.org",
|
||
8 years ago
|
"jOOQ version:3.8.2" }, comments = "This class is generated by jOOQ")
|
||
8 years ago
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||
|
public class Book extends TableImpl<Record> {
|
||
|
|
||
8 years ago
|
private static final long serialVersionUID = 1176189796;
|
||
|
|
||
|
/**
|
||
|
* The reference instance of <code>PUBLIC.BOOK</code>
|
||
|
*/
|
||
|
public static final Book BOOK = new Book();
|
||
|
|
||
|
/**
|
||
|
* The class holding records for this type
|
||
|
*/
|
||
|
@Override
|
||
|
public Class<Record> getRecordType() {
|
||
|
return Record.class;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* The column <code>PUBLIC.BOOK.ID</code>.
|
||
|
*/
|
||
|
public final TableField<Record, Integer> ID = createField("ID",
|
||
|
org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||
|
|
||
|
/**
|
||
|
* The column <code>PUBLIC.BOOK.AUTHOR_ID</code>.
|
||
|
*/
|
||
|
public final TableField<Record, Integer> AUTHOR_ID = createField("AUTHOR_ID",
|
||
|
org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||
|
|
||
|
/**
|
||
|
* The column <code>PUBLIC.BOOK.TITLE</code>.
|
||
|
*/
|
||
|
public final TableField<Record, String> TITLE = createField("TITLE",
|
||
|
org.jooq.impl.SQLDataType.VARCHAR.length(400).nullable(false), this, "");
|
||
|
|
||
|
/**
|
||
|
* The column <code>PUBLIC.BOOK.PUBLISHED_IN</code>.
|
||
|
*/
|
||
|
public final TableField<Record, Integer> PUBLISHED_IN = createField("PUBLISHED_IN",
|
||
|
org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||
|
|
||
|
/**
|
||
|
* The column <code>PUBLIC.BOOK.LANGUAGE_ID</code>.
|
||
|
*/
|
||
|
public final TableField<Record, Integer> LANGUAGE_ID = createField("LANGUAGE_ID",
|
||
|
org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||
|
|
||
|
/**
|
||
|
* Create a <code>PUBLIC.BOOK</code> table reference
|
||
|
*/
|
||
|
public Book() {
|
||
|
this("BOOK", null);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Create an aliased <code>PUBLIC.BOOK</code> table reference
|
||
|
*/
|
||
|
public Book(String alias) {
|
||
|
this(alias, BOOK);
|
||
|
}
|
||
|
|
||
|
private Book(String alias, Table<Record> aliased) {
|
||
|
this(alias, aliased, null);
|
||
|
}
|
||
|
|
||
|
private Book(String alias, Table<Record> aliased, Field<?>[] parameters) {
|
||
|
super(alias, null, aliased, parameters, "");
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
*/
|
||
|
@Override
|
||
|
public Schema getSchema() {
|
||
|
return Public.PUBLIC;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
*/
|
||
|
@Override
|
||
|
public UniqueKey<Record> getPrimaryKey() {
|
||
|
return Keys.CONSTRAINT_1;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
*/
|
||
|
@Override
|
||
|
public List<UniqueKey<Record>> getKeys() {
|
||
|
return Arrays.<UniqueKey<Record>>asList(Keys.CONSTRAINT_1);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
*/
|
||
|
@Override
|
||
|
public List<ForeignKey<Record, ?>> getReferences() {
|
||
|
return Arrays.<ForeignKey<Record, ?>>asList(Keys.FK_BOOK_AUTHOR,
|
||
|
Keys.FK_BOOK_LANGUAGE);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritDoc}
|
||
|
*/
|
||
|
@Override
|
||
|
public Book as(String alias) {
|
||
|
return new Book(alias, this);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Rename this table
|
||
|
*/
|
||
8 years ago
|
@Override
|
||
8 years ago
|
public Book rename(String name) {
|
||
|
return new Book(name, null);
|
||
|
}
|
||
6 years ago
|
|
||
8 years ago
|
}
|