com.walmartlabs.persistence.jooq.tables.Users Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package com.walmartlabs.persistence.jooq.tables;
import com.walmartlabs.persistence.jooq.Indexes;
import com.walmartlabs.persistence.jooq.Keys;
import com.walmartlabs.persistence.jooq.Public;
import com.walmartlabs.persistence.jooq.tables.records.UsersRecord;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
/**
* List of Users
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.11.5"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Users extends TableImpl {
private static final long serialVersionUID = 14380727;
/**
* The reference instance of PUBLIC.USERS
*/
public static final Users USERS = new Users();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return UsersRecord.class;
}
/**
* The column PUBLIC.USERS.ID
. Unique key ID
*/
public final TableField ID = createField("ID", org.jooq.impl.SQLDataType.UUID.nullable(false), this, "Unique key ID");
/**
* The column PUBLIC.USERS.FIRST_NAME
. first name
*/
public final TableField FIRST_NAME = createField("FIRST_NAME", org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "first name");
/**
* The column PUBLIC.USERS.LAST_NAME
. last name
*/
public final TableField LAST_NAME = createField("LAST_NAME", org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "last name");
/**
* Create a PUBLIC.USERS
table reference
*/
public Users() {
this(DSL.name("USERS"), null);
}
/**
* Create an aliased PUBLIC.USERS
table reference
*/
public Users(String alias) {
this(DSL.name(alias), USERS);
}
/**
* Create an aliased PUBLIC.USERS
table reference
*/
public Users(Name alias) {
this(alias, USERS);
}
private Users(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Users(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("List of Users"));
}
public Users(Table child, ForeignKey key) {
super(child, key, USERS);
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
/**
* {@inheritDoc}
*/
@Override
public List getIndexes() {
return Arrays.asList(Indexes.PRIMARY_KEY_4);
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey getPrimaryKey() {
return Keys.PK_USERS_ID;
}
/**
* {@inheritDoc}
*/
@Override
public List> getKeys() {
return Arrays.>asList(Keys.PK_USERS_ID);
}
/**
* {@inheritDoc}
*/
@Override
public Users as(String alias) {
return new Users(DSL.name(alias), this);
}
/**
* {@inheritDoc}
*/
@Override
public Users as(Name alias) {
return new Users(alias, this);
}
/**
* Rename this table
*/
@Override
public Users rename(String name) {
return new Users(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Users rename(Name name) {
return new Users(name, null);
}
}