src/main/java/de/oglimmer/lunchy/database/generated/tables/LocationUsersEmail.java
/**
* This class is generated by jOOQ
*/
package de.oglimmer.lunchy.database.generated.tables;
import de.oglimmer.lunchy.database.generated.Keys;
import de.oglimmer.lunchy.database.generated.OliLunchy;
import de.oglimmer.lunchy.database.generated.tables.records.LocationUsersEmailRecord;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
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.7.2"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LocationUsersEmail extends TableImpl<LocationUsersEmailRecord> {
private static final long serialVersionUID = -1437477085;
/**
* The reference instance of <code>oli_lunchy.location_users_email</code>
*/
public static final LocationUsersEmail LOCATION_USERS_EMAIL = new LocationUsersEmail();
/**
* The class holding records for this type
*/
@Override
public Class<LocationUsersEmailRecord> getRecordType() {
return LocationUsersEmailRecord.class;
}
/**
* The column <code>oli_lunchy.location_users_email.id</code>.
*/
public final TableField<LocationUsersEmailRecord, Integer> ID = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>oli_lunchy.location_users_email.fk_location</code>.
*/
public final TableField<LocationUsersEmailRecord, Integer> FK_LOCATION = createField("fk_location", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>oli_lunchy.location_users_email.fk_user</code>.
*/
public final TableField<LocationUsersEmailRecord, Integer> FK_USER = createField("fk_user", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>oli_lunchy.location_users_email.local_name</code>.
*/
public final TableField<LocationUsersEmailRecord, String> LOCAL_NAME = createField("local_name", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");
/**
* Create a <code>oli_lunchy.location_users_email</code> table reference
*/
public LocationUsersEmail() {
this("location_users_email", null);
}
/**
* Create an aliased <code>oli_lunchy.location_users_email</code> table reference
*/
public LocationUsersEmail(String alias) {
this(alias, LOCATION_USERS_EMAIL);
}
private LocationUsersEmail(String alias, Table<LocationUsersEmailRecord> aliased) {
this(alias, aliased, null);
}
private LocationUsersEmail(String alias, Table<LocationUsersEmailRecord> aliased, Field<?>[] parameters) {
super(alias, OliLunchy.OLI_LUNCHY, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Identity<LocationUsersEmailRecord, Integer> getIdentity() {
return Keys.IDENTITY_LOCATION_USERS_EMAIL;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<LocationUsersEmailRecord> getPrimaryKey() {
return Keys.KEY_LOCATION_USERS_EMAIL_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<LocationUsersEmailRecord>> getKeys() {
return Arrays.<UniqueKey<LocationUsersEmailRecord>>asList(Keys.KEY_LOCATION_USERS_EMAIL_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public List<ForeignKey<LocationUsersEmailRecord, ?>> getReferences() {
return Arrays.<ForeignKey<LocationUsersEmailRecord, ?>>asList(Keys.FK_LOCATION_USERS_EMAIL_LOCATION, Keys.FK_LOCATION_USERS_EMAIL_USER);
}
/**
* {@inheritDoc}
*/
@Override
public LocationUsersEmail as(String alias) {
return new LocationUsersEmail(alias, this);
}
/**
* Rename this table
*/
public LocationUsersEmail rename(String name) {
return new LocationUsersEmail(name, null);
}
}