2023-11-02 08:26:25 +08:00

149 lines
3.8 KiB
Java

/*
* This file is generated by jOOQ.
*/
package com.darkness.pojo.entity.tables;
import com.darkness.pojo.entity.Keys;
import com.darkness.pojo.entity.Konosuba;
import com.darkness.pojo.entity.tables.records.DemoUserRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row2;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DemoUser extends TableImpl<DemoUserRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>konosuba.demo_user</code>
*/
public static final DemoUser DEMO_USER = new DemoUser();
/**
* The class holding records for this type
*/
@Override
public Class<DemoUserRecord> getRecordType() {
return DemoUserRecord.class;
}
/**
* The column <code>konosuba.demo_user.id</code>.
*/
public final TableField<DemoUserRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>konosuba.demo_user.user_name</code>.
*/
public final TableField<DemoUserRecord, String> USER_NAME = createField(DSL.name("user_name"), SQLDataType.VARCHAR(255), this, "");
private DemoUser(Name alias, Table<DemoUserRecord> aliased) {
this(alias, aliased, null);
}
private DemoUser(Name alias, Table<DemoUserRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>konosuba.demo_user</code> table reference
*/
public DemoUser(String alias) {
this(DSL.name(alias), DEMO_USER);
}
/**
* Create an aliased <code>konosuba.demo_user</code> table reference
*/
public DemoUser(Name alias) {
this(alias, DEMO_USER);
}
/**
* Create a <code>konosuba.demo_user</code> table reference
*/
public DemoUser() {
this(DSL.name("demo_user"), null);
}
public <O extends Record> DemoUser(Table<O> child, ForeignKey<O, DemoUserRecord> key) {
super(child, key, DEMO_USER);
}
@Override
public Schema getSchema() {
return Konosuba.KONOSUBA;
}
@Override
public Identity<DemoUserRecord, Integer> getIdentity() {
return (Identity<DemoUserRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<DemoUserRecord> getPrimaryKey() {
return Keys.KEY_DEMO_USER_PRIMARY;
}
@Override
public List<UniqueKey<DemoUserRecord>> getKeys() {
return Arrays.<UniqueKey<DemoUserRecord>>asList(Keys.KEY_DEMO_USER_PRIMARY);
}
@Override
public DemoUser as(String alias) {
return new DemoUser(DSL.name(alias), this);
}
@Override
public DemoUser as(Name alias) {
return new DemoUser(alias, this);
}
/**
* Rename this table
*/
@Override
public DemoUser rename(String name) {
return new DemoUser(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public DemoUser rename(Name name) {
return new DemoUser(name, null);
}
// -------------------------------------------------------------------------
// Row2 type methods
// -------------------------------------------------------------------------
@Override
public Row2<Integer, String> fieldsRow() {
return (Row2) super.fieldsRow();
}
}