package org.jooq.meta.h2.information_schema.tables;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
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;
import org.jooq.meta.h2.information_schema.InformationSchema;
import org.jooq.meta.h2.information_schema.Keys;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Sequences extends TableImpl<Record> {
private static final long serialVersionUID = 1626961889;
public static final Sequences SEQUENCES = new Sequences();
@Override
public Class<Record> getRecordType() {
return Record.class;
}
public final TableField<Record, String> SEQUENCE_CATALOG = createField(DSL.name("SEQUENCE_CATALOG"), SQLDataType.VARCHAR(2147483647), this, "");
public final TableField<Record, String> SEQUENCE_SCHEMA = createField(DSL.name("SEQUENCE_SCHEMA"), SQLDataType.VARCHAR(2147483647), this, "");
public final TableField<Record, String> SEQUENCE_NAME = createField(DSL.name("SEQUENCE_NAME"), SQLDataType.VARCHAR(2147483647), this, "");
public final TableField<Record, Long> CURRENT_VALUE = createField(DSL.name("CURRENT_VALUE"), SQLDataType.BIGINT, this, "");
public final TableField<Record, Long> INCREMENT = createField(DSL.name("INCREMENT"), SQLDataType.BIGINT, this, "");
public final TableField<Record, Boolean> IS_GENERATED = createField(DSL.name("IS_GENERATED"), SQLDataType.BOOLEAN, this, "");
public final TableField<Record, String> = createField(DSL.name("REMARKS"), SQLDataType.VARCHAR(2147483647), this, "");
public final TableField<Record, Long> CACHE = createField(DSL.name("CACHE"), SQLDataType.BIGINT, this, "");
public final TableField<Record, Long> MIN_VALUE = createField(DSL.name("MIN_VALUE"), SQLDataType.BIGINT, this, "");
public final TableField<Record, Long> MAX_VALUE = createField(DSL.name("MAX_VALUE"), SQLDataType.BIGINT, this, "");
public final TableField<Record, Boolean> IS_CYCLE = createField(DSL.name("IS_CYCLE"), SQLDataType.BOOLEAN, this, "");
public final TableField<Record, Integer> ID = createField(DSL.name("ID"), SQLDataType.INTEGER, this, "");
private Sequences(Name alias, Table<Record> aliased) {
this(alias, aliased, null);
}
private Sequences(Name alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public Sequences(String alias) {
this(DSL.name(alias), SEQUENCES);
}
public Sequences(Name alias) {
this(alias, SEQUENCES);
}
public Sequences() {
this(DSL.name("SEQUENCES"), null);
}
public <O extends Record> Sequences(Table<O> child, ForeignKey<O, Record> key) {
super(child, key, SEQUENCES);
}
@Override
public Schema getSchema() {
return InformationSchema.INFORMATION_SCHEMA;
}
@Override
public UniqueKey<Record> getPrimaryKey() {
return Keys.SYNTHETIC_PK_SEQUENCES;
}
@Override
public List<UniqueKey<Record>> getKeys() {
return Arrays.<UniqueKey<Record>>asList(Keys.SYNTHETIC_PK_SEQUENCES);
}
@Override
public Sequences as(String alias) {
return new Sequences(DSL.name(alias), this);
}
@Override
public Sequences as(Name alias) {
return new Sequences(alias, this);
}
@Override
public Sequences rename(String name) {
return new Sequences(DSL.name(name), null);
}
@Override
public Sequences rename(Name name) {
return new Sequences(name, null);
}
}