/**
* This class is generated by jOOQ
*/
package jooqdb.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import jooqdb.Keys;
import jooqdb.Smrtms;
import jooqdb.tables.records.UserRecord;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class User extends TableImpl<UserRecord> {
private static final long serialVersionUID = 125457723;
/**
* The reference instance of <code>SMRTMS.User</code>
*/
public static final User USER = new User();
/**
* The class holding records for this type
*/
@Override
public Class<UserRecord> getRecordType() {
return UserRecord.class;
}
/**
* The column <code>SMRTMS.User.ID</code>.
*/
public final TableField<UserRecord, Integer> ID = createField("ID", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>SMRTMS.User.Username</code>.
*/
public final TableField<UserRecord, String> USERNAME = createField("Username", org.jooq.impl.SQLDataType.CHAR.length(50), this, "");
/**
* The column <code>SMRTMS.User.Email</code>.
*/
public final TableField<UserRecord, String> EMAIL = createField("Email", org.jooq.impl.SQLDataType.CHAR.length(50), this, "");
/**
* The column <code>SMRTMS.User.Password</code>.
*/
public final TableField<UserRecord, String> PASSWORD = createField("Password", org.jooq.impl.SQLDataType.CHAR.length(20), this, "");
/**
* The column <code>SMRTMS.User.Longitude</code>.
*/
public final TableField<UserRecord, Double> LONGITUDE = createField("Longitude", org.jooq.impl.SQLDataType.DOUBLE, this, "");
/**
* The column <code>SMRTMS.User.Latitude</code>.
*/
public final TableField<UserRecord, Double> LATITUDE = createField("Latitude", org.jooq.impl.SQLDataType.DOUBLE, this, "");
/**
* The column <code>SMRTMS.User.Avatar</code>.
*/
public final TableField<UserRecord, String> AVATAR = createField("Avatar", org.jooq.impl.SQLDataType.CHAR.length(15), this, "");
/**
* The column <code>SMRTMS.User.IsOnline</code>.
*/
public final TableField<UserRecord, Byte> ISONLINE = createField("IsOnline", org.jooq.impl.SQLDataType.TINYINT, this, "");
/**
* Create a <code>SMRTMS.User</code> table reference
*/
public User() {
this("User", null);
}
/**
* Create an aliased <code>SMRTMS.User</code> table reference
*/
public User(String alias) {
this(alias, USER);
}
private User(String alias, Table<UserRecord> aliased) {
this(alias, aliased, null);
}
private User(String alias, Table<UserRecord> aliased, Field<?>[] parameters) {
super(alias, Smrtms.SMRTMS, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Identity<UserRecord, Integer> getIdentity() {
return Keys.IDENTITY_USER;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<UserRecord> getPrimaryKey() {
return Keys.KEY_USER_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<UserRecord>> getKeys() {
return Arrays.<UniqueKey<UserRecord>>asList(Keys.KEY_USER_PRIMARY, Keys.KEY_USER_ID, Keys.KEY_USER_USERNAME, Keys.KEY_USER_EMAIL);
}
/**
* {@inheritDoc}
*/
@Override
public User as(String alias) {
return new User(alias, this);
}
/**
* Rename this table
*/
public User rename(String name) {
return new User(name, null);
}
}