generated jooq classes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="bin/main" path="src/main/java">
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="src" output="bin/main" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="gradle_scope" value="main"/>
|
||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src/main/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-21-openjdk-amd64">
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
|
||||
org.eclipse.jdt.core.compiler.compliance=17
|
||||
org.eclipse.jdt.core.compiler.source=17
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
|
||||
org.eclipse.jdt.core.compiler.compliance=21
|
||||
org.eclipse.jdt.core.compiler.source=21
|
||||
|
||||
91
src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java
Normal file
91
src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.Contact;
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.note.Note;
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.public_.Public;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Constants;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.impl.CatalogImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class DefaultCatalog extends CatalogImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>DEFAULT_CATALOG</code>
|
||||
*/
|
||||
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
|
||||
|
||||
/**
|
||||
* The schema <code>contact</code>.
|
||||
*/
|
||||
public final Contact CONTACT = Contact.CONTACT;
|
||||
|
||||
/**
|
||||
* The schema <code>done</code>.
|
||||
*/
|
||||
public final Done DONE = Done.DONE;
|
||||
|
||||
/**
|
||||
* The schema <code>note</code>.
|
||||
*/
|
||||
public final Note NOTE = Note.NOTE;
|
||||
|
||||
/**
|
||||
* The schema <code>profile</code>.
|
||||
*/
|
||||
public final Profile PROFILE = Profile.PROFILE;
|
||||
|
||||
/**
|
||||
* The schema <code>project</code>.
|
||||
*/
|
||||
public final Project PROJECT = Project.PROJECT;
|
||||
|
||||
/**
|
||||
* The schema <code>public</code>.
|
||||
*/
|
||||
public final Public PUBLIC = Public.PUBLIC;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DefaultCatalog() {
|
||||
super("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Schema> getSchemas() {
|
||||
return Arrays.asList(
|
||||
Contact.CONTACT,
|
||||
Done.DONE,
|
||||
Note.NOTE,
|
||||
Profile.PROFILE,
|
||||
Project.PROJECT,
|
||||
Public.PUBLIC
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A reference to the 3.19 minor release of the code generator. If this
|
||||
* doesn't compile, it's because the runtime library uses an older minor
|
||||
* release, namely: 3.19. You can turn off the generation of this reference
|
||||
* by specifying /configuration/generator/generate/jooqVersionReference
|
||||
*/
|
||||
private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19;
|
||||
}
|
||||
55
src/main/java/de/jottyfan/timetrack/db/contact/Contact.java
Normal file
55
src/main/java/de/jottyfan/timetrack/db/contact/Contact.java
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.DefaultCatalog;
|
||||
import de.jottyfan.timetrack.db.contact.tables.TContact;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Contact extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>contact</code>
|
||||
*/
|
||||
public static final Contact CONTACT = new Contact();
|
||||
|
||||
/**
|
||||
* The table <code>contact.t_contact</code>.
|
||||
*/
|
||||
public final TContact T_CONTACT = TContact.T_CONTACT;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Contact() {
|
||||
super("contact", null);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TContact.T_CONTACT
|
||||
);
|
||||
}
|
||||
}
|
||||
28
src/main/java/de/jottyfan/timetrack/db/contact/Keys.java
Normal file
28
src/main/java/de/jottyfan/timetrack/db/contact/Keys.java
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.tables.TContact;
|
||||
import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.Internal;
|
||||
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* contact.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TContactRecord> T_CONTACT_PKEY = Internal.createUniqueKey(TContact.T_CONTACT, DSL.name("t_contact_pkey"), new TableField[] { TContact.T_CONTACT.PK }, true);
|
||||
}
|
||||
20
src/main/java/de/jottyfan/timetrack/db/contact/Tables.java
Normal file
20
src/main/java/de/jottyfan/timetrack/db/contact/Tables.java
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.tables.TContact;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in contact.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>contact.t_contact</code>.
|
||||
*/
|
||||
public static final TContact T_CONTACT = TContact.T_CONTACT;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact.enums;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.Contact;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Schema;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public enum EnumContacttype implements EnumType {
|
||||
|
||||
privat("privat"),
|
||||
|
||||
mobil("mobil"),
|
||||
|
||||
dienstlich("dienstlich"),
|
||||
|
||||
E_Mail("E-Mail"),
|
||||
|
||||
Skype("Skype");
|
||||
|
||||
private final String literal;
|
||||
|
||||
private EnumContacttype(String literal) {
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return getSchema().getCatalog();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Contact.CONTACT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "enum_contacttype";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLiteral() {
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a value of this EnumType by its literal. Returns
|
||||
* <code>null</code>, if no such value could be found, see {@link
|
||||
* EnumType#lookupLiteral(Class, String)}.
|
||||
*/
|
||||
public static EnumContacttype lookupLiteral(String literal) {
|
||||
return EnumType.lookupLiteral(EnumContacttype.class, literal);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.Contact;
|
||||
import de.jottyfan.timetrack.db.contact.Keys;
|
||||
import de.jottyfan.timetrack.db.contact.enums.EnumContacttype;
|
||||
import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TContact extends TableImpl<TContactRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>contact.t_contact</code>
|
||||
*/
|
||||
public static final TContact T_CONTACT = new TContact();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TContactRecord> getRecordType() {
|
||||
return TContactRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>contact.t_contact.pk</code>.
|
||||
*/
|
||||
public final TableField<TContactRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>contact.t_contact.forename</code>.
|
||||
*/
|
||||
public final TableField<TContactRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>contact.t_contact.surname</code>.
|
||||
*/
|
||||
public final TableField<TContactRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>contact.t_contact.contact</code>.
|
||||
*/
|
||||
public final TableField<TContactRecord, String> CONTACT = createField(DSL.name("contact"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>contact.t_contact.type</code>.
|
||||
*/
|
||||
public final TableField<TContactRecord, EnumContacttype> TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumContacttype.class), this, "");
|
||||
|
||||
private TContact(Name alias, Table<TContactRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TContact(Name alias, Table<TContactRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>contact.t_contact</code> table reference
|
||||
*/
|
||||
public TContact(String alias) {
|
||||
this(DSL.name(alias), T_CONTACT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>contact.t_contact</code> table reference
|
||||
*/
|
||||
public TContact(Name alias) {
|
||||
this(alias, T_CONTACT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>contact.t_contact</code> table reference
|
||||
*/
|
||||
public TContact() {
|
||||
this(DSL.name("t_contact"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Contact.CONTACT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TContactRecord, Integer> getIdentity() {
|
||||
return (Identity<TContactRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TContactRecord> getPrimaryKey() {
|
||||
return Keys.T_CONTACT_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TContact as(String alias) {
|
||||
return new TContact(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TContact as(Name alias) {
|
||||
return new TContact(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TContact as(Table<?> alias) {
|
||||
return new TContact(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TContact rename(String name) {
|
||||
return new TContact(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TContact rename(Name name) {
|
||||
return new TContact(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TContact rename(Table<?> name) {
|
||||
return new TContact(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact where(Condition condition) {
|
||||
return new TContact(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TContact where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TContact where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TContact where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TContact where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TContact whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.contact.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.contact.enums.EnumContacttype;
|
||||
import de.jottyfan.timetrack.db.contact.tables.TContact;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TContactRecord extends UpdatableRecordImpl<TContactRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>contact.t_contact.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>contact.t_contact.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>contact.t_contact.forename</code>.
|
||||
*/
|
||||
public void setForename(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>contact.t_contact.forename</code>.
|
||||
*/
|
||||
public String getForename() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>contact.t_contact.surname</code>.
|
||||
*/
|
||||
public void setSurname(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>contact.t_contact.surname</code>.
|
||||
*/
|
||||
public String getSurname() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>contact.t_contact.contact</code>.
|
||||
*/
|
||||
public void setContact(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>contact.t_contact.contact</code>.
|
||||
*/
|
||||
public String getContact() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>contact.t_contact.type</code>.
|
||||
*/
|
||||
public void setType(EnumContacttype value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>contact.t_contact.type</code>.
|
||||
*/
|
||||
public EnumContacttype getType() {
|
||||
return (EnumContacttype) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TContactRecord
|
||||
*/
|
||||
public TContactRecord() {
|
||||
super(TContact.T_CONTACT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TContactRecord
|
||||
*/
|
||||
public TContactRecord(Integer pk, String forename, String surname, String contact, EnumContacttype type) {
|
||||
super(TContact.T_CONTACT);
|
||||
|
||||
setPk(pk);
|
||||
setForename(forename);
|
||||
setSurname(surname);
|
||||
setContact(contact);
|
||||
setType(type);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
237
src/main/java/de/jottyfan/timetrack/db/done/Done.java
Normal file
237
src/main/java/de/jottyfan/timetrack/db/done/Done.java
Normal file
@@ -0,0 +1,237 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.DefaultCatalog;
|
||||
import de.jottyfan.timetrack.db.done.tables.TBilling;
|
||||
import de.jottyfan.timetrack.db.done.tables.TDone;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFavorite;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFreetime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TJob;
|
||||
import de.jottyfan.timetrack.db.done.tables.TModule;
|
||||
import de.jottyfan.timetrack.db.done.tables.TOvertime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.done.tables.TRequiredWorktime;
|
||||
import de.jottyfan.timetrack.db.done.tables.VBilling;
|
||||
import de.jottyfan.timetrack.db.done.tables.VCurrentOvertime;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaily;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDay;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimit;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimits;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaysummary;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDone;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDuration;
|
||||
import de.jottyfan.timetrack.db.done.tables.VFavorite;
|
||||
import de.jottyfan.timetrack.db.done.tables.VHamstersummary;
|
||||
import de.jottyfan.timetrack.db.done.tables.VJob;
|
||||
import de.jottyfan.timetrack.db.done.tables.VModule;
|
||||
import de.jottyfan.timetrack.db.done.tables.VProject;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTasklist;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTimelength;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTotalofday;
|
||||
import de.jottyfan.timetrack.db.done.tables.VWorktime;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Done extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done</code>
|
||||
*/
|
||||
public static final Done DONE = new Done();
|
||||
|
||||
/**
|
||||
* The table <code>done.t_billing</code>.
|
||||
*/
|
||||
public final TBilling T_BILLING = TBilling.T_BILLING;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_done</code>.
|
||||
*/
|
||||
public final TDone T_DONE = TDone.T_DONE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_favorite</code>.
|
||||
*/
|
||||
public final TFavorite T_FAVORITE = TFavorite.T_FAVORITE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_freetime</code>.
|
||||
*/
|
||||
public final TFreetime T_FREETIME = TFreetime.T_FREETIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_job</code>.
|
||||
*/
|
||||
public final TJob T_JOB = TJob.T_JOB;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_module</code>.
|
||||
*/
|
||||
public final TModule T_MODULE = TModule.T_MODULE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_overtime</code>.
|
||||
*/
|
||||
public final TOvertime T_OVERTIME = TOvertime.T_OVERTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_project</code>.
|
||||
*/
|
||||
public final TProject T_PROJECT = TProject.T_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_required_worktime</code>.
|
||||
*/
|
||||
public final TRequiredWorktime T_REQUIRED_WORKTIME = TRequiredWorktime.T_REQUIRED_WORKTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_billing</code>.
|
||||
*/
|
||||
public final VBilling V_BILLING = VBilling.V_BILLING;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_current_overtime</code>.
|
||||
*/
|
||||
public final VCurrentOvertime V_CURRENT_OVERTIME = VCurrentOvertime.V_CURRENT_OVERTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daily</code>.
|
||||
*/
|
||||
public final VDaily V_DAILY = VDaily.V_DAILY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_day</code>.
|
||||
*/
|
||||
public final VDay V_DAY = VDay.V_DAY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daylimit</code>.
|
||||
*/
|
||||
public final VDaylimit V_DAYLIMIT = VDaylimit.V_DAYLIMIT;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daylimits</code>.
|
||||
*/
|
||||
public final VDaylimits V_DAYLIMITS = VDaylimits.V_DAYLIMITS;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daysummary</code>.
|
||||
*/
|
||||
public final VDaysummary V_DAYSUMMARY = VDaysummary.V_DAYSUMMARY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_done</code>.
|
||||
*/
|
||||
public final VDone V_DONE = VDone.V_DONE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_duration</code>.
|
||||
*/
|
||||
public final VDuration V_DURATION = VDuration.V_DURATION;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_favorite</code>.
|
||||
*/
|
||||
public final VFavorite V_FAVORITE = VFavorite.V_FAVORITE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_hamstersummary</code>.
|
||||
*/
|
||||
public final VHamstersummary V_HAMSTERSUMMARY = VHamstersummary.V_HAMSTERSUMMARY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_job</code>.
|
||||
*/
|
||||
public final VJob V_JOB = VJob.V_JOB;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_module</code>.
|
||||
*/
|
||||
public final VModule V_MODULE = VModule.V_MODULE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_project</code>.
|
||||
*/
|
||||
public final VProject V_PROJECT = VProject.V_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_tasklist</code>.
|
||||
*/
|
||||
public final VTasklist V_TASKLIST = VTasklist.V_TASKLIST;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_timelength</code>.
|
||||
*/
|
||||
public final VTimelength V_TIMELENGTH = VTimelength.V_TIMELENGTH;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_totalofday</code>.
|
||||
*/
|
||||
public final VTotalofday V_TOTALOFDAY = VTotalofday.V_TOTALOFDAY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_worktime</code>.
|
||||
*/
|
||||
public final VWorktime V_WORKTIME = VWorktime.V_WORKTIME;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Done() {
|
||||
super("done", null);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TBilling.T_BILLING,
|
||||
TDone.T_DONE,
|
||||
TFavorite.T_FAVORITE,
|
||||
TFreetime.T_FREETIME,
|
||||
TJob.T_JOB,
|
||||
TModule.T_MODULE,
|
||||
TOvertime.T_OVERTIME,
|
||||
TProject.T_PROJECT,
|
||||
TRequiredWorktime.T_REQUIRED_WORKTIME,
|
||||
VBilling.V_BILLING,
|
||||
VCurrentOvertime.V_CURRENT_OVERTIME,
|
||||
VDaily.V_DAILY,
|
||||
VDay.V_DAY,
|
||||
VDaylimit.V_DAYLIMIT,
|
||||
VDaylimits.V_DAYLIMITS,
|
||||
VDaysummary.V_DAYSUMMARY,
|
||||
VDone.V_DONE,
|
||||
VDuration.V_DURATION,
|
||||
VFavorite.V_FAVORITE,
|
||||
VHamstersummary.V_HAMSTERSUMMARY,
|
||||
VJob.V_JOB,
|
||||
VModule.V_MODULE,
|
||||
VProject.V_PROJECT,
|
||||
VTasklist.V_TASKLIST,
|
||||
VTimelength.V_TIMELENGTH,
|
||||
VTotalofday.V_TOTALOFDAY,
|
||||
VWorktime.V_WORKTIME
|
||||
);
|
||||
}
|
||||
}
|
||||
60
src/main/java/de/jottyfan/timetrack/db/done/Keys.java
Normal file
60
src/main/java/de/jottyfan/timetrack/db/done/Keys.java
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TBilling;
|
||||
import de.jottyfan.timetrack.db.done.tables.TDone;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFavorite;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFreetime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TJob;
|
||||
import de.jottyfan.timetrack.db.done.tables.TModule;
|
||||
import de.jottyfan.timetrack.db.done.tables.TOvertime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.done.tables.TRequiredWorktime;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TBillingRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TFavoriteRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TFreetimeRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TJobRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TOvertimeRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TRequiredWorktimeRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.Internal;
|
||||
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* done.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TBillingRecord> T_BILLING_NAME_KEY = Internal.createUniqueKey(TBilling.T_BILLING, DSL.name("t_billing_name_key"), new TableField[] { TBilling.T_BILLING.NAME }, true);
|
||||
public static final UniqueKey<TBillingRecord> T_BILLING_PKEY = Internal.createUniqueKey(TBilling.T_BILLING, DSL.name("t_billing_pkey"), new TableField[] { TBilling.T_BILLING.PK }, true);
|
||||
public static final UniqueKey<TBillingRecord> T_BILLING_SHORTCUT_KEY = Internal.createUniqueKey(TBilling.T_BILLING, DSL.name("t_billing_shortcut_key"), new TableField[] { TBilling.T_BILLING.SHORTCUT }, true);
|
||||
public static final UniqueKey<TDoneRecord> T_DONE_PKEY = Internal.createUniqueKey(TDone.T_DONE, DSL.name("t_done_pkey"), new TableField[] { TDone.T_DONE.PK }, true);
|
||||
public static final UniqueKey<TFavoriteRecord> T_FAVORITE_PKEY = Internal.createUniqueKey(TFavorite.T_FAVORITE, DSL.name("t_favorite_pkey"), new TableField[] { TFavorite.T_FAVORITE.PK_FAVORITE }, true);
|
||||
public static final UniqueKey<TFreetimeRecord> T_FREETIME_DAY_FK_LOGIN_KEY = Internal.createUniqueKey(TFreetime.T_FREETIME, DSL.name("t_freetime_day_fk_login_key"), new TableField[] { TFreetime.T_FREETIME.DAY, TFreetime.T_FREETIME.FK_LOGIN }, true);
|
||||
public static final UniqueKey<TFreetimeRecord> T_FREETIME_PKEY = Internal.createUniqueKey(TFreetime.T_FREETIME, DSL.name("t_freetime_pkey"), new TableField[] { TFreetime.T_FREETIME.PK_FREETIME }, true);
|
||||
public static final UniqueKey<TJobRecord> T_CATEGORY_NAME_KEY = Internal.createUniqueKey(TJob.T_JOB, DSL.name("t_category_name_key"), new TableField[] { TJob.T_JOB.NAME }, true);
|
||||
public static final UniqueKey<TJobRecord> T_CATEGORY_PKEY = Internal.createUniqueKey(TJob.T_JOB, DSL.name("t_category_pkey"), new TableField[] { TJob.T_JOB.PK }, true);
|
||||
public static final UniqueKey<TModuleRecord> T_JOB_NAME_KEY = Internal.createUniqueKey(TModule.T_MODULE, DSL.name("t_job_name_key"), new TableField[] { TModule.T_MODULE.NAME }, true);
|
||||
public static final UniqueKey<TModuleRecord> T_JOB_PKEY = Internal.createUniqueKey(TModule.T_MODULE, DSL.name("t_job_pkey"), new TableField[] { TModule.T_MODULE.PK }, true);
|
||||
public static final UniqueKey<TOvertimeRecord> T_OVERTIME_FK_LOGIN_KEY = Internal.createUniqueKey(TOvertime.T_OVERTIME, DSL.name("t_overtime_fk_login_key"), new TableField[] { TOvertime.T_OVERTIME.FK_LOGIN }, true);
|
||||
public static final UniqueKey<TOvertimeRecord> T_OVERTIME_PKEY = Internal.createUniqueKey(TOvertime.T_OVERTIME, DSL.name("t_overtime_pkey"), new TableField[] { TOvertime.T_OVERTIME.PK_OVERTIME }, true);
|
||||
public static final UniqueKey<TProjectRecord> T_PROJECT_NAME_KEY = Internal.createUniqueKey(TProject.T_PROJECT, DSL.name("t_project_name_key"), new TableField[] { TProject.T_PROJECT.NAME }, true);
|
||||
public static final UniqueKey<TProjectRecord> T_PROJECT_PKEY = Internal.createUniqueKey(TProject.T_PROJECT, DSL.name("t_project_pkey"), new TableField[] { TProject.T_PROJECT.PK }, true);
|
||||
public static final UniqueKey<TRequiredWorktimeRecord> T_REQUIRED_WORKTIME_DAY_FK_LOGIN_KEY = Internal.createUniqueKey(TRequiredWorktime.T_REQUIRED_WORKTIME, DSL.name("t_required_worktime_day_fk_login_key"), new TableField[] { TRequiredWorktime.T_REQUIRED_WORKTIME.DAY, TRequiredWorktime.T_REQUIRED_WORKTIME.FK_LOGIN }, true);
|
||||
public static final UniqueKey<TRequiredWorktimeRecord> T_REQUIRED_WORKTIME_PKEY = Internal.createUniqueKey(TRequiredWorktime.T_REQUIRED_WORKTIME, DSL.name("t_required_worktime_pkey"), new TableField[] { TRequiredWorktime.T_REQUIRED_WORKTIME.PK_REQUIRED_WORKTIME }, true);
|
||||
}
|
||||
176
src/main/java/de/jottyfan/timetrack/db/done/Tables.java
Normal file
176
src/main/java/de/jottyfan/timetrack/db/done/Tables.java
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TBilling;
|
||||
import de.jottyfan.timetrack.db.done.tables.TDone;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFavorite;
|
||||
import de.jottyfan.timetrack.db.done.tables.TFreetime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TJob;
|
||||
import de.jottyfan.timetrack.db.done.tables.TModule;
|
||||
import de.jottyfan.timetrack.db.done.tables.TOvertime;
|
||||
import de.jottyfan.timetrack.db.done.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.done.tables.TRequiredWorktime;
|
||||
import de.jottyfan.timetrack.db.done.tables.VBilling;
|
||||
import de.jottyfan.timetrack.db.done.tables.VCurrentOvertime;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaily;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDay;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimit;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimits;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaysummary;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDone;
|
||||
import de.jottyfan.timetrack.db.done.tables.VDuration;
|
||||
import de.jottyfan.timetrack.db.done.tables.VFavorite;
|
||||
import de.jottyfan.timetrack.db.done.tables.VHamstersummary;
|
||||
import de.jottyfan.timetrack.db.done.tables.VJob;
|
||||
import de.jottyfan.timetrack.db.done.tables.VModule;
|
||||
import de.jottyfan.timetrack.db.done.tables.VProject;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTasklist;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTimelength;
|
||||
import de.jottyfan.timetrack.db.done.tables.VTotalofday;
|
||||
import de.jottyfan.timetrack.db.done.tables.VWorktime;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in done.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>done.t_billing</code>.
|
||||
*/
|
||||
public static final TBilling T_BILLING = TBilling.T_BILLING;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_done</code>.
|
||||
*/
|
||||
public static final TDone T_DONE = TDone.T_DONE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_favorite</code>.
|
||||
*/
|
||||
public static final TFavorite T_FAVORITE = TFavorite.T_FAVORITE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_freetime</code>.
|
||||
*/
|
||||
public static final TFreetime T_FREETIME = TFreetime.T_FREETIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_job</code>.
|
||||
*/
|
||||
public static final TJob T_JOB = TJob.T_JOB;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_module</code>.
|
||||
*/
|
||||
public static final TModule T_MODULE = TModule.T_MODULE;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_overtime</code>.
|
||||
*/
|
||||
public static final TOvertime T_OVERTIME = TOvertime.T_OVERTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_project</code>.
|
||||
*/
|
||||
public static final TProject T_PROJECT = TProject.T_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>done.t_required_worktime</code>.
|
||||
*/
|
||||
public static final TRequiredWorktime T_REQUIRED_WORKTIME = TRequiredWorktime.T_REQUIRED_WORKTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_billing</code>.
|
||||
*/
|
||||
public static final VBilling V_BILLING = VBilling.V_BILLING;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_current_overtime</code>.
|
||||
*/
|
||||
public static final VCurrentOvertime V_CURRENT_OVERTIME = VCurrentOvertime.V_CURRENT_OVERTIME;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daily</code>.
|
||||
*/
|
||||
public static final VDaily V_DAILY = VDaily.V_DAILY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_day</code>.
|
||||
*/
|
||||
public static final VDay V_DAY = VDay.V_DAY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daylimit</code>.
|
||||
*/
|
||||
public static final VDaylimit V_DAYLIMIT = VDaylimit.V_DAYLIMIT;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daylimits</code>.
|
||||
*/
|
||||
public static final VDaylimits V_DAYLIMITS = VDaylimits.V_DAYLIMITS;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_daysummary</code>.
|
||||
*/
|
||||
public static final VDaysummary V_DAYSUMMARY = VDaysummary.V_DAYSUMMARY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_done</code>.
|
||||
*/
|
||||
public static final VDone V_DONE = VDone.V_DONE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_duration</code>.
|
||||
*/
|
||||
public static final VDuration V_DURATION = VDuration.V_DURATION;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_favorite</code>.
|
||||
*/
|
||||
public static final VFavorite V_FAVORITE = VFavorite.V_FAVORITE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_hamstersummary</code>.
|
||||
*/
|
||||
public static final VHamstersummary V_HAMSTERSUMMARY = VHamstersummary.V_HAMSTERSUMMARY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_job</code>.
|
||||
*/
|
||||
public static final VJob V_JOB = VJob.V_JOB;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_module</code>.
|
||||
*/
|
||||
public static final VModule V_MODULE = VModule.V_MODULE;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_project</code>.
|
||||
*/
|
||||
public static final VProject V_PROJECT = VProject.V_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_tasklist</code>.
|
||||
*/
|
||||
public static final VTasklist V_TASKLIST = VTasklist.V_TASKLIST;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_timelength</code>.
|
||||
*/
|
||||
public static final VTimelength V_TIMELENGTH = VTimelength.V_TIMELENGTH;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_totalofday</code>.
|
||||
*/
|
||||
public static final VTotalofday V_TOTALOFDAY = VTotalofday.V_TOTALOFDAY;
|
||||
|
||||
/**
|
||||
* The table <code>done.v_worktime</code>.
|
||||
*/
|
||||
public static final VWorktime V_WORKTIME = VWorktime.V_WORKTIME;
|
||||
}
|
||||
252
src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java
Normal file
252
src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java
Normal file
@@ -0,0 +1,252 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TBillingRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TBilling extends TableImpl<TBillingRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_billing</code>
|
||||
*/
|
||||
public static final TBilling T_BILLING = new TBilling();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TBillingRecord> getRecordType() {
|
||||
return TBillingRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_billing.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TBillingRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_billing.pk</code>.
|
||||
*/
|
||||
public final TableField<TBillingRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_billing.name</code>.
|
||||
*/
|
||||
public final TableField<TBillingRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_billing.shortcut</code>.
|
||||
*/
|
||||
public final TableField<TBillingRecord, String> SHORTCUT = createField(DSL.name("shortcut"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_billing.csskey</code>.
|
||||
*/
|
||||
public final TableField<TBillingRecord, String> CSSKEY = createField(DSL.name("csskey"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TBilling(Name alias, Table<TBillingRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TBilling(Name alias, Table<TBillingRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_billing</code> table reference
|
||||
*/
|
||||
public TBilling(String alias) {
|
||||
this(DSL.name(alias), T_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_billing</code> table reference
|
||||
*/
|
||||
public TBilling(Name alias) {
|
||||
this(alias, T_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_billing</code> table reference
|
||||
*/
|
||||
public TBilling() {
|
||||
this(DSL.name("t_billing"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TBillingRecord, Integer> getIdentity() {
|
||||
return (Identity<TBillingRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TBillingRecord> getPrimaryKey() {
|
||||
return Keys.T_BILLING_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TBillingRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_BILLING_NAME_KEY, Keys.T_BILLING_SHORTCUT_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBilling as(String alias) {
|
||||
return new TBilling(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBilling as(Name alias) {
|
||||
return new TBilling(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBilling as(Table<?> alias) {
|
||||
return new TBilling(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling rename(String name) {
|
||||
return new TBilling(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling rename(Name name) {
|
||||
return new TBilling(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling rename(Table<?> name) {
|
||||
return new TBilling(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling where(Condition condition) {
|
||||
return new TBilling(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBilling where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBilling where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBilling where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBilling where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBilling whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
265
src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java
Normal file
265
src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java
Normal file
@@ -0,0 +1,265 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TDone extends TableImpl<TDoneRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_done</code>
|
||||
*/
|
||||
public static final TDone T_DONE = new TDone();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TDoneRecord> getRecordType() {
|
||||
return TDoneRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.pk</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.time_from</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, LocalDateTime> TIME_FROM = createField(DSL.name("time_from"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.time_until</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, LocalDateTime> TIME_UNTIL = createField(DSL.name("time_until"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.fk_project</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.fk_module</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> FK_MODULE = createField(DSL.name("fk_module"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.fk_job</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> FK_JOB = createField(DSL.name("fk_job"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_done.fk_billing</code>.
|
||||
*/
|
||||
public final TableField<TDoneRecord, Integer> FK_BILLING = createField(DSL.name("fk_billing"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private TDone(Name alias, Table<TDoneRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TDone(Name alias, Table<TDoneRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_done</code> table reference
|
||||
*/
|
||||
public TDone(String alias) {
|
||||
this(DSL.name(alias), T_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_done</code> table reference
|
||||
*/
|
||||
public TDone(Name alias) {
|
||||
this(alias, T_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_done</code> table reference
|
||||
*/
|
||||
public TDone() {
|
||||
this(DSL.name("t_done"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TDoneRecord, Integer> getIdentity() {
|
||||
return (Identity<TDoneRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TDoneRecord> getPrimaryKey() {
|
||||
return Keys.T_DONE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TDone as(String alias) {
|
||||
return new TDone(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TDone as(Name alias) {
|
||||
return new TDone(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TDone as(Table<?> alias) {
|
||||
return new TDone(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TDone rename(String name) {
|
||||
return new TDone(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TDone rename(Name name) {
|
||||
return new TDone(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TDone rename(Table<?> name) {
|
||||
return new TDone(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone where(Condition condition) {
|
||||
return new TDone(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TDone where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TDone where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TDone where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TDone where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TDone whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,255 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TFavoriteRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TFavorite extends TableImpl<TFavoriteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_favorite</code>
|
||||
*/
|
||||
public static final TFavorite T_FAVORITE = new TFavorite();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TFavoriteRecord> getRecordType() {
|
||||
return TFavoriteRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> PK_FAVORITE = createField(DSL.name("pk_favorite"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.fk_project</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.fk_module</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> FK_MODULE = createField(DSL.name("fk_module"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.fk_job</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> FK_JOB = createField(DSL.name("fk_job"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_favorite.fk_billing</code>.
|
||||
*/
|
||||
public final TableField<TFavoriteRecord, Integer> FK_BILLING = createField(DSL.name("fk_billing"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private TFavorite(Name alias, Table<TFavoriteRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TFavorite(Name alias, Table<TFavoriteRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_favorite</code> table reference
|
||||
*/
|
||||
public TFavorite(String alias) {
|
||||
this(DSL.name(alias), T_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_favorite</code> table reference
|
||||
*/
|
||||
public TFavorite(Name alias) {
|
||||
this(alias, T_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_favorite</code> table reference
|
||||
*/
|
||||
public TFavorite() {
|
||||
this(DSL.name("t_favorite"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TFavoriteRecord, Integer> getIdentity() {
|
||||
return (Identity<TFavoriteRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TFavoriteRecord> getPrimaryKey() {
|
||||
return Keys.T_FAVORITE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFavorite as(String alias) {
|
||||
return new TFavorite(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFavorite as(Name alias) {
|
||||
return new TFavorite(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFavorite as(Table<?> alias) {
|
||||
return new TFavorite(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite rename(String name) {
|
||||
return new TFavorite(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite rename(Name name) {
|
||||
return new TFavorite(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite rename(Table<?> name) {
|
||||
return new TFavorite(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite where(Condition condition) {
|
||||
return new TFavorite(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFavorite where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFavorite where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFavorite where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFavorite where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFavorite whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TFreetimeRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TFreetime extends TableImpl<TFreetimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_freetime</code>
|
||||
*/
|
||||
public static final TFreetime T_FREETIME = new TFreetime();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TFreetimeRecord> getRecordType() {
|
||||
return TFreetimeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_freetime.pk_freetime</code>.
|
||||
*/
|
||||
public final TableField<TFreetimeRecord, Integer> PK_FREETIME = createField(DSL.name("pk_freetime"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_freetime.day</code>.
|
||||
*/
|
||||
public final TableField<TFreetimeRecord, LocalDate> DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_freetime.required_worktime</code>.
|
||||
*/
|
||||
public final TableField<TFreetimeRecord, LocalTime> REQUIRED_WORKTIME = createField(DSL.name("required_worktime"), SQLDataType.LOCALTIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("'00:00:00'::time without time zone"), SQLDataType.LOCALTIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_freetime.reason</code>.
|
||||
*/
|
||||
public final TableField<TFreetimeRecord, String> REASON = createField(DSL.name("reason"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_freetime.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TFreetimeRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
private TFreetime(Name alias, Table<TFreetimeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TFreetime(Name alias, Table<TFreetimeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_freetime</code> table reference
|
||||
*/
|
||||
public TFreetime(String alias) {
|
||||
this(DSL.name(alias), T_FREETIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_freetime</code> table reference
|
||||
*/
|
||||
public TFreetime(Name alias) {
|
||||
this(alias, T_FREETIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_freetime</code> table reference
|
||||
*/
|
||||
public TFreetime() {
|
||||
this(DSL.name("t_freetime"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TFreetimeRecord, Integer> getIdentity() {
|
||||
return (Identity<TFreetimeRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TFreetimeRecord> getPrimaryKey() {
|
||||
return Keys.T_FREETIME_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TFreetimeRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_FREETIME_DAY_FK_LOGIN_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFreetime as(String alias) {
|
||||
return new TFreetime(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFreetime as(Name alias) {
|
||||
return new TFreetime(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFreetime as(Table<?> alias) {
|
||||
return new TFreetime(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime rename(String name) {
|
||||
return new TFreetime(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime rename(Name name) {
|
||||
return new TFreetime(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime rename(Table<?> name) {
|
||||
return new TFreetime(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime where(Condition condition) {
|
||||
return new TFreetime(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFreetime where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFreetime where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFreetime where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFreetime where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFreetime whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java
Normal file
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java
Normal file
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TJobRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TJob extends TableImpl<TJobRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_job</code>
|
||||
*/
|
||||
public static final TJob T_JOB = new TJob();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TJobRecord> getRecordType() {
|
||||
return TJobRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_job.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TJobRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_job.pk</code>.
|
||||
*/
|
||||
public final TableField<TJobRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_job.name</code>.
|
||||
*/
|
||||
public final TableField<TJobRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
private TJob(Name alias, Table<TJobRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TJob(Name alias, Table<TJobRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_job</code> table reference
|
||||
*/
|
||||
public TJob(String alias) {
|
||||
this(DSL.name(alias), T_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_job</code> table reference
|
||||
*/
|
||||
public TJob(Name alias) {
|
||||
this(alias, T_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_job</code> table reference
|
||||
*/
|
||||
public TJob() {
|
||||
this(DSL.name("t_job"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TJobRecord, Integer> getIdentity() {
|
||||
return (Identity<TJobRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TJobRecord> getPrimaryKey() {
|
||||
return Keys.T_CATEGORY_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TJobRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_CATEGORY_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TJob as(String alias) {
|
||||
return new TJob(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TJob as(Name alias) {
|
||||
return new TJob(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TJob as(Table<?> alias) {
|
||||
return new TJob(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TJob rename(String name) {
|
||||
return new TJob(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TJob rename(Name name) {
|
||||
return new TJob(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TJob rename(Table<?> name) {
|
||||
return new TJob(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob where(Condition condition) {
|
||||
return new TJob(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TJob where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TJob where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TJob where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TJob where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TJob whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java
Normal file
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java
Normal file
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TModule extends TableImpl<TModuleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_module</code>
|
||||
*/
|
||||
public static final TModule T_MODULE = new TModule();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TModuleRecord> getRecordType() {
|
||||
return TModuleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_module.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TModuleRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_module.pk</code>.
|
||||
*/
|
||||
public final TableField<TModuleRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_module.name</code>.
|
||||
*/
|
||||
public final TableField<TModuleRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
private TModule(Name alias, Table<TModuleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TModule(Name alias, Table<TModuleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_module</code> table reference
|
||||
*/
|
||||
public TModule(String alias) {
|
||||
this(DSL.name(alias), T_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_module</code> table reference
|
||||
*/
|
||||
public TModule(Name alias) {
|
||||
this(alias, T_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_module</code> table reference
|
||||
*/
|
||||
public TModule() {
|
||||
this(DSL.name("t_module"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TModuleRecord, Integer> getIdentity() {
|
||||
return (Identity<TModuleRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TModuleRecord> getPrimaryKey() {
|
||||
return Keys.T_JOB_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TModuleRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_JOB_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TModule as(String alias) {
|
||||
return new TModule(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TModule as(Name alias) {
|
||||
return new TModule(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TModule as(Table<?> alias) {
|
||||
return new TModule(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TModule rename(String name) {
|
||||
return new TModule(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TModule rename(Name name) {
|
||||
return new TModule(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TModule rename(Table<?> name) {
|
||||
return new TModule(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule where(Condition condition) {
|
||||
return new TModule(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TModule where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TModule where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TModule where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TModule where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TModule whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TOvertimeRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TOvertime extends TableImpl<TOvertimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_overtime</code>
|
||||
*/
|
||||
public static final TOvertime T_OVERTIME = new TOvertime();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TOvertimeRecord> getRecordType() {
|
||||
return TOvertimeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_overtime.pk_overtime</code>.
|
||||
*/
|
||||
public final TableField<TOvertimeRecord, Integer> PK_OVERTIME = createField(DSL.name("pk_overtime"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_overtime.impact</code>.
|
||||
*/
|
||||
public final TableField<TOvertimeRecord, LocalDateTime> IMPACT = createField(DSL.name("impact"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_overtime.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TOvertimeRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_overtime.overtime_minutes</code>.
|
||||
*/
|
||||
public final TableField<TOvertimeRecord, Integer> OVERTIME_MINUTES = createField(DSL.name("overtime_minutes"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "");
|
||||
|
||||
private TOvertime(Name alias, Table<TOvertimeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TOvertime(Name alias, Table<TOvertimeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_overtime</code> table reference
|
||||
*/
|
||||
public TOvertime(String alias) {
|
||||
this(DSL.name(alias), T_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_overtime</code> table reference
|
||||
*/
|
||||
public TOvertime(Name alias) {
|
||||
this(alias, T_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_overtime</code> table reference
|
||||
*/
|
||||
public TOvertime() {
|
||||
this(DSL.name("t_overtime"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TOvertimeRecord, Integer> getIdentity() {
|
||||
return (Identity<TOvertimeRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TOvertimeRecord> getPrimaryKey() {
|
||||
return Keys.T_OVERTIME_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TOvertimeRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_OVERTIME_FK_LOGIN_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TOvertime as(String alias) {
|
||||
return new TOvertime(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TOvertime as(Name alias) {
|
||||
return new TOvertime(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TOvertime as(Table<?> alias) {
|
||||
return new TOvertime(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime rename(String name) {
|
||||
return new TOvertime(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime rename(Name name) {
|
||||
return new TOvertime(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime rename(Table<?> name) {
|
||||
return new TOvertime(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime where(Condition condition) {
|
||||
return new TOvertime(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TOvertime where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TOvertime where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TOvertime where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TOvertime where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TOvertime whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java
Normal file
242
src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java
Normal file
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TProject extends TableImpl<TProjectRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_project</code>
|
||||
*/
|
||||
public static final TProject T_PROJECT = new TProject();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TProjectRecord> getRecordType() {
|
||||
return TProjectRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_project.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_project.pk</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_project.name</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
private TProject(Name alias, Table<TProjectRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TProject(Name alias, Table<TProjectRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_project</code> table reference
|
||||
*/
|
||||
public TProject(String alias) {
|
||||
this(DSL.name(alias), T_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_project</code> table reference
|
||||
*/
|
||||
public TProject(Name alias) {
|
||||
this(alias, T_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_project</code> table reference
|
||||
*/
|
||||
public TProject() {
|
||||
this(DSL.name("t_project"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TProjectRecord, Integer> getIdentity() {
|
||||
return (Identity<TProjectRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TProjectRecord> getPrimaryKey() {
|
||||
return Keys.T_PROJECT_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TProjectRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_PROJECT_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(String alias) {
|
||||
return new TProject(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(Name alias) {
|
||||
return new TProject(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(Table<?> alias) {
|
||||
return new TProject(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(String name) {
|
||||
return new TProject(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(Name name) {
|
||||
return new TProject(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(Table<?> name) {
|
||||
return new TProject(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Condition condition) {
|
||||
return new TProject(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.Keys;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.TRequiredWorktimeRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TRequiredWorktime extends TableImpl<TRequiredWorktimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.t_required_worktime</code>
|
||||
*/
|
||||
public static final TRequiredWorktime T_REQUIRED_WORKTIME = new TRequiredWorktime();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TRequiredWorktimeRecord> getRecordType() {
|
||||
return TRequiredWorktimeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.t_required_worktime.pk_required_worktime</code>.
|
||||
*/
|
||||
public final TableField<TRequiredWorktimeRecord, Integer> PK_REQUIRED_WORKTIME = createField(DSL.name("pk_required_worktime"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_required_worktime.day</code>.
|
||||
*/
|
||||
public final TableField<TRequiredWorktimeRecord, LocalDate> DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_required_worktime.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TRequiredWorktimeRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_required_worktime.required_minutes</code>.
|
||||
*/
|
||||
public final TableField<TRequiredWorktimeRecord, Integer> REQUIRED_MINUTES = createField(DSL.name("required_minutes"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("480"), SQLDataType.INTEGER)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.t_required_worktime.reason</code>.
|
||||
*/
|
||||
public final TableField<TRequiredWorktimeRecord, String> REASON = createField(DSL.name("reason"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TRequiredWorktime(Name alias, Table<TRequiredWorktimeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TRequiredWorktime(Name alias, Table<TRequiredWorktimeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_required_worktime</code> table reference
|
||||
*/
|
||||
public TRequiredWorktime(String alias) {
|
||||
this(DSL.name(alias), T_REQUIRED_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.t_required_worktime</code> table reference
|
||||
*/
|
||||
public TRequiredWorktime(Name alias) {
|
||||
this(alias, T_REQUIRED_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.t_required_worktime</code> table reference
|
||||
*/
|
||||
public TRequiredWorktime() {
|
||||
this(DSL.name("t_required_worktime"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TRequiredWorktimeRecord, Integer> getIdentity() {
|
||||
return (Identity<TRequiredWorktimeRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TRequiredWorktimeRecord> getPrimaryKey() {
|
||||
return Keys.T_REQUIRED_WORKTIME_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TRequiredWorktimeRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_REQUIRED_WORKTIME_DAY_FK_LOGIN_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRequiredWorktime as(String alias) {
|
||||
return new TRequiredWorktime(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRequiredWorktime as(Name alias) {
|
||||
return new TRequiredWorktime(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRequiredWorktime as(Table<?> alias) {
|
||||
return new TRequiredWorktime(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime rename(String name) {
|
||||
return new TRequiredWorktime(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime rename(Name name) {
|
||||
return new TRequiredWorktime(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime rename(Table<?> name) {
|
||||
return new TRequiredWorktime(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime where(Condition condition) {
|
||||
return new TRequiredWorktime(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRequiredWorktime where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRequiredWorktime where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRequiredWorktime where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRequiredWorktime where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRequiredWorktime whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
247
src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java
Normal file
247
src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java
Normal file
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VBillingRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VBilling extends TableImpl<VBillingRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_billing</code>
|
||||
*/
|
||||
public static final VBilling V_BILLING = new VBilling();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VBillingRecord> getRecordType() {
|
||||
return VBillingRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_billing.pk</code>.
|
||||
*/
|
||||
public final TableField<VBillingRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_billing.name</code>.
|
||||
*/
|
||||
public final TableField<VBillingRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_billing.shortcut</code>.
|
||||
*/
|
||||
public final TableField<VBillingRecord, String> SHORTCUT = createField(DSL.name("shortcut"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_billing.csskey</code>.
|
||||
*/
|
||||
public final TableField<VBillingRecord, String> CSSKEY = createField(DSL.name("csskey"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_billing.percent_usage</code>.
|
||||
*/
|
||||
public final TableField<VBillingRecord, BigDecimal> PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private VBilling(Name alias, Table<VBillingRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VBilling(Name alias, Table<VBillingRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_billing" as WITH x(total) AS (
|
||||
SELECT COALESCE(NULLIF(count(1), 0), (1)::bigint) AS count
|
||||
FROM done.t_done
|
||||
)
|
||||
SELECT b.pk,
|
||||
b.name,
|
||||
b.shortcut,
|
||||
b.csskey,
|
||||
round(((((count(db.*))::double precision / (x.total)::double precision) * (100)::double precision))::numeric, 2) AS percent_usage
|
||||
FROM ((x
|
||||
LEFT JOIN done.t_billing b ON (true))
|
||||
LEFT JOIN done.t_done db ON ((db.fk_project = b.pk)))
|
||||
GROUP BY b.pk, b.name, b.shortcut, b.csskey, x.total
|
||||
ORDER BY b.pk;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_billing</code> table reference
|
||||
*/
|
||||
public VBilling(String alias) {
|
||||
this(DSL.name(alias), V_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_billing</code> table reference
|
||||
*/
|
||||
public VBilling(Name alias) {
|
||||
this(alias, V_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_billing</code> table reference
|
||||
*/
|
||||
public VBilling() {
|
||||
this(DSL.name("v_billing"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBilling as(String alias) {
|
||||
return new VBilling(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBilling as(Name alias) {
|
||||
return new VBilling(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBilling as(Table<?> alias) {
|
||||
return new VBilling(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling rename(String name) {
|
||||
return new VBilling(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling rename(Name name) {
|
||||
return new VBilling(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling rename(Table<?> name) {
|
||||
return new VBilling(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling where(Condition condition) {
|
||||
return new VBilling(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBilling where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBilling where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBilling where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBilling where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBilling whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VCurrentOvertimeRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VCurrentOvertime extends TableImpl<VCurrentOvertimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_current_overtime</code>
|
||||
*/
|
||||
public static final VCurrentOvertime V_CURRENT_OVERTIME = new VCurrentOvertime();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VCurrentOvertimeRecord> getRecordType() {
|
||||
return VCurrentOvertimeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_current_overtime.overtime</code>.
|
||||
*/
|
||||
public final TableField<VCurrentOvertimeRecord, BigDecimal> OVERTIME = createField(DSL.name("overtime"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_current_overtime.impact</code>.
|
||||
*/
|
||||
public final TableField<VCurrentOvertimeRecord, String> IMPACT = createField(DSL.name("impact"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_current_overtime.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VCurrentOvertimeRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VCurrentOvertime(Name alias, Table<VCurrentOvertimeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VCurrentOvertime(Name alias, Table<VCurrentOvertimeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_current_overtime" as SELECT ((x.overtime_minutes)::numeric + sum((EXTRACT(minute FROM l.dayworktime) - (r.required_minutes)::numeric))) AS overtime,
|
||||
to_char(now(), 'DD.MM.YYYY HH24:MI'::text) AS impact,
|
||||
x.fk_login
|
||||
FROM ((done.t_overtime x
|
||||
LEFT JOIN done.v_daylimit l ON (((l.fk_login = x.fk_login) AND (l.day >= x.impact))))
|
||||
LEFT JOIN done.t_required_worktime r ON (((r.fk_login = x.fk_login) AND (r.day = l.day))))
|
||||
WHERE (l.day < now())
|
||||
GROUP BY x.overtime_minutes, x.fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_current_overtime</code> table reference
|
||||
*/
|
||||
public VCurrentOvertime(String alias) {
|
||||
this(DSL.name(alias), V_CURRENT_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_current_overtime</code> table reference
|
||||
*/
|
||||
public VCurrentOvertime(Name alias) {
|
||||
this(alias, V_CURRENT_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_current_overtime</code> table reference
|
||||
*/
|
||||
public VCurrentOvertime() {
|
||||
this(DSL.name("v_current_overtime"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VCurrentOvertime as(String alias) {
|
||||
return new VCurrentOvertime(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VCurrentOvertime as(Name alias) {
|
||||
return new VCurrentOvertime(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VCurrentOvertime as(Table<?> alias) {
|
||||
return new VCurrentOvertime(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime rename(String name) {
|
||||
return new VCurrentOvertime(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime rename(Name name) {
|
||||
return new VCurrentOvertime(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime rename(Table<?> name) {
|
||||
return new VCurrentOvertime(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime where(Condition condition) {
|
||||
return new VCurrentOvertime(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VCurrentOvertime where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VCurrentOvertime where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VCurrentOvertime where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VCurrentOvertime where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VCurrentOvertime whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
234
src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java
Normal file
234
src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java
Normal file
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDailyRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaily extends TableImpl<VDailyRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_daily</code>
|
||||
*/
|
||||
public static final VDaily V_DAILY = new VDaily();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDailyRecord> getRecordType() {
|
||||
return VDailyRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daily.worktime</code>.
|
||||
*/
|
||||
public final TableField<VDailyRecord, YearToSecond> WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daily.day</code>.
|
||||
*/
|
||||
public final TableField<VDailyRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daily.login</code>.
|
||||
*/
|
||||
public final TableField<VDailyRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daily.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDailyRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDaily(Name alias, Table<VDailyRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDaily(Name alias, Table<VDailyRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_daily" as SELECT sum(duration) AS worktime,
|
||||
day,
|
||||
login,
|
||||
fk_login
|
||||
FROM done.v_duration
|
||||
GROUP BY day, login, fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daily</code> table reference
|
||||
*/
|
||||
public VDaily(String alias) {
|
||||
this(DSL.name(alias), V_DAILY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daily</code> table reference
|
||||
*/
|
||||
public VDaily(Name alias) {
|
||||
this(alias, V_DAILY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_daily</code> table reference
|
||||
*/
|
||||
public VDaily() {
|
||||
this(DSL.name("v_daily"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaily as(String alias) {
|
||||
return new VDaily(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaily as(Name alias) {
|
||||
return new VDaily(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaily as(Table<?> alias) {
|
||||
return new VDaily(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily rename(String name) {
|
||||
return new VDaily(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily rename(Name name) {
|
||||
return new VDaily(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily rename(Table<?> name) {
|
||||
return new VDaily(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily where(Condition condition) {
|
||||
return new VDaily(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaily where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaily where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaily where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaily where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaily whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
265
src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java
Normal file
265
src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java
Normal file
@@ -0,0 +1,265 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDayRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDay extends TableImpl<VDayRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_day</code>
|
||||
*/
|
||||
public static final VDay V_DAY = new VDay();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDayRecord> getRecordType() {
|
||||
return VDayRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.day</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, LocalDate> DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.starttime</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, LocalTime> STARTTIME = createField(DSL.name("starttime"), SQLDataType.LOCALTIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.endtime</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, LocalTime> ENDTIME = createField(DSL.name("endtime"), SQLDataType.LOCALTIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.worktime</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, YearToSecond> WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.breaktime</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, YearToSecond> BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.day_overtime</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, YearToSecond> DAY_OVERTIME = createField(DSL.name("day_overtime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_day.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDayRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDay(Name alias, Table<VDayRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDay(Name alias, Table<VDayRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_day" as WITH x(dayworktime, day, fk_login, required, starttime, endtime) AS (
|
||||
SELECT sum((d.dayworktime)::interval) AS sum,
|
||||
d.day,
|
||||
d.fk_login,
|
||||
make_interval(mins => r.required_minutes) AS make_interval,
|
||||
min(d.daytime_from) AS min,
|
||||
max(d.daytime_until) AS max
|
||||
FROM (done.v_daylimit d
|
||||
LEFT JOIN done.t_required_worktime r ON (((r.day = d.day) AND (r.fk_login = d.fk_login))))
|
||||
GROUP BY d.day, d.fk_login, r.required_minutes
|
||||
)
|
||||
SELECT day,
|
||||
starttime,
|
||||
endtime,
|
||||
dayworktime AS worktime,
|
||||
((endtime - starttime) - dayworktime) AS breaktime,
|
||||
(dayworktime - required) AS day_overtime,
|
||||
fk_login
|
||||
FROM x
|
||||
ORDER BY day DESC, fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_day</code> table reference
|
||||
*/
|
||||
public VDay(String alias) {
|
||||
this(DSL.name(alias), V_DAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_day</code> table reference
|
||||
*/
|
||||
public VDay(Name alias) {
|
||||
this(alias, V_DAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_day</code> table reference
|
||||
*/
|
||||
public VDay() {
|
||||
this(DSL.name("v_day"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDay as(String alias) {
|
||||
return new VDay(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDay as(Name alias) {
|
||||
return new VDay(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDay as(Table<?> alias) {
|
||||
return new VDay(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDay rename(String name) {
|
||||
return new VDay(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDay rename(Name name) {
|
||||
return new VDay(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDay rename(Table<?> name) {
|
||||
return new VDay(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay where(Condition condition) {
|
||||
return new VDay(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDay where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDay where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDay where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDay where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDay whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDaylimitRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaylimit extends TableImpl<VDaylimitRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_daylimit</code>
|
||||
*/
|
||||
public static final VDaylimit V_DAYLIMIT = new VDaylimit();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDaylimitRecord> getRecordType() {
|
||||
return VDaylimitRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.daytime_from</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, LocalTime> DAYTIME_FROM = createField(DSL.name("daytime_from"), SQLDataType.LOCALTIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.daytime_until</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, LocalTime> DAYTIME_UNTIL = createField(DSL.name("daytime_until"), SQLDataType.LOCALTIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.dayworktime</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, LocalTime> DAYWORKTIME = createField(DSL.name("dayworktime"), SQLDataType.LOCALTIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.breaks</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, YearToSecond> BREAKS = createField(DSL.name("breaks"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.day</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, LocalDate> DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimit.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDaylimit(Name alias, Table<VDaylimitRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDaylimit(Name alias, Table<VDaylimitRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_daylimit" as WITH x(dayworktime, day, fk_login) AS (
|
||||
SELECT COALESCE((t_done.time_until - t_done.time_from), '00:00:00'::interval) AS "coalesce",
|
||||
t_done.time_from,
|
||||
t_done.fk_login
|
||||
FROM done.t_done
|
||||
), y(daytime_from, daytime_until, day, fk_login) AS (
|
||||
SELECT min(t_done.time_from) AS min,
|
||||
max(t_done.time_until) AS max,
|
||||
t_done.time_from,
|
||||
t_done.fk_login
|
||||
FROM done.t_done
|
||||
GROUP BY t_done.time_from, t_done.fk_login
|
||||
)
|
||||
SELECT (y.daytime_from)::time without time zone AS daytime_from,
|
||||
(y.daytime_until)::time without time zone AS daytime_until,
|
||||
(sum(x.dayworktime))::time without time zone AS dayworktime,
|
||||
((y.daytime_until - y.daytime_from) - sum(x.dayworktime)) AS breaks,
|
||||
(y.day)::date AS day,
|
||||
y.fk_login
|
||||
FROM (x
|
||||
LEFT JOIN y ON (((y.day = x.day) AND (y.fk_login = x.fk_login))))
|
||||
GROUP BY y.daytime_from, y.daytime_until, y.day, y.fk_login
|
||||
ORDER BY y.day DESC;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daylimit</code> table reference
|
||||
*/
|
||||
public VDaylimit(String alias) {
|
||||
this(DSL.name(alias), V_DAYLIMIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daylimit</code> table reference
|
||||
*/
|
||||
public VDaylimit(Name alias) {
|
||||
this(alias, V_DAYLIMIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_daylimit</code> table reference
|
||||
*/
|
||||
public VDaylimit() {
|
||||
this(DSL.name("v_daylimit"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimit as(String alias) {
|
||||
return new VDaylimit(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimit as(Name alias) {
|
||||
return new VDaylimit(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimit as(Table<?> alias) {
|
||||
return new VDaylimit(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit rename(String name) {
|
||||
return new VDaylimit(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit rename(Name name) {
|
||||
return new VDaylimit(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit rename(Table<?> name) {
|
||||
return new VDaylimit(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit where(Condition condition) {
|
||||
return new VDaylimit(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimit where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimit where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimit where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimit where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimit whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDaylimitsRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VDaylimits extends TableImpl<VDaylimitsRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_daylimits</code>
|
||||
*/
|
||||
public static final VDaylimits V_DAYLIMITS = new VDaylimits();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDaylimitsRecord> getRecordType() {
|
||||
return VDaylimitsRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimits.work_start</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitsRecord, LocalDateTime> WORK_START = createField(DSL.name("work_start"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimits.work_end</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitsRecord, OffsetDateTime> WORK_END = createField(DSL.name("work_end"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimits.day</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitsRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daylimits.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDaylimitsRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDaylimits(Name alias, Table<VDaylimitsRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDaylimits(Name alias, Table<VDaylimitsRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_daylimits" as WITH x(time_from, time_until, day, fk_login) AS (
|
||||
SELECT t_done.time_from,
|
||||
COALESCE((t_done.time_until)::timestamp with time zone, now()) AS "coalesce",
|
||||
to_char(t_done.time_from, 'yyyy-MM-dd'::text) AS day,
|
||||
t_done.fk_login
|
||||
FROM done.t_done
|
||||
)
|
||||
SELECT min(time_from) AS work_start,
|
||||
max(time_until) AS work_end,
|
||||
day,
|
||||
fk_login
|
||||
FROM x
|
||||
GROUP BY day, fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daylimits</code> table reference
|
||||
*/
|
||||
public VDaylimits(String alias) {
|
||||
this(DSL.name(alias), V_DAYLIMITS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daylimits</code> table reference
|
||||
*/
|
||||
public VDaylimits(Name alias) {
|
||||
this(alias, V_DAYLIMITS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_daylimits</code> table reference
|
||||
*/
|
||||
public VDaylimits() {
|
||||
this(DSL.name("v_daylimits"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimits as(String alias) {
|
||||
return new VDaylimits(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimits as(Name alias) {
|
||||
return new VDaylimits(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaylimits as(Table<?> alias) {
|
||||
return new VDaylimits(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits rename(String name) {
|
||||
return new VDaylimits(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits rename(Name name) {
|
||||
return new VDaylimits(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits rename(Table<?> name) {
|
||||
return new VDaylimits(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits where(Condition condition) {
|
||||
return new VDaylimits(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimits where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimits where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimits where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaylimits where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaylimits whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDaysummaryRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaysummary extends TableImpl<VDaysummaryRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_daysummary</code>
|
||||
*/
|
||||
public static final VDaysummary V_DAYSUMMARY = new VDaysummary();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDaysummaryRecord> getRecordType() {
|
||||
return VDaysummaryRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.breaktime</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, YearToSecond> BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.worktime</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, YearToSecond> WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.work_start</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, LocalDateTime> WORK_START = createField(DSL.name("work_start"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.work_end</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, OffsetDateTime> WORK_END = createField(DSL.name("work_end"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.day</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.login</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_daysummary.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDaysummaryRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDaysummary(Name alias, Table<VDaysummaryRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDaysummary(Name alias, Table<VDaysummaryRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_daysummary" as SELECT ((v_daylimits.work_end - (v_daylimits.work_start)::timestamp with time zone) - v_daily.worktime) AS breaktime,
|
||||
v_daily.worktime,
|
||||
v_daylimits.work_start,
|
||||
v_daylimits.work_end,
|
||||
v_daily.day,
|
||||
v_daily.login,
|
||||
v_daily.fk_login
|
||||
FROM (done.v_daily
|
||||
LEFT JOIN done.v_daylimits ON ((v_daylimits.day = v_daily.day)));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daysummary</code> table reference
|
||||
*/
|
||||
public VDaysummary(String alias) {
|
||||
this(DSL.name(alias), V_DAYSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_daysummary</code> table reference
|
||||
*/
|
||||
public VDaysummary(Name alias) {
|
||||
this(alias, V_DAYSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_daysummary</code> table reference
|
||||
*/
|
||||
public VDaysummary() {
|
||||
this(DSL.name("v_daysummary"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaysummary as(String alias) {
|
||||
return new VDaysummary(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaysummary as(Name alias) {
|
||||
return new VDaysummary(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDaysummary as(Table<?> alias) {
|
||||
return new VDaysummary(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary rename(String name) {
|
||||
return new VDaysummary(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary rename(Name name) {
|
||||
return new VDaysummary(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary rename(Table<?> name) {
|
||||
return new VDaysummary(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary where(Condition condition) {
|
||||
return new VDaysummary(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaysummary where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaysummary where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaysummary where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDaysummary where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDaysummary whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
261
src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java
Normal file
261
src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java
Normal file
@@ -0,0 +1,261 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDoneRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VDone extends TableImpl<VDoneRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_done</code>
|
||||
*/
|
||||
public static final VDone V_DONE = new VDone();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDoneRecord> getRecordType() {
|
||||
return VDoneRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.fk_done</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, Integer> FK_DONE = createField(DSL.name("fk_done"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.time_from</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, LocalDateTime> TIME_FROM = createField(DSL.name("time_from"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.time_until</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, LocalDateTime> TIME_UNTIL = createField(DSL.name("time_until"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.project_name</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.module_name</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, String> MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.job_name</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, String> JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_done.login</code>.
|
||||
*/
|
||||
public final TableField<VDoneRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private VDone(Name alias, Table<VDoneRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDone(Name alias, Table<VDoneRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_done" as SELECT d.pk AS fk_done,
|
||||
l.pk AS fk_login,
|
||||
d.time_from,
|
||||
d.time_until,
|
||||
p.name AS project_name,
|
||||
m.name AS module_name,
|
||||
j.name AS job_name,
|
||||
l.login
|
||||
FROM ((((done.t_done d
|
||||
LEFT JOIN done.t_project p ON ((p.pk = d.fk_project)))
|
||||
LEFT JOIN done.t_module m ON ((m.pk = d.fk_module)))
|
||||
LEFT JOIN done.t_job j ON ((j.pk = d.fk_job)))
|
||||
LEFT JOIN profile.t_login l ON ((l.pk = d.fk_login)));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_done</code> table reference
|
||||
*/
|
||||
public VDone(String alias) {
|
||||
this(DSL.name(alias), V_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_done</code> table reference
|
||||
*/
|
||||
public VDone(Name alias) {
|
||||
this(alias, V_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_done</code> table reference
|
||||
*/
|
||||
public VDone() {
|
||||
this(DSL.name("v_done"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDone as(String alias) {
|
||||
return new VDone(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDone as(Name alias) {
|
||||
return new VDone(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDone as(Table<?> alias) {
|
||||
return new VDone(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDone rename(String name) {
|
||||
return new VDone(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDone rename(Name name) {
|
||||
return new VDone(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDone rename(Table<?> name) {
|
||||
return new VDone(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone where(Condition condition) {
|
||||
return new VDone(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDone where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDone where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDone where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDone where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDone whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VDurationRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDuration extends TableImpl<VDurationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_duration</code>
|
||||
*/
|
||||
public static final VDuration V_DURATION = new VDuration();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VDurationRecord> getRecordType() {
|
||||
return VDurationRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.day</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.duration</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, YearToSecond> DURATION = createField(DSL.name("duration"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.project_name</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.module_name</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, String> MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.job_name</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, String> JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.login</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_duration.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VDurationRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VDuration(Name alias, Table<VDurationRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VDuration(Name alias, Table<VDurationRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_duration" as SELECT to_char(COALESCE((time_until)::timestamp with time zone, now()), 'yyyy-MM-dd'::text) AS day,
|
||||
(COALESCE((time_until)::timestamp with time zone, now()) - COALESCE((time_from)::timestamp with time zone, now())) AS duration,
|
||||
project_name,
|
||||
module_name,
|
||||
job_name,
|
||||
login,
|
||||
fk_login
|
||||
FROM done.v_done;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_duration</code> table reference
|
||||
*/
|
||||
public VDuration(String alias) {
|
||||
this(DSL.name(alias), V_DURATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_duration</code> table reference
|
||||
*/
|
||||
public VDuration(Name alias) {
|
||||
this(alias, V_DURATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_duration</code> table reference
|
||||
*/
|
||||
public VDuration() {
|
||||
this(DSL.name("v_duration"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDuration as(String alias) {
|
||||
return new VDuration(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDuration as(Name alias) {
|
||||
return new VDuration(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VDuration as(Table<?> alias) {
|
||||
return new VDuration(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration rename(String name) {
|
||||
return new VDuration(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration rename(Name name) {
|
||||
return new VDuration(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration rename(Table<?> name) {
|
||||
return new VDuration(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration where(Condition condition) {
|
||||
return new VDuration(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDuration where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDuration where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDuration where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VDuration where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VDuration whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VFavoriteRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VFavorite extends TableImpl<VFavoriteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_favorite</code>
|
||||
*/
|
||||
public static final VFavorite V_FAVORITE = new VFavorite();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VFavoriteRecord> getRecordType() {
|
||||
return VFavoriteRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, Integer> PK_FAVORITE = createField(DSL.name("pk_favorite"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.project</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, String> PROJECT = createField(DSL.name("project"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.module</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, String> MODULE = createField(DSL.name("module"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.job</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, String> JOB = createField(DSL.name("job"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_favorite.billing</code>.
|
||||
*/
|
||||
public final TableField<VFavoriteRecord, String> BILLING = createField(DSL.name("billing"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private VFavorite(Name alias, Table<VFavoriteRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VFavorite(Name alias, Table<VFavoriteRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_favorite" as SELECT f.pk_favorite,
|
||||
f.fk_login,
|
||||
p.name AS project,
|
||||
m.name AS module,
|
||||
j.name AS job,
|
||||
b.name AS billing
|
||||
FROM ((((done.t_favorite f
|
||||
LEFT JOIN done.t_project p ON ((p.pk = f.fk_project)))
|
||||
LEFT JOIN done.t_module m ON ((m.pk = f.fk_module)))
|
||||
LEFT JOIN done.t_job j ON ((j.pk = f.fk_job)))
|
||||
LEFT JOIN done.t_billing b ON ((b.pk = f.fk_billing)));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_favorite</code> table reference
|
||||
*/
|
||||
public VFavorite(String alias) {
|
||||
this(DSL.name(alias), V_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_favorite</code> table reference
|
||||
*/
|
||||
public VFavorite(Name alias) {
|
||||
this(alias, V_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_favorite</code> table reference
|
||||
*/
|
||||
public VFavorite() {
|
||||
this(DSL.name("v_favorite"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VFavorite as(String alias) {
|
||||
return new VFavorite(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VFavorite as(Name alias) {
|
||||
return new VFavorite(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VFavorite as(Table<?> alias) {
|
||||
return new VFavorite(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite rename(String name) {
|
||||
return new VFavorite(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite rename(Name name) {
|
||||
return new VFavorite(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite rename(Table<?> name) {
|
||||
return new VFavorite(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite where(Condition condition) {
|
||||
return new VFavorite(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VFavorite where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VFavorite where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VFavorite where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VFavorite where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VFavorite whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VHamstersummaryRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VHamstersummary extends TableImpl<VHamstersummaryRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_hamstersummary</code>
|
||||
*/
|
||||
public static final VHamstersummary V_HAMSTERSUMMARY = new VHamstersummary();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VHamstersummaryRecord> getRecordType() {
|
||||
return VHamstersummaryRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.workday</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, LocalDate> WORKDAY = createField(DSL.name("workday"), SQLDataType.LOCALDATE, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.duration</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, String> DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.project_name</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.module_name</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, String> MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.job_name</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, String> JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_hamstersummary.login</code>.
|
||||
*/
|
||||
public final TableField<VHamstersummaryRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private VHamstersummary(Name alias, Table<VHamstersummaryRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VHamstersummary(Name alias, Table<VHamstersummaryRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_hamstersummary" as SELECT workday,
|
||||
to_char(sum(duration), 'HH24:MI'::text) AS duration,
|
||||
project_name,
|
||||
module_name,
|
||||
job_name,
|
||||
login
|
||||
FROM done.v_hamster
|
||||
GROUP BY workday, project_name, module_name, job_name, login
|
||||
ORDER BY login, workday, project_name, module_name, job_name;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_hamstersummary</code> table reference
|
||||
*/
|
||||
public VHamstersummary(String alias) {
|
||||
this(DSL.name(alias), V_HAMSTERSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_hamstersummary</code> table reference
|
||||
*/
|
||||
public VHamstersummary(Name alias) {
|
||||
this(alias, V_HAMSTERSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_hamstersummary</code> table reference
|
||||
*/
|
||||
public VHamstersummary() {
|
||||
this(DSL.name("v_hamstersummary"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VHamstersummary as(String alias) {
|
||||
return new VHamstersummary(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VHamstersummary as(Name alias) {
|
||||
return new VHamstersummary(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VHamstersummary as(Table<?> alias) {
|
||||
return new VHamstersummary(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary rename(String name) {
|
||||
return new VHamstersummary(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary rename(Name name) {
|
||||
return new VHamstersummary(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary rename(Table<?> name) {
|
||||
return new VHamstersummary(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary where(Condition condition) {
|
||||
return new VHamstersummary(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VHamstersummary where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VHamstersummary where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VHamstersummary where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VHamstersummary where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VHamstersummary whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java
Normal file
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VJobRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VJob extends TableImpl<VJobRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_job</code>
|
||||
*/
|
||||
public static final VJob V_JOB = new VJob();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VJobRecord> getRecordType() {
|
||||
return VJobRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_job.pk</code>.
|
||||
*/
|
||||
public final TableField<VJobRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_job.name</code>.
|
||||
*/
|
||||
public final TableField<VJobRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_job.percent_usage</code>.
|
||||
*/
|
||||
public final TableField<VJobRecord, BigDecimal> PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private VJob(Name alias, Table<VJobRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VJob(Name alias, Table<VJobRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_job" as WITH x(total) AS (
|
||||
SELECT COALESCE(NULLIF(count(1), 0), (1)::bigint) AS count
|
||||
FROM done.t_done
|
||||
)
|
||||
SELECT j.pk,
|
||||
j.name,
|
||||
round(((((count(dj.*))::double precision / (x.total)::double precision) * (100)::double precision))::numeric, 2) AS percent_usage
|
||||
FROM ((x
|
||||
LEFT JOIN done.t_job j ON (true))
|
||||
LEFT JOIN done.t_done dj ON ((dj.fk_project = j.pk)))
|
||||
GROUP BY j.pk, j.name, x.total
|
||||
ORDER BY j.pk;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_job</code> table reference
|
||||
*/
|
||||
public VJob(String alias) {
|
||||
this(DSL.name(alias), V_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_job</code> table reference
|
||||
*/
|
||||
public VJob(Name alias) {
|
||||
this(alias, V_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_job</code> table reference
|
||||
*/
|
||||
public VJob() {
|
||||
this(DSL.name("v_job"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VJob as(String alias) {
|
||||
return new VJob(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VJob as(Name alias) {
|
||||
return new VJob(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VJob as(Table<?> alias) {
|
||||
return new VJob(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VJob rename(String name) {
|
||||
return new VJob(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VJob rename(Name name) {
|
||||
return new VJob(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VJob rename(Table<?> name) {
|
||||
return new VJob(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob where(Condition condition) {
|
||||
return new VJob(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VJob where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VJob where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VJob where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VJob where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VJob whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java
Normal file
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VModuleRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VModule extends TableImpl<VModuleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_module</code>
|
||||
*/
|
||||
public static final VModule V_MODULE = new VModule();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VModuleRecord> getRecordType() {
|
||||
return VModuleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_module.pk</code>.
|
||||
*/
|
||||
public final TableField<VModuleRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_module.name</code>.
|
||||
*/
|
||||
public final TableField<VModuleRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_module.percent_usage</code>.
|
||||
*/
|
||||
public final TableField<VModuleRecord, BigDecimal> PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private VModule(Name alias, Table<VModuleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VModule(Name alias, Table<VModuleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_module" as WITH x(total) AS (
|
||||
SELECT COALESCE(NULLIF(count(1), 0), (1)::bigint) AS count
|
||||
FROM done.t_done
|
||||
)
|
||||
SELECT m.pk,
|
||||
m.name,
|
||||
round(((((count(dm.*))::double precision / (x.total)::double precision) * (100)::double precision))::numeric, 2) AS percent_usage
|
||||
FROM ((x
|
||||
LEFT JOIN done.t_module m ON (true))
|
||||
LEFT JOIN done.t_done dm ON ((dm.fk_project = m.pk)))
|
||||
GROUP BY m.pk, m.name, x.total
|
||||
ORDER BY m.pk;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_module</code> table reference
|
||||
*/
|
||||
public VModule(String alias) {
|
||||
this(DSL.name(alias), V_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_module</code> table reference
|
||||
*/
|
||||
public VModule(Name alias) {
|
||||
this(alias, V_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_module</code> table reference
|
||||
*/
|
||||
public VModule() {
|
||||
this(DSL.name("v_module"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VModule as(String alias) {
|
||||
return new VModule(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VModule as(Name alias) {
|
||||
return new VModule(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VModule as(Table<?> alias) {
|
||||
return new VModule(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VModule rename(String name) {
|
||||
return new VModule(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VModule rename(Name name) {
|
||||
return new VModule(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VModule rename(Table<?> name) {
|
||||
return new VModule(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule where(Condition condition) {
|
||||
return new VModule(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VModule where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VModule where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VModule where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VModule where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VModule whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java
Normal file
235
src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VProjectRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VProject extends TableImpl<VProjectRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_project</code>
|
||||
*/
|
||||
public static final VProject V_PROJECT = new VProject();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VProjectRecord> getRecordType() {
|
||||
return VProjectRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_project.pk</code>.
|
||||
*/
|
||||
public final TableField<VProjectRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_project.name</code>.
|
||||
*/
|
||||
public final TableField<VProjectRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_project.percent_usage</code>.
|
||||
*/
|
||||
public final TableField<VProjectRecord, BigDecimal> PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, "");
|
||||
|
||||
private VProject(Name alias, Table<VProjectRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VProject(Name alias, Table<VProjectRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_project" as WITH x(total) AS (
|
||||
SELECT COALESCE(NULLIF(count(1), 0), (1)::bigint) AS count
|
||||
FROM done.t_done
|
||||
)
|
||||
SELECT p.pk,
|
||||
p.name,
|
||||
round(((((count(dp.*))::double precision / (x.total)::double precision) * (100)::double precision))::numeric, 2) AS percent_usage
|
||||
FROM ((x
|
||||
LEFT JOIN done.t_project p ON (true))
|
||||
LEFT JOIN done.t_done dp ON ((dp.fk_project = p.pk)))
|
||||
GROUP BY p.pk, p.name, x.total
|
||||
ORDER BY p.pk;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_project</code> table reference
|
||||
*/
|
||||
public VProject(String alias) {
|
||||
this(DSL.name(alias), V_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_project</code> table reference
|
||||
*/
|
||||
public VProject(Name alias) {
|
||||
this(alias, V_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_project</code> table reference
|
||||
*/
|
||||
public VProject() {
|
||||
this(DSL.name("v_project"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VProject as(String alias) {
|
||||
return new VProject(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VProject as(Name alias) {
|
||||
return new VProject(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VProject as(Table<?> alias) {
|
||||
return new VProject(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VProject rename(String name) {
|
||||
return new VProject(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VProject rename(Name name) {
|
||||
return new VProject(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VProject rename(Table<?> name) {
|
||||
return new VProject(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject where(Condition condition) {
|
||||
return new VProject(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VProject where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VProject where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VProject where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VProject where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VProject whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VTasklistRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VTasklist extends TableImpl<VTasklistRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_tasklist</code>
|
||||
*/
|
||||
public static final VTasklist V_TASKLIST = new VTasklist();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VTasklistRecord> getRecordType() {
|
||||
return VTasklistRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.day</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.duration</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, String> DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.project_name</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.module_name</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, String> MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.job_name</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, String> JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_tasklist.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VTasklistRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VTasklist(Name alias, Table<VTasklistRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VTasklist(Name alias, Table<VTasklistRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_tasklist" as SELECT day,
|
||||
to_char(sum(duration), 'HH24:MI'::text) AS duration,
|
||||
project_name,
|
||||
module_name,
|
||||
job_name,
|
||||
fk_login
|
||||
FROM done.v_duration
|
||||
GROUP BY day, project_name, module_name, job_name, fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_tasklist</code> table reference
|
||||
*/
|
||||
public VTasklist(String alias) {
|
||||
this(DSL.name(alias), V_TASKLIST);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_tasklist</code> table reference
|
||||
*/
|
||||
public VTasklist(Name alias) {
|
||||
this(alias, V_TASKLIST);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_tasklist</code> table reference
|
||||
*/
|
||||
public VTasklist() {
|
||||
this(DSL.name("v_tasklist"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTasklist as(String alias) {
|
||||
return new VTasklist(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTasklist as(Name alias) {
|
||||
return new VTasklist(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTasklist as(Table<?> alias) {
|
||||
return new VTasklist(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist rename(String name) {
|
||||
return new VTasklist(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist rename(Name name) {
|
||||
return new VTasklist(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist rename(Table<?> name) {
|
||||
return new VTasklist(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist where(Condition condition) {
|
||||
return new VTasklist(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTasklist where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTasklist where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTasklist where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTasklist where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTasklist whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VTimelengthRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VTimelength extends TableImpl<VTimelengthRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_timelength</code>
|
||||
*/
|
||||
public static final VTimelength V_TIMELENGTH = new VTimelength();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VTimelengthRecord> getRecordType() {
|
||||
return VTimelengthRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_timelength.day</code>.
|
||||
*/
|
||||
public final TableField<VTimelengthRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_timelength.duration</code>.
|
||||
*/
|
||||
public final TableField<VTimelengthRecord, YearToSecond> DURATION = createField(DSL.name("duration"), SQLDataType.INTERVAL, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_timelength.fk_done</code>.
|
||||
*/
|
||||
public final TableField<VTimelengthRecord, Integer> FK_DONE = createField(DSL.name("fk_done"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_timelength.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VTimelengthRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VTimelength(Name alias, Table<VTimelengthRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VTimelength(Name alias, Table<VTimelengthRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_timelength" as SELECT to_char(COALESCE((time_until)::timestamp with time zone, now()), 'yyyy-MM-dd'::text) AS day,
|
||||
(COALESCE((time_until)::timestamp with time zone, now()) - COALESCE((time_from)::timestamp with time zone, now())) AS duration,
|
||||
pk AS fk_done,
|
||||
fk_login
|
||||
FROM done.t_done;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_timelength</code> table reference
|
||||
*/
|
||||
public VTimelength(String alias) {
|
||||
this(DSL.name(alias), V_TIMELENGTH);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_timelength</code> table reference
|
||||
*/
|
||||
public VTimelength(Name alias) {
|
||||
this(alias, V_TIMELENGTH);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_timelength</code> table reference
|
||||
*/
|
||||
public VTimelength() {
|
||||
this(DSL.name("v_timelength"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTimelength as(String alias) {
|
||||
return new VTimelength(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTimelength as(Name alias) {
|
||||
return new VTimelength(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTimelength as(Table<?> alias) {
|
||||
return new VTimelength(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength rename(String name) {
|
||||
return new VTimelength(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength rename(Name name) {
|
||||
return new VTimelength(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength rename(Table<?> name) {
|
||||
return new VTimelength(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength where(Condition condition) {
|
||||
return new VTimelength(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTimelength where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTimelength where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTimelength where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTimelength where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTimelength whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VTotalofdayRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VTotalofday extends TableImpl<VTotalofdayRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_totalofday</code>
|
||||
*/
|
||||
public static final VTotalofday V_TOTALOFDAY = new VTotalofday();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VTotalofdayRecord> getRecordType() {
|
||||
return VTotalofdayRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.breaktime</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, String> BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.worktime</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, String> WORKTIME = createField(DSL.name("worktime"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.starttime</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, String> STARTTIME = createField(DSL.name("starttime"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.endtime</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, String> ENDTIME = createField(DSL.name("endtime"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.day</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_totalofday.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VTotalofdayRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VTotalofday(Name alias, Table<VTotalofdayRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VTotalofday(Name alias, Table<VTotalofdayRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_totalofday" as SELECT to_char(breaktime, 'HH24:MI'::text) AS breaktime,
|
||||
to_char(worktime, 'HH24:MI'::text) AS worktime,
|
||||
to_char(work_start, 'HH24:MI'::text) AS starttime,
|
||||
to_char(work_end, 'HH24:MI'::text) AS endtime,
|
||||
day,
|
||||
fk_login
|
||||
FROM done.v_daysummary;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_totalofday</code> table reference
|
||||
*/
|
||||
public VTotalofday(String alias) {
|
||||
this(DSL.name(alias), V_TOTALOFDAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_totalofday</code> table reference
|
||||
*/
|
||||
public VTotalofday(Name alias) {
|
||||
this(alias, V_TOTALOFDAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_totalofday</code> table reference
|
||||
*/
|
||||
public VTotalofday() {
|
||||
this(DSL.name("v_totalofday"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTotalofday as(String alias) {
|
||||
return new VTotalofday(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTotalofday as(Name alias) {
|
||||
return new VTotalofday(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VTotalofday as(Table<?> alias) {
|
||||
return new VTotalofday(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday rename(String name) {
|
||||
return new VTotalofday(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday rename(Name name) {
|
||||
return new VTotalofday(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday rename(Table<?> name) {
|
||||
return new VTotalofday(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday where(Condition condition) {
|
||||
return new VTotalofday(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTotalofday where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTotalofday where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTotalofday where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VTotalofday where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VTotalofday whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,268 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.Done;
|
||||
import de.jottyfan.timetrack.db.done.tables.records.VWorktimeRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VWorktime extends TableImpl<VWorktimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>done.v_worktime</code>
|
||||
*/
|
||||
public static final VWorktime V_WORKTIME = new VWorktime();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VWorktimeRecord> getRecordType() {
|
||||
return VWorktimeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.day</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.duration</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.duration_hours</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, Double> DURATION_HOURS = createField(DSL.name("duration_hours"), SQLDataType.DOUBLE, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.project_name</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.module_name</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.job_name</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.billing_shortcut</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> BILLING_SHORTCUT = createField(DSL.name("billing_shortcut"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.billing_csskey</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, String> BILLING_CSSKEY = createField(DSL.name("billing_csskey"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>done.v_worktime.fk_login</code>.
|
||||
*/
|
||||
public final TableField<VWorktimeRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private VWorktime(Name alias, Table<VWorktimeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VWorktime(Name alias, Table<VWorktimeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_worktime" as SELECT t.day,
|
||||
to_char(sum(t.duration), 'HH24:MI'::text) AS duration,
|
||||
((to_char(sum(t.duration), 'HH24'::text))::double precision + ((to_char(sum(t.duration), 'MI'::text))::double precision / (60)::double precision)) AS duration_hours,
|
||||
p.name AS project_name,
|
||||
m.name AS module_name,
|
||||
j.name AS job_name,
|
||||
b.shortcut AS billing_shortcut,
|
||||
b.csskey AS billing_csskey,
|
||||
t.fk_login
|
||||
FROM (((((done.v_timelength t
|
||||
LEFT JOIN done.t_done d ON ((d.pk = t.fk_done)))
|
||||
LEFT JOIN done.t_project p ON ((p.pk = d.fk_project)))
|
||||
LEFT JOIN done.t_module m ON ((m.pk = d.fk_module)))
|
||||
LEFT JOIN done.t_job j ON ((j.pk = d.fk_job)))
|
||||
LEFT JOIN done.t_billing b ON ((b.pk = d.fk_billing)))
|
||||
GROUP BY t.day, p.name, m.name, j.name, b.shortcut, b.csskey, t.fk_login;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_worktime</code> table reference
|
||||
*/
|
||||
public VWorktime(String alias) {
|
||||
this(DSL.name(alias), V_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>done.v_worktime</code> table reference
|
||||
*/
|
||||
public VWorktime(Name alias) {
|
||||
this(alias, V_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>done.v_worktime</code> table reference
|
||||
*/
|
||||
public VWorktime() {
|
||||
this(DSL.name("v_worktime"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Done.DONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VWorktime as(String alias) {
|
||||
return new VWorktime(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VWorktime as(Name alias) {
|
||||
return new VWorktime(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VWorktime as(Table<?> alias) {
|
||||
return new VWorktime(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime rename(String name) {
|
||||
return new VWorktime(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime rename(Name name) {
|
||||
return new VWorktime(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime rename(Table<?> name) {
|
||||
return new VWorktime(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime where(Condition condition) {
|
||||
return new VWorktime(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VWorktime where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VWorktime where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VWorktime where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VWorktime where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VWorktime whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TBilling;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TBillingRecord extends UpdatableRecordImpl<TBillingRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_billing.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_billing.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_billing.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_billing.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_billing.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_billing.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_billing.shortcut</code>.
|
||||
*/
|
||||
public void setShortcut(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_billing.shortcut</code>.
|
||||
*/
|
||||
public String getShortcut() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_billing.csskey</code>.
|
||||
*/
|
||||
public void setCsskey(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_billing.csskey</code>.
|
||||
*/
|
||||
public String getCsskey() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TBillingRecord
|
||||
*/
|
||||
public TBillingRecord() {
|
||||
super(TBilling.T_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TBillingRecord
|
||||
*/
|
||||
public TBillingRecord(LocalDateTime lastchange, Integer pk, String name, String shortcut, String csskey) {
|
||||
super(TBilling.T_BILLING);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
setShortcut(shortcut);
|
||||
setCsskey(csskey);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TDone;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TDoneRecord extends UpdatableRecordImpl<TDoneRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.time_from</code>.
|
||||
*/
|
||||
public void setTimeFrom(LocalDateTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.time_from</code>.
|
||||
*/
|
||||
public LocalDateTime getTimeFrom() {
|
||||
return (LocalDateTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.time_until</code>.
|
||||
*/
|
||||
public void setTimeUntil(LocalDateTime value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.time_until</code>.
|
||||
*/
|
||||
public LocalDateTime getTimeUntil() {
|
||||
return (LocalDateTime) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.fk_project</code>.
|
||||
*/
|
||||
public void setFkProject(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.fk_project</code>.
|
||||
*/
|
||||
public Integer getFkProject() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.fk_module</code>.
|
||||
*/
|
||||
public void setFkModule(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.fk_module</code>.
|
||||
*/
|
||||
public Integer getFkModule() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.fk_job</code>.
|
||||
*/
|
||||
public void setFkJob(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.fk_job</code>.
|
||||
*/
|
||||
public Integer getFkJob() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_done.fk_billing</code>.
|
||||
*/
|
||||
public void setFkBilling(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_done.fk_billing</code>.
|
||||
*/
|
||||
public Integer getFkBilling() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TDoneRecord
|
||||
*/
|
||||
public TDoneRecord() {
|
||||
super(TDone.T_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TDoneRecord
|
||||
*/
|
||||
public TDoneRecord(LocalDateTime lastchange, Integer pk, LocalDateTime timeFrom, LocalDateTime timeUntil, Integer fkProject, Integer fkModule, Integer fkJob, Integer fkLogin, Integer fkBilling) {
|
||||
super(TDone.T_DONE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setTimeFrom(timeFrom);
|
||||
setTimeUntil(timeUntil);
|
||||
setFkProject(fkProject);
|
||||
setFkModule(fkModule);
|
||||
setFkJob(fkJob);
|
||||
setFkLogin(fkLogin);
|
||||
setFkBilling(fkBilling);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TFavorite;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TFavoriteRecord extends UpdatableRecordImpl<TFavoriteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public void setPkFavorite(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public Integer getPkFavorite() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.fk_project</code>.
|
||||
*/
|
||||
public void setFkProject(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.fk_project</code>.
|
||||
*/
|
||||
public Integer getFkProject() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.fk_module</code>.
|
||||
*/
|
||||
public void setFkModule(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.fk_module</code>.
|
||||
*/
|
||||
public Integer getFkModule() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.fk_job</code>.
|
||||
*/
|
||||
public void setFkJob(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.fk_job</code>.
|
||||
*/
|
||||
public Integer getFkJob() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_favorite.fk_billing</code>.
|
||||
*/
|
||||
public void setFkBilling(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_favorite.fk_billing</code>.
|
||||
*/
|
||||
public Integer getFkBilling() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TFavoriteRecord
|
||||
*/
|
||||
public TFavoriteRecord() {
|
||||
super(TFavorite.T_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TFavoriteRecord
|
||||
*/
|
||||
public TFavoriteRecord(LocalDateTime lastchange, Integer pkFavorite, Integer fkLogin, Integer fkProject, Integer fkModule, Integer fkJob, Integer fkBilling) {
|
||||
super(TFavorite.T_FAVORITE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPkFavorite(pkFavorite);
|
||||
setFkLogin(fkLogin);
|
||||
setFkProject(fkProject);
|
||||
setFkModule(fkModule);
|
||||
setFkJob(fkJob);
|
||||
setFkBilling(fkBilling);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TFreetime;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TFreetimeRecord extends UpdatableRecordImpl<TFreetimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_freetime.pk_freetime</code>.
|
||||
*/
|
||||
public void setPkFreetime(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_freetime.pk_freetime</code>.
|
||||
*/
|
||||
public Integer getPkFreetime() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_freetime.day</code>.
|
||||
*/
|
||||
public void setDay(LocalDate value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_freetime.day</code>.
|
||||
*/
|
||||
public LocalDate getDay() {
|
||||
return (LocalDate) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_freetime.required_worktime</code>.
|
||||
*/
|
||||
public void setRequiredWorktime(LocalTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_freetime.required_worktime</code>.
|
||||
*/
|
||||
public LocalTime getRequiredWorktime() {
|
||||
return (LocalTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_freetime.reason</code>.
|
||||
*/
|
||||
public void setReason(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_freetime.reason</code>.
|
||||
*/
|
||||
public String getReason() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_freetime.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_freetime.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TFreetimeRecord
|
||||
*/
|
||||
public TFreetimeRecord() {
|
||||
super(TFreetime.T_FREETIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TFreetimeRecord
|
||||
*/
|
||||
public TFreetimeRecord(Integer pkFreetime, LocalDate day, LocalTime requiredWorktime, String reason, Integer fkLogin) {
|
||||
super(TFreetime.T_FREETIME);
|
||||
|
||||
setPkFreetime(pkFreetime);
|
||||
setDay(day);
|
||||
setRequiredWorktime(requiredWorktime);
|
||||
setReason(reason);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TJob;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TJobRecord extends UpdatableRecordImpl<TJobRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_job.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_job.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_job.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_job.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_job.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_job.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TJobRecord
|
||||
*/
|
||||
public TJobRecord() {
|
||||
super(TJob.T_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TJobRecord
|
||||
*/
|
||||
public TJobRecord(LocalDateTime lastchange, Integer pk, String name) {
|
||||
super(TJob.T_JOB);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TModule;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TModuleRecord extends UpdatableRecordImpl<TModuleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_module.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_module.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_module.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_module.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_module.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_module.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TModuleRecord
|
||||
*/
|
||||
public TModuleRecord() {
|
||||
super(TModule.T_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TModuleRecord
|
||||
*/
|
||||
public TModuleRecord(LocalDateTime lastchange, Integer pk, String name) {
|
||||
super(TModule.T_MODULE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TOvertime;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TOvertimeRecord extends UpdatableRecordImpl<TOvertimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_overtime.pk_overtime</code>.
|
||||
*/
|
||||
public void setPkOvertime(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_overtime.pk_overtime</code>.
|
||||
*/
|
||||
public Integer getPkOvertime() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_overtime.impact</code>.
|
||||
*/
|
||||
public void setImpact(LocalDateTime value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_overtime.impact</code>.
|
||||
*/
|
||||
public LocalDateTime getImpact() {
|
||||
return (LocalDateTime) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_overtime.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_overtime.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_overtime.overtime_minutes</code>.
|
||||
*/
|
||||
public void setOvertimeMinutes(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_overtime.overtime_minutes</code>.
|
||||
*/
|
||||
public Integer getOvertimeMinutes() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TOvertimeRecord
|
||||
*/
|
||||
public TOvertimeRecord() {
|
||||
super(TOvertime.T_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TOvertimeRecord
|
||||
*/
|
||||
public TOvertimeRecord(Integer pkOvertime, LocalDateTime impact, Integer fkLogin, Integer overtimeMinutes) {
|
||||
super(TOvertime.T_OVERTIME);
|
||||
|
||||
setPkOvertime(pkOvertime);
|
||||
setImpact(impact);
|
||||
setFkLogin(fkLogin);
|
||||
setOvertimeMinutes(overtimeMinutes);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TProject;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TProjectRecord extends UpdatableRecordImpl<TProjectRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_project.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_project.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_project.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_project.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_project.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_project.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TProjectRecord
|
||||
*/
|
||||
public TProjectRecord() {
|
||||
super(TProject.T_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TProjectRecord
|
||||
*/
|
||||
public TProjectRecord(LocalDateTime lastchange, Integer pk, String name) {
|
||||
super(TProject.T_PROJECT);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.TRequiredWorktime;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TRequiredWorktimeRecord extends UpdatableRecordImpl<TRequiredWorktimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_required_worktime.pk_required_worktime</code>.
|
||||
*/
|
||||
public void setPkRequiredWorktime(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_required_worktime.pk_required_worktime</code>.
|
||||
*/
|
||||
public Integer getPkRequiredWorktime() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_required_worktime.day</code>.
|
||||
*/
|
||||
public void setDay(LocalDate value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_required_worktime.day</code>.
|
||||
*/
|
||||
public LocalDate getDay() {
|
||||
return (LocalDate) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_required_worktime.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_required_worktime.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_required_worktime.required_minutes</code>.
|
||||
*/
|
||||
public void setRequiredMinutes(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_required_worktime.required_minutes</code>.
|
||||
*/
|
||||
public Integer getRequiredMinutes() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.t_required_worktime.reason</code>.
|
||||
*/
|
||||
public void setReason(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.t_required_worktime.reason</code>.
|
||||
*/
|
||||
public String getReason() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TRequiredWorktimeRecord
|
||||
*/
|
||||
public TRequiredWorktimeRecord() {
|
||||
super(TRequiredWorktime.T_REQUIRED_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TRequiredWorktimeRecord
|
||||
*/
|
||||
public TRequiredWorktimeRecord(Integer pkRequiredWorktime, LocalDate day, Integer fkLogin, Integer requiredMinutes, String reason) {
|
||||
super(TRequiredWorktime.T_REQUIRED_WORKTIME);
|
||||
|
||||
setPkRequiredWorktime(pkRequiredWorktime);
|
||||
setDay(day);
|
||||
setFkLogin(fkLogin);
|
||||
setRequiredMinutes(requiredMinutes);
|
||||
setReason(reason);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VBilling;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VBillingRecord extends TableRecordImpl<VBillingRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_billing.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_billing.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_billing.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_billing.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_billing.shortcut</code>.
|
||||
*/
|
||||
public void setShortcut(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_billing.shortcut</code>.
|
||||
*/
|
||||
public String getShortcut() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_billing.csskey</code>.
|
||||
*/
|
||||
public void setCsskey(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_billing.csskey</code>.
|
||||
*/
|
||||
public String getCsskey() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_billing.percent_usage</code>.
|
||||
*/
|
||||
public void setPercentUsage(BigDecimal value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_billing.percent_usage</code>.
|
||||
*/
|
||||
public BigDecimal getPercentUsage() {
|
||||
return (BigDecimal) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VBillingRecord
|
||||
*/
|
||||
public VBillingRecord() {
|
||||
super(VBilling.V_BILLING);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VBillingRecord
|
||||
*/
|
||||
public VBillingRecord(Integer pk, String name, String shortcut, String csskey, BigDecimal percentUsage) {
|
||||
super(VBilling.V_BILLING);
|
||||
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
setShortcut(shortcut);
|
||||
setCsskey(csskey);
|
||||
setPercentUsage(percentUsage);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VCurrentOvertime;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VCurrentOvertimeRecord extends TableRecordImpl<VCurrentOvertimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_current_overtime.overtime</code>.
|
||||
*/
|
||||
public void setOvertime(BigDecimal value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_current_overtime.overtime</code>.
|
||||
*/
|
||||
public BigDecimal getOvertime() {
|
||||
return (BigDecimal) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_current_overtime.impact</code>.
|
||||
*/
|
||||
public void setImpact(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_current_overtime.impact</code>.
|
||||
*/
|
||||
public String getImpact() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_current_overtime.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_current_overtime.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VCurrentOvertimeRecord
|
||||
*/
|
||||
public VCurrentOvertimeRecord() {
|
||||
super(VCurrentOvertime.V_CURRENT_OVERTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VCurrentOvertimeRecord
|
||||
*/
|
||||
public VCurrentOvertimeRecord(BigDecimal overtime, String impact, Integer fkLogin) {
|
||||
super(VCurrentOvertime.V_CURRENT_OVERTIME);
|
||||
|
||||
setOvertime(overtime);
|
||||
setImpact(impact);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaily;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDailyRecord extends TableRecordImpl<VDailyRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daily.worktime</code>.
|
||||
*/
|
||||
public void setWorktime(YearToSecond value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daily.worktime</code>.
|
||||
*/
|
||||
public YearToSecond getWorktime() {
|
||||
return (YearToSecond) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daily.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daily.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daily.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daily.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daily.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daily.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDailyRecord
|
||||
*/
|
||||
public VDailyRecord() {
|
||||
super(VDaily.V_DAILY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDailyRecord
|
||||
*/
|
||||
public VDailyRecord(YearToSecond worktime, String day, String login, Integer fkLogin) {
|
||||
super(VDaily.V_DAILY);
|
||||
|
||||
setWorktime(worktime);
|
||||
setDay(day);
|
||||
setLogin(login);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDay;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDayRecord extends TableRecordImpl<VDayRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.day</code>.
|
||||
*/
|
||||
public void setDay(LocalDate value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.day</code>.
|
||||
*/
|
||||
public LocalDate getDay() {
|
||||
return (LocalDate) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.starttime</code>.
|
||||
*/
|
||||
public void setStarttime(LocalTime value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.starttime</code>.
|
||||
*/
|
||||
public LocalTime getStarttime() {
|
||||
return (LocalTime) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.endtime</code>.
|
||||
*/
|
||||
public void setEndtime(LocalTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.endtime</code>.
|
||||
*/
|
||||
public LocalTime getEndtime() {
|
||||
return (LocalTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.worktime</code>.
|
||||
*/
|
||||
public void setWorktime(YearToSecond value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.worktime</code>.
|
||||
*/
|
||||
public YearToSecond getWorktime() {
|
||||
return (YearToSecond) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.breaktime</code>.
|
||||
*/
|
||||
public void setBreaktime(YearToSecond value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.breaktime</code>.
|
||||
*/
|
||||
public YearToSecond getBreaktime() {
|
||||
return (YearToSecond) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.day_overtime</code>.
|
||||
*/
|
||||
public void setDayOvertime(YearToSecond value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.day_overtime</code>.
|
||||
*/
|
||||
public YearToSecond getDayOvertime() {
|
||||
return (YearToSecond) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_day.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_day.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDayRecord
|
||||
*/
|
||||
public VDayRecord() {
|
||||
super(VDay.V_DAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDayRecord
|
||||
*/
|
||||
public VDayRecord(LocalDate day, LocalTime starttime, LocalTime endtime, YearToSecond worktime, YearToSecond breaktime, YearToSecond dayOvertime, Integer fkLogin) {
|
||||
super(VDay.V_DAY);
|
||||
|
||||
setDay(day);
|
||||
setStarttime(starttime);
|
||||
setEndtime(endtime);
|
||||
setWorktime(worktime);
|
||||
setBreaktime(breaktime);
|
||||
setDayOvertime(dayOvertime);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimit;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaylimitRecord extends TableRecordImpl<VDaylimitRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.daytime_from</code>.
|
||||
*/
|
||||
public void setDaytimeFrom(LocalTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.daytime_from</code>.
|
||||
*/
|
||||
public LocalTime getDaytimeFrom() {
|
||||
return (LocalTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.daytime_until</code>.
|
||||
*/
|
||||
public void setDaytimeUntil(LocalTime value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.daytime_until</code>.
|
||||
*/
|
||||
public LocalTime getDaytimeUntil() {
|
||||
return (LocalTime) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.dayworktime</code>.
|
||||
*/
|
||||
public void setDayworktime(LocalTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.dayworktime</code>.
|
||||
*/
|
||||
public LocalTime getDayworktime() {
|
||||
return (LocalTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.breaks</code>.
|
||||
*/
|
||||
public void setBreaks(YearToSecond value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.breaks</code>.
|
||||
*/
|
||||
public YearToSecond getBreaks() {
|
||||
return (YearToSecond) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.day</code>.
|
||||
*/
|
||||
public void setDay(LocalDate value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.day</code>.
|
||||
*/
|
||||
public LocalDate getDay() {
|
||||
return (LocalDate) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimit.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimit.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDaylimitRecord
|
||||
*/
|
||||
public VDaylimitRecord() {
|
||||
super(VDaylimit.V_DAYLIMIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDaylimitRecord
|
||||
*/
|
||||
public VDaylimitRecord(LocalTime daytimeFrom, LocalTime daytimeUntil, LocalTime dayworktime, YearToSecond breaks, LocalDate day, Integer fkLogin) {
|
||||
super(VDaylimit.V_DAYLIMIT);
|
||||
|
||||
setDaytimeFrom(daytimeFrom);
|
||||
setDaytimeUntil(daytimeUntil);
|
||||
setDayworktime(dayworktime);
|
||||
setBreaks(breaks);
|
||||
setDay(day);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaylimits;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaylimitsRecord extends TableRecordImpl<VDaylimitsRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimits.work_start</code>.
|
||||
*/
|
||||
public void setWorkStart(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimits.work_start</code>.
|
||||
*/
|
||||
public LocalDateTime getWorkStart() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimits.work_end</code>.
|
||||
*/
|
||||
public void setWorkEnd(OffsetDateTime value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimits.work_end</code>.
|
||||
*/
|
||||
public OffsetDateTime getWorkEnd() {
|
||||
return (OffsetDateTime) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimits.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimits.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daylimits.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daylimits.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDaylimitsRecord
|
||||
*/
|
||||
public VDaylimitsRecord() {
|
||||
super(VDaylimits.V_DAYLIMITS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDaylimitsRecord
|
||||
*/
|
||||
public VDaylimitsRecord(LocalDateTime workStart, OffsetDateTime workEnd, String day, Integer fkLogin) {
|
||||
super(VDaylimits.V_DAYLIMITS);
|
||||
|
||||
setWorkStart(workStart);
|
||||
setWorkEnd(workEnd);
|
||||
setDay(day);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDaysummary;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDaysummaryRecord extends TableRecordImpl<VDaysummaryRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.breaktime</code>.
|
||||
*/
|
||||
public void setBreaktime(YearToSecond value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.breaktime</code>.
|
||||
*/
|
||||
public YearToSecond getBreaktime() {
|
||||
return (YearToSecond) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.worktime</code>.
|
||||
*/
|
||||
public void setWorktime(YearToSecond value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.worktime</code>.
|
||||
*/
|
||||
public YearToSecond getWorktime() {
|
||||
return (YearToSecond) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.work_start</code>.
|
||||
*/
|
||||
public void setWorkStart(LocalDateTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.work_start</code>.
|
||||
*/
|
||||
public LocalDateTime getWorkStart() {
|
||||
return (LocalDateTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.work_end</code>.
|
||||
*/
|
||||
public void setWorkEnd(OffsetDateTime value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.work_end</code>.
|
||||
*/
|
||||
public OffsetDateTime getWorkEnd() {
|
||||
return (OffsetDateTime) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_daysummary.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_daysummary.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDaysummaryRecord
|
||||
*/
|
||||
public VDaysummaryRecord() {
|
||||
super(VDaysummary.V_DAYSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDaysummaryRecord
|
||||
*/
|
||||
public VDaysummaryRecord(YearToSecond breaktime, YearToSecond worktime, LocalDateTime workStart, OffsetDateTime workEnd, String day, String login, Integer fkLogin) {
|
||||
super(VDaysummary.V_DAYSUMMARY);
|
||||
|
||||
setBreaktime(breaktime);
|
||||
setWorktime(worktime);
|
||||
setWorkStart(workStart);
|
||||
setWorkEnd(workEnd);
|
||||
setDay(day);
|
||||
setLogin(login);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDone;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDoneRecord extends TableRecordImpl<VDoneRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.fk_done</code>.
|
||||
*/
|
||||
public void setFkDone(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.fk_done</code>.
|
||||
*/
|
||||
public Integer getFkDone() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.time_from</code>.
|
||||
*/
|
||||
public void setTimeFrom(LocalDateTime value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.time_from</code>.
|
||||
*/
|
||||
public LocalDateTime getTimeFrom() {
|
||||
return (LocalDateTime) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.time_until</code>.
|
||||
*/
|
||||
public void setTimeUntil(LocalDateTime value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.time_until</code>.
|
||||
*/
|
||||
public LocalDateTime getTimeUntil() {
|
||||
return (LocalDateTime) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.project_name</code>.
|
||||
*/
|
||||
public void setProjectName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.project_name</code>.
|
||||
*/
|
||||
public String getProjectName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.module_name</code>.
|
||||
*/
|
||||
public void setModuleName(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.module_name</code>.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.job_name</code>.
|
||||
*/
|
||||
public void setJobName(String value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.job_name</code>.
|
||||
*/
|
||||
public String getJobName() {
|
||||
return (String) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_done.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_done.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDoneRecord
|
||||
*/
|
||||
public VDoneRecord() {
|
||||
super(VDone.V_DONE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDoneRecord
|
||||
*/
|
||||
public VDoneRecord(Integer fkDone, Integer fkLogin, LocalDateTime timeFrom, LocalDateTime timeUntil, String projectName, String moduleName, String jobName, String login) {
|
||||
super(VDone.V_DONE);
|
||||
|
||||
setFkDone(fkDone);
|
||||
setFkLogin(fkLogin);
|
||||
setTimeFrom(timeFrom);
|
||||
setTimeUntil(timeUntil);
|
||||
setProjectName(projectName);
|
||||
setModuleName(moduleName);
|
||||
setJobName(jobName);
|
||||
setLogin(login);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VDuration;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VDurationRecord extends TableRecordImpl<VDurationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.duration</code>.
|
||||
*/
|
||||
public void setDuration(YearToSecond value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.duration</code>.
|
||||
*/
|
||||
public YearToSecond getDuration() {
|
||||
return (YearToSecond) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.project_name</code>.
|
||||
*/
|
||||
public void setProjectName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.project_name</code>.
|
||||
*/
|
||||
public String getProjectName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.module_name</code>.
|
||||
*/
|
||||
public void setModuleName(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.module_name</code>.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.job_name</code>.
|
||||
*/
|
||||
public void setJobName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.job_name</code>.
|
||||
*/
|
||||
public String getJobName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_duration.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_duration.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VDurationRecord
|
||||
*/
|
||||
public VDurationRecord() {
|
||||
super(VDuration.V_DURATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VDurationRecord
|
||||
*/
|
||||
public VDurationRecord(String day, YearToSecond duration, String projectName, String moduleName, String jobName, String login, Integer fkLogin) {
|
||||
super(VDuration.V_DURATION);
|
||||
|
||||
setDay(day);
|
||||
setDuration(duration);
|
||||
setProjectName(projectName);
|
||||
setModuleName(moduleName);
|
||||
setJobName(jobName);
|
||||
setLogin(login);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VFavorite;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VFavoriteRecord extends TableRecordImpl<VFavoriteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public void setPkFavorite(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.pk_favorite</code>.
|
||||
*/
|
||||
public Integer getPkFavorite() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.project</code>.
|
||||
*/
|
||||
public void setProject(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.project</code>.
|
||||
*/
|
||||
public String getProject() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.module</code>.
|
||||
*/
|
||||
public void setModule(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.module</code>.
|
||||
*/
|
||||
public String getModule() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.job</code>.
|
||||
*/
|
||||
public void setJob(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.job</code>.
|
||||
*/
|
||||
public String getJob() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_favorite.billing</code>.
|
||||
*/
|
||||
public void setBilling(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_favorite.billing</code>.
|
||||
*/
|
||||
public String getBilling() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VFavoriteRecord
|
||||
*/
|
||||
public VFavoriteRecord() {
|
||||
super(VFavorite.V_FAVORITE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VFavoriteRecord
|
||||
*/
|
||||
public VFavoriteRecord(Integer pkFavorite, Integer fkLogin, String project, String module, String job, String billing) {
|
||||
super(VFavorite.V_FAVORITE);
|
||||
|
||||
setPkFavorite(pkFavorite);
|
||||
setFkLogin(fkLogin);
|
||||
setProject(project);
|
||||
setModule(module);
|
||||
setJob(job);
|
||||
setBilling(billing);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VHamstersummary;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VHamstersummaryRecord extends TableRecordImpl<VHamstersummaryRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.workday</code>.
|
||||
*/
|
||||
public void setWorkday(LocalDate value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.workday</code>.
|
||||
*/
|
||||
public LocalDate getWorkday() {
|
||||
return (LocalDate) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.duration</code>.
|
||||
*/
|
||||
public void setDuration(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.duration</code>.
|
||||
*/
|
||||
public String getDuration() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.project_name</code>.
|
||||
*/
|
||||
public void setProjectName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.project_name</code>.
|
||||
*/
|
||||
public String getProjectName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.module_name</code>.
|
||||
*/
|
||||
public void setModuleName(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.module_name</code>.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.job_name</code>.
|
||||
*/
|
||||
public void setJobName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.job_name</code>.
|
||||
*/
|
||||
public String getJobName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_hamstersummary.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_hamstersummary.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VHamstersummaryRecord
|
||||
*/
|
||||
public VHamstersummaryRecord() {
|
||||
super(VHamstersummary.V_HAMSTERSUMMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VHamstersummaryRecord
|
||||
*/
|
||||
public VHamstersummaryRecord(LocalDate workday, String duration, String projectName, String moduleName, String jobName, String login) {
|
||||
super(VHamstersummary.V_HAMSTERSUMMARY);
|
||||
|
||||
setWorkday(workday);
|
||||
setDuration(duration);
|
||||
setProjectName(projectName);
|
||||
setModuleName(moduleName);
|
||||
setJobName(jobName);
|
||||
setLogin(login);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VJob;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VJobRecord extends TableRecordImpl<VJobRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_job.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_job.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_job.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_job.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_job.percent_usage</code>.
|
||||
*/
|
||||
public void setPercentUsage(BigDecimal value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_job.percent_usage</code>.
|
||||
*/
|
||||
public BigDecimal getPercentUsage() {
|
||||
return (BigDecimal) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VJobRecord
|
||||
*/
|
||||
public VJobRecord() {
|
||||
super(VJob.V_JOB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VJobRecord
|
||||
*/
|
||||
public VJobRecord(Integer pk, String name, BigDecimal percentUsage) {
|
||||
super(VJob.V_JOB);
|
||||
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
setPercentUsage(percentUsage);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VModule;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VModuleRecord extends TableRecordImpl<VModuleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_module.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_module.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_module.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_module.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_module.percent_usage</code>.
|
||||
*/
|
||||
public void setPercentUsage(BigDecimal value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_module.percent_usage</code>.
|
||||
*/
|
||||
public BigDecimal getPercentUsage() {
|
||||
return (BigDecimal) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VModuleRecord
|
||||
*/
|
||||
public VModuleRecord() {
|
||||
super(VModule.V_MODULE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VModuleRecord
|
||||
*/
|
||||
public VModuleRecord(Integer pk, String name, BigDecimal percentUsage) {
|
||||
super(VModule.V_MODULE);
|
||||
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
setPercentUsage(percentUsage);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VProject;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VProjectRecord extends TableRecordImpl<VProjectRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_project.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_project.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_project.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_project.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_project.percent_usage</code>.
|
||||
*/
|
||||
public void setPercentUsage(BigDecimal value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_project.percent_usage</code>.
|
||||
*/
|
||||
public BigDecimal getPercentUsage() {
|
||||
return (BigDecimal) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VProjectRecord
|
||||
*/
|
||||
public VProjectRecord() {
|
||||
super(VProject.V_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VProjectRecord
|
||||
*/
|
||||
public VProjectRecord(Integer pk, String name, BigDecimal percentUsage) {
|
||||
super(VProject.V_PROJECT);
|
||||
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
setPercentUsage(percentUsage);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VTasklist;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VTasklistRecord extends TableRecordImpl<VTasklistRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.duration</code>.
|
||||
*/
|
||||
public void setDuration(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.duration</code>.
|
||||
*/
|
||||
public String getDuration() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.project_name</code>.
|
||||
*/
|
||||
public void setProjectName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.project_name</code>.
|
||||
*/
|
||||
public String getProjectName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.module_name</code>.
|
||||
*/
|
||||
public void setModuleName(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.module_name</code>.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.job_name</code>.
|
||||
*/
|
||||
public void setJobName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.job_name</code>.
|
||||
*/
|
||||
public String getJobName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_tasklist.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_tasklist.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VTasklistRecord
|
||||
*/
|
||||
public VTasklistRecord() {
|
||||
super(VTasklist.V_TASKLIST);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VTasklistRecord
|
||||
*/
|
||||
public VTasklistRecord(String day, String duration, String projectName, String moduleName, String jobName, Integer fkLogin) {
|
||||
super(VTasklist.V_TASKLIST);
|
||||
|
||||
setDay(day);
|
||||
setDuration(duration);
|
||||
setProjectName(projectName);
|
||||
setModuleName(moduleName);
|
||||
setJobName(jobName);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VTimelength;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
import org.jooq.types.YearToSecond;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VTimelengthRecord extends TableRecordImpl<VTimelengthRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_timelength.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_timelength.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_timelength.duration</code>.
|
||||
*/
|
||||
public void setDuration(YearToSecond value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_timelength.duration</code>.
|
||||
*/
|
||||
public YearToSecond getDuration() {
|
||||
return (YearToSecond) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_timelength.fk_done</code>.
|
||||
*/
|
||||
public void setFkDone(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_timelength.fk_done</code>.
|
||||
*/
|
||||
public Integer getFkDone() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_timelength.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_timelength.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VTimelengthRecord
|
||||
*/
|
||||
public VTimelengthRecord() {
|
||||
super(VTimelength.V_TIMELENGTH);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VTimelengthRecord
|
||||
*/
|
||||
public VTimelengthRecord(String day, YearToSecond duration, Integer fkDone, Integer fkLogin) {
|
||||
super(VTimelength.V_TIMELENGTH);
|
||||
|
||||
setDay(day);
|
||||
setDuration(duration);
|
||||
setFkDone(fkDone);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VTotalofday;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VTotalofdayRecord extends TableRecordImpl<VTotalofdayRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.breaktime</code>.
|
||||
*/
|
||||
public void setBreaktime(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.breaktime</code>.
|
||||
*/
|
||||
public String getBreaktime() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.worktime</code>.
|
||||
*/
|
||||
public void setWorktime(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.worktime</code>.
|
||||
*/
|
||||
public String getWorktime() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.starttime</code>.
|
||||
*/
|
||||
public void setStarttime(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.starttime</code>.
|
||||
*/
|
||||
public String getStarttime() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.endtime</code>.
|
||||
*/
|
||||
public void setEndtime(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.endtime</code>.
|
||||
*/
|
||||
public String getEndtime() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_totalofday.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_totalofday.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VTotalofdayRecord
|
||||
*/
|
||||
public VTotalofdayRecord() {
|
||||
super(VTotalofday.V_TOTALOFDAY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VTotalofdayRecord
|
||||
*/
|
||||
public VTotalofdayRecord(String breaktime, String worktime, String starttime, String endtime, String day, Integer fkLogin) {
|
||||
super(VTotalofday.V_TOTALOFDAY);
|
||||
|
||||
setBreaktime(breaktime);
|
||||
setWorktime(worktime);
|
||||
setStarttime(starttime);
|
||||
setEndtime(endtime);
|
||||
setDay(day);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.done.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.done.tables.VWorktime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VWorktimeRecord extends TableRecordImpl<VWorktimeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.day</code>.
|
||||
*/
|
||||
public void setDay(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.day</code>.
|
||||
*/
|
||||
public String getDay() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.duration</code>.
|
||||
*/
|
||||
public void setDuration(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.duration</code>.
|
||||
*/
|
||||
public String getDuration() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.duration_hours</code>.
|
||||
*/
|
||||
public void setDurationHours(Double value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.duration_hours</code>.
|
||||
*/
|
||||
public Double getDurationHours() {
|
||||
return (Double) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.project_name</code>.
|
||||
*/
|
||||
public void setProjectName(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.project_name</code>.
|
||||
*/
|
||||
public String getProjectName() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.module_name</code>.
|
||||
*/
|
||||
public void setModuleName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.module_name</code>.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.job_name</code>.
|
||||
*/
|
||||
public void setJobName(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.job_name</code>.
|
||||
*/
|
||||
public String getJobName() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.billing_shortcut</code>.
|
||||
*/
|
||||
public void setBillingShortcut(String value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.billing_shortcut</code>.
|
||||
*/
|
||||
public String getBillingShortcut() {
|
||||
return (String) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.billing_csskey</code>.
|
||||
*/
|
||||
public void setBillingCsskey(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.billing_csskey</code>.
|
||||
*/
|
||||
public String getBillingCsskey() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>done.v_worktime.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>done.v_worktime.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VWorktimeRecord
|
||||
*/
|
||||
public VWorktimeRecord() {
|
||||
super(VWorktime.V_WORKTIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VWorktimeRecord
|
||||
*/
|
||||
public VWorktimeRecord(String day, String duration, Double durationHours, String projectName, String moduleName, String jobName, String billingShortcut, String billingCsskey, Integer fkLogin) {
|
||||
super(VWorktime.V_WORKTIME);
|
||||
|
||||
setDay(day);
|
||||
setDuration(duration);
|
||||
setDurationHours(durationHours);
|
||||
setProjectName(projectName);
|
||||
setModuleName(moduleName);
|
||||
setJobName(jobName);
|
||||
setBillingShortcut(billingShortcut);
|
||||
setBillingCsskey(billingCsskey);
|
||||
setFkLogin(fkLogin);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
28
src/main/java/de/jottyfan/timetrack/db/note/Keys.java
Normal file
28
src/main/java/de/jottyfan/timetrack/db/note/Keys.java
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.tables.TNote;
|
||||
import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.Internal;
|
||||
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* note.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TNoteRecord> T_NOTE_PKEY = Internal.createUniqueKey(TNote.T_NOTE, DSL.name("t_note_pkey"), new TableField[] { TNote.T_NOTE.PK }, true);
|
||||
}
|
||||
55
src/main/java/de/jottyfan/timetrack/db/note/Note.java
Normal file
55
src/main/java/de/jottyfan/timetrack/db/note/Note.java
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.DefaultCatalog;
|
||||
import de.jottyfan.timetrack.db.note.tables.TNote;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Note extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>note</code>
|
||||
*/
|
||||
public static final Note NOTE = new Note();
|
||||
|
||||
/**
|
||||
* The table <code>note.t_note</code>.
|
||||
*/
|
||||
public final TNote T_NOTE = TNote.T_NOTE;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Note() {
|
||||
super("note", null);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TNote.T_NOTE
|
||||
);
|
||||
}
|
||||
}
|
||||
20
src/main/java/de/jottyfan/timetrack/db/note/Tables.java
Normal file
20
src/main/java/de/jottyfan/timetrack/db/note/Tables.java
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.tables.TNote;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in note.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>note.t_note</code>.
|
||||
*/
|
||||
public static final TNote T_NOTE = TNote.T_NOTE;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note.enums;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.Note;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Schema;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public enum EnumCategory implements EnumType {
|
||||
|
||||
PostgreSQL("PostgreSQL"),
|
||||
|
||||
R("R"),
|
||||
|
||||
Bootsfaces("Bootsfaces"),
|
||||
|
||||
MyFaces("MyFaces"),
|
||||
|
||||
Java("Java"),
|
||||
|
||||
Bash("Bash"),
|
||||
|
||||
Apache("Apache"),
|
||||
|
||||
Tomcat("Tomcat");
|
||||
|
||||
private final String literal;
|
||||
|
||||
private EnumCategory(String literal) {
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return getSchema().getCatalog();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Note.NOTE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "enum_category";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLiteral() {
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a value of this EnumType by its literal. Returns
|
||||
* <code>null</code>, if no such value could be found, see {@link
|
||||
* EnumType#lookupLiteral(Class, String)}.
|
||||
*/
|
||||
public static EnumCategory lookupLiteral(String literal) {
|
||||
return EnumType.lookupLiteral(EnumCategory.class, literal);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note.enums;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.Note;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Schema;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public enum EnumNotetype implements EnumType {
|
||||
|
||||
Administration("Administration"),
|
||||
|
||||
HowTo("HowTo");
|
||||
|
||||
private final String literal;
|
||||
|
||||
private EnumNotetype(String literal) {
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return getSchema().getCatalog();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Note.NOTE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "enum_notetype";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLiteral() {
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a value of this EnumType by its literal. Returns
|
||||
* <code>null</code>, if no such value could be found, see {@link
|
||||
* EnumType#lookupLiteral(Class, String)}.
|
||||
*/
|
||||
public static EnumNotetype lookupLiteral(String literal) {
|
||||
return EnumType.lookupLiteral(EnumNotetype.class, literal);
|
||||
}
|
||||
}
|
||||
252
src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java
Normal file
252
src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java
Normal file
@@ -0,0 +1,252 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.Keys;
|
||||
import de.jottyfan.timetrack.db.note.Note;
|
||||
import de.jottyfan.timetrack.db.note.enums.EnumCategory;
|
||||
import de.jottyfan.timetrack.db.note.enums.EnumNotetype;
|
||||
import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TNote extends TableImpl<TNoteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>note.t_note</code>
|
||||
*/
|
||||
public static final TNote T_NOTE = new TNote();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TNoteRecord> getRecordType() {
|
||||
return TNoteRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.pk</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.title</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, String> TITLE = createField(DSL.name("title"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.category</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, EnumCategory> CATEGORY = createField(DSL.name("category"), SQLDataType.VARCHAR.asEnumDataType(EnumCategory.class), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.notetype</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, EnumNotetype> NOTETYPE = createField(DSL.name("notetype"), SQLDataType.VARCHAR.asEnumDataType(EnumNotetype.class), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.content</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, String> CONTENT = createField(DSL.name("content"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>note.t_note.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TNoteRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
private TNote(Name alias, Table<TNoteRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TNote(Name alias, Table<TNoteRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>note.t_note</code> table reference
|
||||
*/
|
||||
public TNote(String alias) {
|
||||
this(DSL.name(alias), T_NOTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>note.t_note</code> table reference
|
||||
*/
|
||||
public TNote(Name alias) {
|
||||
this(alias, T_NOTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>note.t_note</code> table reference
|
||||
*/
|
||||
public TNote() {
|
||||
this(DSL.name("t_note"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Note.NOTE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TNoteRecord, Integer> getIdentity() {
|
||||
return (Identity<TNoteRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TNoteRecord> getPrimaryKey() {
|
||||
return Keys.T_NOTE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TNote as(String alias) {
|
||||
return new TNote(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TNote as(Name alias) {
|
||||
return new TNote(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TNote as(Table<?> alias) {
|
||||
return new TNote(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TNote rename(String name) {
|
||||
return new TNote(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TNote rename(Name name) {
|
||||
return new TNote(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TNote rename(Table<?> name) {
|
||||
return new TNote(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote where(Condition condition) {
|
||||
return new TNote(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TNote where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TNote where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TNote where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TNote where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TNote whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.note.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.note.enums.EnumCategory;
|
||||
import de.jottyfan.timetrack.db.note.enums.EnumNotetype;
|
||||
import de.jottyfan.timetrack.db.note.tables.TNote;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TNoteRecord extends UpdatableRecordImpl<TNoteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.title</code>.
|
||||
*/
|
||||
public void setTitle(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.title</code>.
|
||||
*/
|
||||
public String getTitle() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.category</code>.
|
||||
*/
|
||||
public void setCategory(EnumCategory value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.category</code>.
|
||||
*/
|
||||
public EnumCategory getCategory() {
|
||||
return (EnumCategory) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.notetype</code>.
|
||||
*/
|
||||
public void setNotetype(EnumNotetype value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.notetype</code>.
|
||||
*/
|
||||
public EnumNotetype getNotetype() {
|
||||
return (EnumNotetype) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.content</code>.
|
||||
*/
|
||||
public void setContent(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.content</code>.
|
||||
*/
|
||||
public String getContent() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>note.t_note.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>note.t_note.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TNoteRecord
|
||||
*/
|
||||
public TNoteRecord() {
|
||||
super(TNote.T_NOTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TNoteRecord
|
||||
*/
|
||||
public TNoteRecord(Integer pk, String title, EnumCategory category, EnumNotetype notetype, String content, LocalDateTime lastchange) {
|
||||
super(TNote.T_NOTE);
|
||||
|
||||
setPk(pk);
|
||||
setTitle(title);
|
||||
setCategory(category);
|
||||
setNotetype(notetype);
|
||||
setContent(content);
|
||||
setLastchange(lastchange);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
41
src/main/java/de/jottyfan/timetrack/db/profile/Keys.java
Normal file
41
src/main/java/de/jottyfan/timetrack/db/profile/Keys.java
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLogin;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLoginrole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TProfile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TRole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TLoginRecord;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TLoginroleRecord;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TProfileRecord;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TRoleRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.Internal;
|
||||
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* profile.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TLoginRecord> T_LOGIN_LOGIN_KEY = Internal.createUniqueKey(TLogin.T_LOGIN, DSL.name("t_login_login_key"), new TableField[] { TLogin.T_LOGIN.LOGIN }, true);
|
||||
public static final UniqueKey<TLoginRecord> T_LOGIN_PKEY = Internal.createUniqueKey(TLogin.T_LOGIN, DSL.name("t_login_pkey"), new TableField[] { TLogin.T_LOGIN.PK }, true);
|
||||
public static final UniqueKey<TLoginroleRecord> T_LOGINROLE_FK_LOGIN_FK_ROLE_KEY = Internal.createUniqueKey(TLoginrole.T_LOGINROLE, DSL.name("t_loginrole_fk_login_fk_role_key"), new TableField[] { TLoginrole.T_LOGINROLE.FK_LOGIN, TLoginrole.T_LOGINROLE.FK_ROLE }, true);
|
||||
public static final UniqueKey<TLoginroleRecord> T_LOGINROLE_PKEY = Internal.createUniqueKey(TLoginrole.T_LOGINROLE, DSL.name("t_loginrole_pkey"), new TableField[] { TLoginrole.T_LOGINROLE.PK }, true);
|
||||
public static final UniqueKey<TProfileRecord> T_PROFILE_PKEY = Internal.createUniqueKey(TProfile.T_PROFILE, DSL.name("t_profile_pkey"), new TableField[] { TProfile.T_PROFILE.PK_PROFILE }, true);
|
||||
public static final UniqueKey<TProfileRecord> T_PROFILE_USERNAME_KEY = Internal.createUniqueKey(TProfile.T_PROFILE, DSL.name("t_profile_username_key"), new TableField[] { TProfile.T_PROFILE.USERNAME }, true);
|
||||
public static final UniqueKey<TRoleRecord> T_ROLE_NAME_KEY = Internal.createUniqueKey(TRole.T_ROLE, DSL.name("t_role_name_key"), new TableField[] { TRole.T_ROLE.NAME }, true);
|
||||
public static final UniqueKey<TRoleRecord> T_ROLE_PKEY = Internal.createUniqueKey(TRole.T_ROLE, DSL.name("t_role_pkey"), new TableField[] { TRole.T_ROLE.PK }, true);
|
||||
}
|
||||
83
src/main/java/de/jottyfan/timetrack/db/profile/Profile.java
Normal file
83
src/main/java/de/jottyfan/timetrack/db/profile/Profile.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.DefaultCatalog;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLogin;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLoginrole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TProfile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TRole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.VLoginrole;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Profile extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile</code>
|
||||
*/
|
||||
public static final Profile PROFILE = new Profile();
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_login</code>.
|
||||
*/
|
||||
public final TLogin T_LOGIN = TLogin.T_LOGIN;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_loginrole</code>.
|
||||
*/
|
||||
public final TLoginrole T_LOGINROLE = TLoginrole.T_LOGINROLE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_profile</code>.
|
||||
*/
|
||||
public final TProfile T_PROFILE = TProfile.T_PROFILE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_role</code>.
|
||||
*/
|
||||
public final TRole T_ROLE = TRole.T_ROLE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.v_loginrole</code>.
|
||||
*/
|
||||
public final VLoginrole V_LOGINROLE = VLoginrole.V_LOGINROLE;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Profile() {
|
||||
super("profile", null);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TLogin.T_LOGIN,
|
||||
TLoginrole.T_LOGINROLE,
|
||||
TProfile.T_PROFILE,
|
||||
TRole.T_ROLE,
|
||||
VLoginrole.V_LOGINROLE
|
||||
);
|
||||
}
|
||||
}
|
||||
44
src/main/java/de/jottyfan/timetrack/db/profile/Tables.java
Normal file
44
src/main/java/de/jottyfan/timetrack/db/profile/Tables.java
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLogin;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLoginrole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TProfile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.TRole;
|
||||
import de.jottyfan.timetrack.db.profile.tables.VLoginrole;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in profile.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_login</code>.
|
||||
*/
|
||||
public static final TLogin T_LOGIN = TLogin.T_LOGIN;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_loginrole</code>.
|
||||
*/
|
||||
public static final TLoginrole T_LOGINROLE = TLoginrole.T_LOGINROLE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_profile</code>.
|
||||
*/
|
||||
public static final TProfile T_PROFILE = TProfile.T_PROFILE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.t_role</code>.
|
||||
*/
|
||||
public static final TRole T_ROLE = TRole.T_ROLE;
|
||||
|
||||
/**
|
||||
* The table <code>profile.v_loginrole</code>.
|
||||
*/
|
||||
public static final VLoginrole V_LOGINROLE = VLoginrole.V_LOGINROLE;
|
||||
}
|
||||
@@ -0,0 +1,262 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.Keys;
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TLoginRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TLogin extends TableImpl<TLoginRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile.t_login</code>
|
||||
*/
|
||||
public static final TLogin T_LOGIN = new TLogin();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TLoginRecord> getRecordType() {
|
||||
return TLoginRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.pk</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.login</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.forename</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.surname</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.duedate</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, LocalDateTime> DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_login.password</code>.
|
||||
*/
|
||||
public final TableField<TLoginRecord, String> PASSWORD = createField(DSL.name("password"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
private TLogin(Name alias, Table<TLoginRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TLogin(Name alias, Table<TLoginRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_login</code> table reference
|
||||
*/
|
||||
public TLogin(String alias) {
|
||||
this(DSL.name(alias), T_LOGIN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_login</code> table reference
|
||||
*/
|
||||
public TLogin(Name alias) {
|
||||
this(alias, T_LOGIN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>profile.t_login</code> table reference
|
||||
*/
|
||||
public TLogin() {
|
||||
this(DSL.name("t_login"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Profile.PROFILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TLoginRecord, Integer> getIdentity() {
|
||||
return (Identity<TLoginRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TLoginRecord> getPrimaryKey() {
|
||||
return Keys.T_LOGIN_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TLoginRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_LOGIN_LOGIN_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLogin as(String alias) {
|
||||
return new TLogin(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLogin as(Name alias) {
|
||||
return new TLogin(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLogin as(Table<?> alias) {
|
||||
return new TLogin(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin rename(String name) {
|
||||
return new TLogin(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin rename(Name name) {
|
||||
return new TLogin(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin rename(Table<?> name) {
|
||||
return new TLogin(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin where(Condition condition) {
|
||||
return new TLogin(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLogin where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLogin where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLogin where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLogin where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLogin whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.Keys;
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TLoginroleRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TLoginrole extends TableImpl<TLoginroleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile.t_loginrole</code>
|
||||
*/
|
||||
public static final TLoginrole T_LOGINROLE = new TLoginrole();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TLoginroleRecord> getRecordType() {
|
||||
return TLoginroleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_loginrole.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TLoginroleRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_loginrole.pk</code>.
|
||||
*/
|
||||
public final TableField<TLoginroleRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_loginrole.fk_login</code>.
|
||||
*/
|
||||
public final TableField<TLoginroleRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_loginrole.fk_role</code>.
|
||||
*/
|
||||
public final TableField<TLoginroleRecord, Integer> FK_ROLE = createField(DSL.name("fk_role"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
private TLoginrole(Name alias, Table<TLoginroleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TLoginrole(Name alias, Table<TLoginroleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_loginrole</code> table reference
|
||||
*/
|
||||
public TLoginrole(String alias) {
|
||||
this(DSL.name(alias), T_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_loginrole</code> table reference
|
||||
*/
|
||||
public TLoginrole(Name alias) {
|
||||
this(alias, T_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>profile.t_loginrole</code> table reference
|
||||
*/
|
||||
public TLoginrole() {
|
||||
this(DSL.name("t_loginrole"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Profile.PROFILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TLoginroleRecord, Integer> getIdentity() {
|
||||
return (Identity<TLoginroleRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TLoginroleRecord> getPrimaryKey() {
|
||||
return Keys.T_LOGINROLE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TLoginroleRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_LOGINROLE_FK_LOGIN_FK_ROLE_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLoginrole as(String alias) {
|
||||
return new TLoginrole(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLoginrole as(Name alias) {
|
||||
return new TLoginrole(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TLoginrole as(Table<?> alias) {
|
||||
return new TLoginrole(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole rename(String name) {
|
||||
return new TLoginrole(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole rename(Name name) {
|
||||
return new TLoginrole(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole rename(Table<?> name) {
|
||||
return new TLoginrole(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole where(Condition condition) {
|
||||
return new TLoginrole(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLoginrole where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLoginrole where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLoginrole where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TLoginrole where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TLoginrole whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.Keys;
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TProfileRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TProfile extends TableImpl<TProfileRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile.t_profile</code>
|
||||
*/
|
||||
public static final TProfile T_PROFILE = new TProfile();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TProfileRecord> getRecordType() {
|
||||
return TProfileRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_profile.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TProfileRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_profile.pk_profile</code>.
|
||||
*/
|
||||
public final TableField<TProfileRecord, Integer> PK_PROFILE = createField(DSL.name("pk_profile"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_profile.username</code>.
|
||||
*/
|
||||
public final TableField<TProfileRecord, String> USERNAME = createField(DSL.name("username"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_profile.theme</code>.
|
||||
*/
|
||||
public final TableField<TProfileRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.nullable(false).defaultValue(DSL.field(DSL.raw("'light'::text"), SQLDataType.CLOB)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_profile.dynamic_css</code>.
|
||||
*/
|
||||
public final TableField<TProfileRecord, String> DYNAMIC_CSS = createField(DSL.name("dynamic_css"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TProfile(Name alias, Table<TProfileRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TProfile(Name alias, Table<TProfileRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_profile</code> table reference
|
||||
*/
|
||||
public TProfile(String alias) {
|
||||
this(DSL.name(alias), T_PROFILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_profile</code> table reference
|
||||
*/
|
||||
public TProfile(Name alias) {
|
||||
this(alias, T_PROFILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>profile.t_profile</code> table reference
|
||||
*/
|
||||
public TProfile() {
|
||||
this(DSL.name("t_profile"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Profile.PROFILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TProfileRecord, Integer> getIdentity() {
|
||||
return (Identity<TProfileRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TProfileRecord> getPrimaryKey() {
|
||||
return Keys.T_PROFILE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TProfileRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_PROFILE_USERNAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProfile as(String alias) {
|
||||
return new TProfile(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProfile as(Name alias) {
|
||||
return new TProfile(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProfile as(Table<?> alias) {
|
||||
return new TProfile(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile rename(String name) {
|
||||
return new TProfile(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile rename(Name name) {
|
||||
return new TProfile(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile rename(Table<?> name) {
|
||||
return new TProfile(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile where(Condition condition) {
|
||||
return new TProfile(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProfile where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProfile where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProfile where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProfile where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProfile whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
242
src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java
Normal file
242
src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java
Normal file
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.Keys;
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.TRoleRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TRole extends TableImpl<TRoleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile.t_role</code>
|
||||
*/
|
||||
public static final TRole T_ROLE = new TRole();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TRoleRecord> getRecordType() {
|
||||
return TRoleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_role.lastchange</code>.
|
||||
*/
|
||||
public final TableField<TRoleRecord, LocalDateTime> LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_role.pk</code>.
|
||||
*/
|
||||
public final TableField<TRoleRecord, Integer> PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.t_role.name</code>.
|
||||
*/
|
||||
public final TableField<TRoleRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
private TRole(Name alias, Table<TRoleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TRole(Name alias, Table<TRoleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_role</code> table reference
|
||||
*/
|
||||
public TRole(String alias) {
|
||||
this(DSL.name(alias), T_ROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.t_role</code> table reference
|
||||
*/
|
||||
public TRole(Name alias) {
|
||||
this(alias, T_ROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>profile.t_role</code> table reference
|
||||
*/
|
||||
public TRole() {
|
||||
this(DSL.name("t_role"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Profile.PROFILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TRoleRecord, Integer> getIdentity() {
|
||||
return (Identity<TRoleRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TRoleRecord> getPrimaryKey() {
|
||||
return Keys.T_ROLE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TRoleRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_ROLE_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRole as(String alias) {
|
||||
return new TRole(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRole as(Name alias) {
|
||||
return new TRole(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRole as(Table<?> alias) {
|
||||
return new TRole(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRole rename(String name) {
|
||||
return new TRole(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRole rename(Name name) {
|
||||
return new TRole(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TRole rename(Table<?> name) {
|
||||
return new TRole(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole where(Condition condition) {
|
||||
return new TRole(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRole where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRole where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRole where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TRole where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TRole whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.Profile;
|
||||
import de.jottyfan.timetrack.db.profile.tables.records.VLoginroleRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VLoginrole extends TableImpl<VLoginroleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>profile.v_loginrole</code>
|
||||
*/
|
||||
public static final VLoginrole V_LOGINROLE = new VLoginrole();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VLoginroleRecord> getRecordType() {
|
||||
return VLoginroleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>profile.v_loginrole.login</code>.
|
||||
*/
|
||||
public final TableField<VLoginroleRecord, String> LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.v_loginrole.forename</code>.
|
||||
*/
|
||||
public final TableField<VLoginroleRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.v_loginrole.surname</code>.
|
||||
*/
|
||||
public final TableField<VLoginroleRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.v_loginrole.duedate</code>.
|
||||
*/
|
||||
public final TableField<VLoginroleRecord, LocalDateTime> DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>profile.v_loginrole.role_name</code>.
|
||||
*/
|
||||
public final TableField<VLoginroleRecord, String> ROLE_NAME = createField(DSL.name("role_name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private VLoginrole(Name alias, Table<VLoginroleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VLoginrole(Name alias, Table<VLoginroleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_loginrole" as SELECT l.login,
|
||||
l.forename,
|
||||
l.surname,
|
||||
l.duedate,
|
||||
r.name AS role_name
|
||||
FROM ((profile.t_loginrole
|
||||
LEFT JOIN profile.t_login l ON ((l.pk = t_loginrole.fk_login)))
|
||||
LEFT JOIN profile.t_role r ON ((r.pk = t_loginrole.fk_role)));
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.v_loginrole</code> table reference
|
||||
*/
|
||||
public VLoginrole(String alias) {
|
||||
this(DSL.name(alias), V_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>profile.v_loginrole</code> table reference
|
||||
*/
|
||||
public VLoginrole(Name alias) {
|
||||
this(alias, V_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>profile.v_loginrole</code> table reference
|
||||
*/
|
||||
public VLoginrole() {
|
||||
this(DSL.name("v_loginrole"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Profile.PROFILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VLoginrole as(String alias) {
|
||||
return new VLoginrole(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VLoginrole as(Name alias) {
|
||||
return new VLoginrole(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VLoginrole as(Table<?> alias) {
|
||||
return new VLoginrole(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole rename(String name) {
|
||||
return new VLoginrole(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole rename(Name name) {
|
||||
return new VLoginrole(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole rename(Table<?> name) {
|
||||
return new VLoginrole(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole where(Condition condition) {
|
||||
return new VLoginrole(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VLoginrole where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VLoginrole where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VLoginrole where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VLoginrole where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VLoginrole whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLogin;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TLoginRecord extends UpdatableRecordImpl<TLoginRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.forename</code>.
|
||||
*/
|
||||
public void setForename(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.forename</code>.
|
||||
*/
|
||||
public String getForename() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.surname</code>.
|
||||
*/
|
||||
public void setSurname(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.surname</code>.
|
||||
*/
|
||||
public String getSurname() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.duedate</code>.
|
||||
*/
|
||||
public void setDuedate(LocalDateTime value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.duedate</code>.
|
||||
*/
|
||||
public LocalDateTime getDuedate() {
|
||||
return (LocalDateTime) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_login.password</code>.
|
||||
*/
|
||||
public void setPassword(String value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_login.password</code>.
|
||||
*/
|
||||
public String getPassword() {
|
||||
return (String) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TLoginRecord
|
||||
*/
|
||||
public TLoginRecord() {
|
||||
super(TLogin.T_LOGIN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TLoginRecord
|
||||
*/
|
||||
public TLoginRecord(LocalDateTime lastchange, Integer pk, String login, String forename, String surname, LocalDateTime duedate, String password) {
|
||||
super(TLogin.T_LOGIN);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setLogin(login);
|
||||
setForename(forename);
|
||||
setSurname(surname);
|
||||
setDuedate(duedate);
|
||||
setPassword(password);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TLoginrole;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TLoginroleRecord extends UpdatableRecordImpl<TLoginroleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_loginrole.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_loginrole.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_loginrole.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_loginrole.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_loginrole.fk_login</code>.
|
||||
*/
|
||||
public void setFkLogin(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_loginrole.fk_login</code>.
|
||||
*/
|
||||
public Integer getFkLogin() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_loginrole.fk_role</code>.
|
||||
*/
|
||||
public void setFkRole(Integer value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_loginrole.fk_role</code>.
|
||||
*/
|
||||
public Integer getFkRole() {
|
||||
return (Integer) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TLoginroleRecord
|
||||
*/
|
||||
public TLoginroleRecord() {
|
||||
super(TLoginrole.T_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TLoginroleRecord
|
||||
*/
|
||||
public TLoginroleRecord(LocalDateTime lastchange, Integer pk, Integer fkLogin, Integer fkRole) {
|
||||
super(TLoginrole.T_LOGINROLE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setFkLogin(fkLogin);
|
||||
setFkRole(fkRole);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TProfile;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TProfileRecord extends UpdatableRecordImpl<TProfileRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_profile.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_profile.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_profile.pk_profile</code>.
|
||||
*/
|
||||
public void setPkProfile(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_profile.pk_profile</code>.
|
||||
*/
|
||||
public Integer getPkProfile() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_profile.username</code>.
|
||||
*/
|
||||
public void setUsername(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_profile.username</code>.
|
||||
*/
|
||||
public String getUsername() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_profile.theme</code>.
|
||||
*/
|
||||
public void setTheme(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_profile.theme</code>.
|
||||
*/
|
||||
public String getTheme() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_profile.dynamic_css</code>.
|
||||
*/
|
||||
public void setDynamicCss(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_profile.dynamic_css</code>.
|
||||
*/
|
||||
public String getDynamicCss() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TProfileRecord
|
||||
*/
|
||||
public TProfileRecord() {
|
||||
super(TProfile.T_PROFILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TProfileRecord
|
||||
*/
|
||||
public TProfileRecord(LocalDateTime lastchange, Integer pkProfile, String username, String theme, String dynamicCss) {
|
||||
super(TProfile.T_PROFILE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPkProfile(pkProfile);
|
||||
setUsername(username);
|
||||
setTheme(theme);
|
||||
setDynamicCss(dynamicCss);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.TRole;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TRoleRecord extends UpdatableRecordImpl<TRoleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_role.lastchange</code>.
|
||||
*/
|
||||
public void setLastchange(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_role.lastchange</code>.
|
||||
*/
|
||||
public LocalDateTime getLastchange() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_role.pk</code>.
|
||||
*/
|
||||
public void setPk(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_role.pk</code>.
|
||||
*/
|
||||
public Integer getPk() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.t_role.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.t_role.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TRoleRecord
|
||||
*/
|
||||
public TRoleRecord() {
|
||||
super(TRole.T_ROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TRoleRecord
|
||||
*/
|
||||
public TRoleRecord(LocalDateTime lastchange, Integer pk, String name) {
|
||||
super(TRole.T_ROLE);
|
||||
|
||||
setLastchange(lastchange);
|
||||
setPk(pk);
|
||||
setName(name);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.profile.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.profile.tables.VLoginrole;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.impl.TableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class VLoginroleRecord extends TableRecordImpl<VLoginroleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.v_loginrole.login</code>.
|
||||
*/
|
||||
public void setLogin(String value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.v_loginrole.login</code>.
|
||||
*/
|
||||
public String getLogin() {
|
||||
return (String) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.v_loginrole.forename</code>.
|
||||
*/
|
||||
public void setForename(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.v_loginrole.forename</code>.
|
||||
*/
|
||||
public String getForename() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.v_loginrole.surname</code>.
|
||||
*/
|
||||
public void setSurname(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.v_loginrole.surname</code>.
|
||||
*/
|
||||
public String getSurname() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.v_loginrole.duedate</code>.
|
||||
*/
|
||||
public void setDuedate(LocalDateTime value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.v_loginrole.duedate</code>.
|
||||
*/
|
||||
public LocalDateTime getDuedate() {
|
||||
return (LocalDateTime) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>profile.v_loginrole.role_name</code>.
|
||||
*/
|
||||
public void setRoleName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>profile.v_loginrole.role_name</code>.
|
||||
*/
|
||||
public String getRoleName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached VLoginroleRecord
|
||||
*/
|
||||
public VLoginroleRecord() {
|
||||
super(VLoginrole.V_LOGINROLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised VLoginroleRecord
|
||||
*/
|
||||
public VLoginroleRecord(String login, String forename, String surname, LocalDateTime duedate, String roleName) {
|
||||
super(VLoginrole.V_LOGINROLE);
|
||||
|
||||
setLogin(login);
|
||||
setForename(forename);
|
||||
setSurname(surname);
|
||||
setDuedate(duedate);
|
||||
setRoleName(roleName);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
49
src/main/java/de/jottyfan/timetrack/db/project/Keys.java
Normal file
49
src/main/java/de/jottyfan/timetrack/db/project/Keys.java
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.tables.TApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.TBundle;
|
||||
import de.jottyfan.timetrack.db.project.tables.TFunder;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProgress;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackage;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackageApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TAppRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TBundleRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TFunderRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TProgressRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TProjectRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TWorkpackageAppRecord;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TWorkpackageRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.Internal;
|
||||
|
||||
|
||||
/**
|
||||
* A class modelling foreign key relationships and constraints of tables in
|
||||
* project.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TAppRecord> T_APP_PKEY = Internal.createUniqueKey(TApp.T_APP, DSL.name("t_app_pkey"), new TableField[] { TApp.T_APP.PK_APP }, true);
|
||||
public static final UniqueKey<TBundleRecord> T_BUNDLE_NAME_KEY = Internal.createUniqueKey(TBundle.T_BUNDLE, DSL.name("t_bundle_name_key"), new TableField[] { TBundle.T_BUNDLE.NAME }, true);
|
||||
public static final UniqueKey<TBundleRecord> T_BUNDLE_PKEY = Internal.createUniqueKey(TBundle.T_BUNDLE, DSL.name("t_bundle_pkey"), new TableField[] { TBundle.T_BUNDLE.PK_BUNDLE }, true);
|
||||
public static final UniqueKey<TFunderRecord> T_FUNDER_NAME_KEY = Internal.createUniqueKey(TFunder.T_FUNDER, DSL.name("t_funder_name_key"), new TableField[] { TFunder.T_FUNDER.NAME }, true);
|
||||
public static final UniqueKey<TFunderRecord> T_FUNDER_PKEY = Internal.createUniqueKey(TFunder.T_FUNDER, DSL.name("t_funder_pkey"), new TableField[] { TFunder.T_FUNDER.PK_FUNDER }, true);
|
||||
public static final UniqueKey<TProgressRecord> T_PROGRESS_PKEY = Internal.createUniqueKey(TProgress.T_PROGRESS, DSL.name("t_progress_pkey"), new TableField[] { TProgress.T_PROGRESS.PK_PROGRESS }, true);
|
||||
public static final UniqueKey<TProjectRecord> T_PROJECT_PKEY = Internal.createUniqueKey(TProject.T_PROJECT, DSL.name("t_project_pkey"), new TableField[] { TProject.T_PROJECT.PK_PROJECT }, true);
|
||||
public static final UniqueKey<TWorkpackageRecord> T_WORKPACKAGE_PKEY = Internal.createUniqueKey(TWorkpackage.T_WORKPACKAGE, DSL.name("t_workpackage_pkey"), new TableField[] { TWorkpackage.T_WORKPACKAGE.PK_WORKPACKAGE }, true);
|
||||
public static final UniqueKey<TWorkpackageAppRecord> T_WORKPACKAGE_APP_FK_WORKPACKAGE_FK_APP_KEY = Internal.createUniqueKey(TWorkpackageApp.T_WORKPACKAGE_APP, DSL.name("t_workpackage_app_fk_workpackage_fk_app_key"), new TableField[] { TWorkpackageApp.T_WORKPACKAGE_APP.FK_WORKPACKAGE, TWorkpackageApp.T_WORKPACKAGE_APP.FK_APP }, true);
|
||||
public static final UniqueKey<TWorkpackageAppRecord> T_WORKPACKAGE_APP_PKEY = Internal.createUniqueKey(TWorkpackageApp.T_WORKPACKAGE_APP, DSL.name("t_workpackage_app_pkey"), new TableField[] { TWorkpackageApp.T_WORKPACKAGE_APP.PK_WORKPACKAGE_APP }, true);
|
||||
}
|
||||
104
src/main/java/de/jottyfan/timetrack/db/project/Project.java
Normal file
104
src/main/java/de/jottyfan/timetrack/db/project/Project.java
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.DefaultCatalog;
|
||||
import de.jottyfan.timetrack.db.project.tables.TApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.TBundle;
|
||||
import de.jottyfan.timetrack.db.project.tables.TFunder;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProgress;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackage;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackageApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.VBundleApps;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.impl.SchemaImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Project extends SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project</code>
|
||||
*/
|
||||
public static final Project PROJECT = new Project();
|
||||
|
||||
/**
|
||||
* The table <code>project.t_app</code>.
|
||||
*/
|
||||
public final TApp T_APP = TApp.T_APP;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_bundle</code>.
|
||||
*/
|
||||
public final TBundle T_BUNDLE = TBundle.T_BUNDLE;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_funder</code>.
|
||||
*/
|
||||
public final TFunder T_FUNDER = TFunder.T_FUNDER;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_progress</code>.
|
||||
*/
|
||||
public final TProgress T_PROGRESS = TProgress.T_PROGRESS;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_project</code>.
|
||||
*/
|
||||
public final TProject T_PROJECT = TProject.T_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_workpackage</code>.
|
||||
*/
|
||||
public final TWorkpackage T_WORKPACKAGE = TWorkpackage.T_WORKPACKAGE;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_workpackage_app</code>.
|
||||
*/
|
||||
public final TWorkpackageApp T_WORKPACKAGE_APP = TWorkpackageApp.T_WORKPACKAGE_APP;
|
||||
|
||||
/**
|
||||
* The table <code>project.v_bundle_apps</code>.
|
||||
*/
|
||||
public final VBundleApps V_BUNDLE_APPS = VBundleApps.V_BUNDLE_APPS;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Project() {
|
||||
super("project", null);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return DefaultCatalog.DEFAULT_CATALOG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TApp.T_APP,
|
||||
TBundle.T_BUNDLE,
|
||||
TFunder.T_FUNDER,
|
||||
TProgress.T_PROGRESS,
|
||||
TProject.T_PROJECT,
|
||||
TWorkpackage.T_WORKPACKAGE,
|
||||
TWorkpackageApp.T_WORKPACKAGE_APP,
|
||||
VBundleApps.V_BUNDLE_APPS
|
||||
);
|
||||
}
|
||||
}
|
||||
62
src/main/java/de/jottyfan/timetrack/db/project/Tables.java
Normal file
62
src/main/java/de/jottyfan/timetrack/db/project/Tables.java
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.tables.TApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.TBundle;
|
||||
import de.jottyfan.timetrack.db.project.tables.TFunder;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProgress;
|
||||
import de.jottyfan.timetrack.db.project.tables.TProject;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackage;
|
||||
import de.jottyfan.timetrack.db.project.tables.TWorkpackageApp;
|
||||
import de.jottyfan.timetrack.db.project.tables.VBundleApps;
|
||||
|
||||
|
||||
/**
|
||||
* Convenience access to all tables in project.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>project.t_app</code>.
|
||||
*/
|
||||
public static final TApp T_APP = TApp.T_APP;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_bundle</code>.
|
||||
*/
|
||||
public static final TBundle T_BUNDLE = TBundle.T_BUNDLE;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_funder</code>.
|
||||
*/
|
||||
public static final TFunder T_FUNDER = TFunder.T_FUNDER;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_progress</code>.
|
||||
*/
|
||||
public static final TProgress T_PROGRESS = TProgress.T_PROGRESS;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_project</code>.
|
||||
*/
|
||||
public static final TProject T_PROJECT = TProject.T_PROJECT;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_workpackage</code>.
|
||||
*/
|
||||
public static final TWorkpackage T_WORKPACKAGE = TWorkpackage.T_WORKPACKAGE;
|
||||
|
||||
/**
|
||||
* The table <code>project.t_workpackage_app</code>.
|
||||
*/
|
||||
public static final TWorkpackageApp T_WORKPACKAGE_APP = TWorkpackageApp.T_WORKPACKAGE_APP;
|
||||
|
||||
/**
|
||||
* The table <code>project.v_bundle_apps</code>.
|
||||
*/
|
||||
public static final VBundleApps V_BUNDLE_APPS = VBundleApps.V_BUNDLE_APPS;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.enums;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
|
||||
import org.jooq.Catalog;
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Schema;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public enum EnumPhase implements EnumType {
|
||||
|
||||
concept("concept"),
|
||||
|
||||
development("development"),
|
||||
|
||||
test("test"),
|
||||
|
||||
postponed("postponed");
|
||||
|
||||
private final String literal;
|
||||
|
||||
private EnumPhase(String literal) {
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Catalog getCatalog() {
|
||||
return getSchema().getCatalog();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "enum_phase";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLiteral() {
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a value of this EnumType by its literal. Returns
|
||||
* <code>null</code>, if no such value could be found, see {@link
|
||||
* EnumType#lookupLiteral(Class, String)}.
|
||||
*/
|
||||
public static EnumPhase lookupLiteral(String literal) {
|
||||
return EnumType.lookupLiteral(EnumPhase.class, literal);
|
||||
}
|
||||
}
|
||||
260
src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java
Normal file
260
src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java
Normal file
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TAppRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TApp extends TableImpl<TAppRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_app</code>
|
||||
*/
|
||||
public static final TApp T_APP = new TApp();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TAppRecord> getRecordType() {
|
||||
return TAppRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.created</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.pk_app</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, Integer> PK_APP = createField(DSL.name("pk_app"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.fk_bundle</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, Integer> FK_BUNDLE = createField(DSL.name("fk_bundle"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.basic_functionality</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, String> BASIC_FUNCTIONALITY = createField(DSL.name("basic_functionality"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.name</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.description</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.fk_replaced_by_app</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, Integer> FK_REPLACED_BY_APP = createField(DSL.name("fk_replaced_by_app"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_app.repository_url</code>.
|
||||
*/
|
||||
public final TableField<TAppRecord, String> REPOSITORY_URL = createField(DSL.name("repository_url"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TApp(Name alias, Table<TAppRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TApp(Name alias, Table<TAppRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_app</code> table reference
|
||||
*/
|
||||
public TApp(String alias) {
|
||||
this(DSL.name(alias), T_APP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_app</code> table reference
|
||||
*/
|
||||
public TApp(Name alias) {
|
||||
this(alias, T_APP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_app</code> table reference
|
||||
*/
|
||||
public TApp() {
|
||||
this(DSL.name("t_app"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TAppRecord, Integer> getIdentity() {
|
||||
return (Identity<TAppRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TAppRecord> getPrimaryKey() {
|
||||
return Keys.T_APP_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TApp as(String alias) {
|
||||
return new TApp(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TApp as(Name alias) {
|
||||
return new TApp(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TApp as(Table<?> alias) {
|
||||
return new TApp(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TApp rename(String name) {
|
||||
return new TApp(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TApp rename(Name name) {
|
||||
return new TApp(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TApp rename(Table<?> name) {
|
||||
return new TApp(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp where(Condition condition) {
|
||||
return new TApp(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TApp where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TApp where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TApp where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TApp where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TApp whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TBundleRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TBundle extends TableImpl<TBundleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_bundle</code>
|
||||
*/
|
||||
public static final TBundle T_BUNDLE = new TBundle();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TBundleRecord> getRecordType() {
|
||||
return TBundleRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_bundle.created</code>.
|
||||
*/
|
||||
public final TableField<TBundleRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_bundle.pk_bundle</code>.
|
||||
*/
|
||||
public final TableField<TBundleRecord, Integer> PK_BUNDLE = createField(DSL.name("pk_bundle"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_bundle.name</code>.
|
||||
*/
|
||||
public final TableField<TBundleRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_bundle.description</code>.
|
||||
*/
|
||||
public final TableField<TBundleRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TBundle(Name alias, Table<TBundleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TBundle(Name alias, Table<TBundleRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_bundle</code> table reference
|
||||
*/
|
||||
public TBundle(String alias) {
|
||||
this(DSL.name(alias), T_BUNDLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_bundle</code> table reference
|
||||
*/
|
||||
public TBundle(Name alias) {
|
||||
this(alias, T_BUNDLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_bundle</code> table reference
|
||||
*/
|
||||
public TBundle() {
|
||||
this(DSL.name("t_bundle"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TBundleRecord, Integer> getIdentity() {
|
||||
return (Identity<TBundleRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TBundleRecord> getPrimaryKey() {
|
||||
return Keys.T_BUNDLE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TBundleRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_BUNDLE_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBundle as(String alias) {
|
||||
return new TBundle(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBundle as(Name alias) {
|
||||
return new TBundle(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TBundle as(Table<?> alias) {
|
||||
return new TBundle(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle rename(String name) {
|
||||
return new TBundle(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle rename(Name name) {
|
||||
return new TBundle(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle rename(Table<?> name) {
|
||||
return new TBundle(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle where(Condition condition) {
|
||||
return new TBundle(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBundle where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBundle where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBundle where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TBundle where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TBundle whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TFunderRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TFunder extends TableImpl<TFunderRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_funder</code>
|
||||
*/
|
||||
public static final TFunder T_FUNDER = new TFunder();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TFunderRecord> getRecordType() {
|
||||
return TFunderRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_funder.created</code>.
|
||||
*/
|
||||
public final TableField<TFunderRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_funder.pk_funder</code>.
|
||||
*/
|
||||
public final TableField<TFunderRecord, Integer> PK_FUNDER = createField(DSL.name("pk_funder"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_funder.name</code>.
|
||||
*/
|
||||
public final TableField<TFunderRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_funder.description</code>.
|
||||
*/
|
||||
public final TableField<TFunderRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private TFunder(Name alias, Table<TFunderRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TFunder(Name alias, Table<TFunderRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_funder</code> table reference
|
||||
*/
|
||||
public TFunder(String alias) {
|
||||
this(DSL.name(alias), T_FUNDER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_funder</code> table reference
|
||||
*/
|
||||
public TFunder(Name alias) {
|
||||
this(alias, T_FUNDER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_funder</code> table reference
|
||||
*/
|
||||
public TFunder() {
|
||||
this(DSL.name("t_funder"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TFunderRecord, Integer> getIdentity() {
|
||||
return (Identity<TFunderRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TFunderRecord> getPrimaryKey() {
|
||||
return Keys.T_FUNDER_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TFunderRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_FUNDER_NAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFunder as(String alias) {
|
||||
return new TFunder(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFunder as(Name alias) {
|
||||
return new TFunder(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TFunder as(Table<?> alias) {
|
||||
return new TFunder(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder rename(String name) {
|
||||
return new TFunder(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder rename(Name name) {
|
||||
return new TFunder(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder rename(Table<?> name) {
|
||||
return new TFunder(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder where(Condition condition) {
|
||||
return new TFunder(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFunder where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFunder where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFunder where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TFunder where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TFunder whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.enums.EnumPhase;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TProgressRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TProgress extends TableImpl<TProgressRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_progress</code>
|
||||
*/
|
||||
public static final TProgress T_PROGRESS = new TProgress();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TProgressRecord> getRecordType() {
|
||||
return TProgressRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_progress.created</code>.
|
||||
*/
|
||||
public final TableField<TProgressRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_progress.pk_progress</code>.
|
||||
*/
|
||||
public final TableField<TProgressRecord, Integer> PK_PROGRESS = createField(DSL.name("pk_progress"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_progress.progress</code>.
|
||||
*/
|
||||
public final TableField<TProgressRecord, Byte> PROGRESS = createField(DSL.name("progress"), SQLDataType.TINYINT.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_progress.phase</code>.
|
||||
*/
|
||||
public final TableField<TProgressRecord, EnumPhase> PHASE = createField(DSL.name("phase"), SQLDataType.VARCHAR.asEnumDataType(EnumPhase.class), this, "");
|
||||
|
||||
private TProgress(Name alias, Table<TProgressRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TProgress(Name alias, Table<TProgressRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_progress</code> table reference
|
||||
*/
|
||||
public TProgress(String alias) {
|
||||
this(DSL.name(alias), T_PROGRESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_progress</code> table reference
|
||||
*/
|
||||
public TProgress(Name alias) {
|
||||
this(alias, T_PROGRESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_progress</code> table reference
|
||||
*/
|
||||
public TProgress() {
|
||||
this(DSL.name("t_progress"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TProgressRecord, Integer> getIdentity() {
|
||||
return (Identity<TProgressRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TProgressRecord> getPrimaryKey() {
|
||||
return Keys.T_PROGRESS_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProgress as(String alias) {
|
||||
return new TProgress(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProgress as(Name alias) {
|
||||
return new TProgress(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProgress as(Table<?> alias) {
|
||||
return new TProgress(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress rename(String name) {
|
||||
return new TProgress(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress rename(Name name) {
|
||||
return new TProgress(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress rename(Table<?> name) {
|
||||
return new TProgress(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress where(Condition condition) {
|
||||
return new TProgress(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProgress where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProgress where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProgress where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProgress where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProgress whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TProjectRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TProject extends TableImpl<TProjectRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_project</code>
|
||||
*/
|
||||
public static final TProject T_PROJECT = new TProject();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TProjectRecord> getRecordType() {
|
||||
return TProjectRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_project.created</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_project.pk_project</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, Integer> PK_PROJECT = createField(DSL.name("pk_project"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_project.name</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_project.description</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_project.fk_funder</code>.
|
||||
*/
|
||||
public final TableField<TProjectRecord, Integer> FK_FUNDER = createField(DSL.name("fk_funder"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
private TProject(Name alias, Table<TProjectRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TProject(Name alias, Table<TProjectRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_project</code> table reference
|
||||
*/
|
||||
public TProject(String alias) {
|
||||
this(DSL.name(alias), T_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_project</code> table reference
|
||||
*/
|
||||
public TProject(Name alias) {
|
||||
this(alias, T_PROJECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_project</code> table reference
|
||||
*/
|
||||
public TProject() {
|
||||
this(DSL.name("t_project"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TProjectRecord, Integer> getIdentity() {
|
||||
return (Identity<TProjectRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TProjectRecord> getPrimaryKey() {
|
||||
return Keys.T_PROJECT_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(String alias) {
|
||||
return new TProject(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(Name alias) {
|
||||
return new TProject(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TProject as(Table<?> alias) {
|
||||
return new TProject(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(String name) {
|
||||
return new TProject(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(Name name) {
|
||||
return new TProject(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TProject rename(Table<?> name) {
|
||||
return new TProject(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Condition condition) {
|
||||
return new TProject(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TProject where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TProject whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TWorkpackageRecord;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TWorkpackage extends TableImpl<TWorkpackageRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_workpackage</code>
|
||||
*/
|
||||
public static final TWorkpackage T_WORKPACKAGE = new TWorkpackage();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TWorkpackageRecord> getRecordType() {
|
||||
return TWorkpackageRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.created</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.pk_workpackage</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, Integer> PK_WORKPACKAGE = createField(DSL.name("pk_workpackage"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.fk_project</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, Integer> FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.name</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.description</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.milestone_url</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, String> MILESTONE_URL = createField(DSL.name("milestone_url"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.contract_url</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, String> CONTRACT_URL = createField(DSL.name("contract_url"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage.planned_duedate</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageRecord, LocalDate> PLANNED_DUEDATE = createField(DSL.name("planned_duedate"), SQLDataType.LOCALDATE, this, "");
|
||||
|
||||
private TWorkpackage(Name alias, Table<TWorkpackageRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TWorkpackage(Name alias, Table<TWorkpackageRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_workpackage</code> table reference
|
||||
*/
|
||||
public TWorkpackage(String alias) {
|
||||
this(DSL.name(alias), T_WORKPACKAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_workpackage</code> table reference
|
||||
*/
|
||||
public TWorkpackage(Name alias) {
|
||||
this(alias, T_WORKPACKAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_workpackage</code> table reference
|
||||
*/
|
||||
public TWorkpackage() {
|
||||
this(DSL.name("t_workpackage"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TWorkpackageRecord, Integer> getIdentity() {
|
||||
return (Identity<TWorkpackageRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TWorkpackageRecord> getPrimaryKey() {
|
||||
return Keys.T_WORKPACKAGE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackage as(String alias) {
|
||||
return new TWorkpackage(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackage as(Name alias) {
|
||||
return new TWorkpackage(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackage as(Table<?> alias) {
|
||||
return new TWorkpackage(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage rename(String name) {
|
||||
return new TWorkpackage(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage rename(Name name) {
|
||||
return new TWorkpackage(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage rename(Table<?> name) {
|
||||
return new TWorkpackage(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage where(Condition condition) {
|
||||
return new TWorkpackage(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackage where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackage where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackage where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackage where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackage whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Keys;
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.TWorkpackageAppRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
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", "this-escape" })
|
||||
public class TWorkpackageApp extends TableImpl<TWorkpackageAppRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.t_workpackage_app</code>
|
||||
*/
|
||||
public static final TWorkpackageApp T_WORKPACKAGE_APP = new TWorkpackageApp();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TWorkpackageAppRecord> getRecordType() {
|
||||
return TWorkpackageAppRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage_app.created</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageAppRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage_app.pk_workpackage_app</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageAppRecord, Integer> PK_WORKPACKAGE_APP = createField(DSL.name("pk_workpackage_app"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage_app.fk_workpackage</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageAppRecord, Integer> FK_WORKPACKAGE = createField(DSL.name("fk_workpackage"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.t_workpackage_app.fk_app</code>.
|
||||
*/
|
||||
public final TableField<TWorkpackageAppRecord, Integer> FK_APP = createField(DSL.name("fk_app"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
private TWorkpackageApp(Name alias, Table<TWorkpackageAppRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TWorkpackageApp(Name alias, Table<TWorkpackageAppRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_workpackage_app</code> table reference
|
||||
*/
|
||||
public TWorkpackageApp(String alias) {
|
||||
this(DSL.name(alias), T_WORKPACKAGE_APP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.t_workpackage_app</code> table reference
|
||||
*/
|
||||
public TWorkpackageApp(Name alias) {
|
||||
this(alias, T_WORKPACKAGE_APP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.t_workpackage_app</code> table reference
|
||||
*/
|
||||
public TWorkpackageApp() {
|
||||
this(DSL.name("t_workpackage_app"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TWorkpackageAppRecord, Integer> getIdentity() {
|
||||
return (Identity<TWorkpackageAppRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TWorkpackageAppRecord> getPrimaryKey() {
|
||||
return Keys.T_WORKPACKAGE_APP_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TWorkpackageAppRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_WORKPACKAGE_APP_FK_WORKPACKAGE_FK_APP_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackageApp as(String alias) {
|
||||
return new TWorkpackageApp(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackageApp as(Name alias) {
|
||||
return new TWorkpackageApp(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TWorkpackageApp as(Table<?> alias) {
|
||||
return new TWorkpackageApp(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp rename(String name) {
|
||||
return new TWorkpackageApp(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp rename(Name name) {
|
||||
return new TWorkpackageApp(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp rename(Table<?> name) {
|
||||
return new TWorkpackageApp(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp where(Condition condition) {
|
||||
return new TWorkpackageApp(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackageApp where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackageApp where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackageApp where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TWorkpackageApp where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TWorkpackageApp whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.Project;
|
||||
import de.jottyfan.timetrack.db.project.tables.records.VBundleAppsRecord;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
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", "this-escape" })
|
||||
public class VBundleApps extends TableImpl<VBundleAppsRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>project.v_bundle_apps</code>
|
||||
*/
|
||||
public static final VBundleApps V_BUNDLE_APPS = new VBundleApps();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<VBundleAppsRecord> getRecordType() {
|
||||
return VBundleAppsRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>project.v_bundle_apps.name</code>.
|
||||
*/
|
||||
public final TableField<VBundleAppsRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>project.v_bundle_apps.string_agg</code>.
|
||||
*/
|
||||
public final TableField<VBundleAppsRecord, String> STRING_AGG = createField(DSL.name("string_agg"), SQLDataType.CLOB, this, "");
|
||||
|
||||
private VBundleApps(Name alias, Table<VBundleAppsRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private VBundleApps(Name alias, Table<VBundleAppsRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
|
||||
create view "v_bundle_apps" as SELECT b.name,
|
||||
string_agg(a.name, ','::text) AS string_agg
|
||||
FROM (project.t_bundle b
|
||||
LEFT JOIN project.t_app a ON ((a.fk_bundle = b.pk_bundle)))
|
||||
GROUP BY b.name;
|
||||
"""), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.v_bundle_apps</code> table reference
|
||||
*/
|
||||
public VBundleApps(String alias) {
|
||||
this(DSL.name(alias), V_BUNDLE_APPS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>project.v_bundle_apps</code> table reference
|
||||
*/
|
||||
public VBundleApps(Name alias) {
|
||||
this(alias, V_BUNDLE_APPS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>project.v_bundle_apps</code> table reference
|
||||
*/
|
||||
public VBundleApps() {
|
||||
this(DSL.name("v_bundle_apps"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Project.PROJECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBundleApps as(String alias) {
|
||||
return new VBundleApps(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBundleApps as(Name alias) {
|
||||
return new VBundleApps(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VBundleApps as(Table<?> alias) {
|
||||
return new VBundleApps(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps rename(String name) {
|
||||
return new VBundleApps(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps rename(Name name) {
|
||||
return new VBundleApps(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps rename(Table<?> name) {
|
||||
return new VBundleApps(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps where(Condition condition) {
|
||||
return new VBundleApps(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBundleApps where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBundleApps where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBundleApps where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public VBundleApps where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public VBundleApps whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.tables.TApp;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TAppRecord extends UpdatableRecordImpl<TAppRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.created</code>.
|
||||
*/
|
||||
public void setCreated(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.created</code>.
|
||||
*/
|
||||
public LocalDateTime getCreated() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.pk_app</code>.
|
||||
*/
|
||||
public void setPkApp(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.pk_app</code>.
|
||||
*/
|
||||
public Integer getPkApp() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.fk_bundle</code>.
|
||||
*/
|
||||
public void setFkBundle(Integer value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.fk_bundle</code>.
|
||||
*/
|
||||
public Integer getFkBundle() {
|
||||
return (Integer) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.basic_functionality</code>.
|
||||
*/
|
||||
public void setBasicFunctionality(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.basic_functionality</code>.
|
||||
*/
|
||||
public String getBasicFunctionality() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.description</code>.
|
||||
*/
|
||||
public void setDescription(String value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.description</code>.
|
||||
*/
|
||||
public String getDescription() {
|
||||
return (String) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.fk_replaced_by_app</code>.
|
||||
*/
|
||||
public void setFkReplacedByApp(Integer value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.fk_replaced_by_app</code>.
|
||||
*/
|
||||
public Integer getFkReplacedByApp() {
|
||||
return (Integer) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_app.repository_url</code>.
|
||||
*/
|
||||
public void setRepositoryUrl(String value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_app.repository_url</code>.
|
||||
*/
|
||||
public String getRepositoryUrl() {
|
||||
return (String) get(7);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TAppRecord
|
||||
*/
|
||||
public TAppRecord() {
|
||||
super(TApp.T_APP);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TAppRecord
|
||||
*/
|
||||
public TAppRecord(LocalDateTime created, Integer pkApp, Integer fkBundle, String basicFunctionality, String name, String description, Integer fkReplacedByApp, String repositoryUrl) {
|
||||
super(TApp.T_APP);
|
||||
|
||||
setCreated(created);
|
||||
setPkApp(pkApp);
|
||||
setFkBundle(fkBundle);
|
||||
setBasicFunctionality(basicFunctionality);
|
||||
setName(name);
|
||||
setDescription(description);
|
||||
setFkReplacedByApp(fkReplacedByApp);
|
||||
setRepositoryUrl(repositoryUrl);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.timetrack.db.project.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.timetrack.db.project.tables.TBundle;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TBundleRecord extends UpdatableRecordImpl<TBundleRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_bundle.created</code>.
|
||||
*/
|
||||
public void setCreated(LocalDateTime value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_bundle.created</code>.
|
||||
*/
|
||||
public LocalDateTime getCreated() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_bundle.pk_bundle</code>.
|
||||
*/
|
||||
public void setPkBundle(Integer value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_bundle.pk_bundle</code>.
|
||||
*/
|
||||
public Integer getPkBundle() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_bundle.name</code>.
|
||||
*/
|
||||
public void setName(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_bundle.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>project.t_bundle.description</code>.
|
||||
*/
|
||||
public void setDescription(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>project.t_bundle.description</code>.
|
||||
*/
|
||||
public String getDescription() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TBundleRecord
|
||||
*/
|
||||
public TBundleRecord() {
|
||||
super(TBundle.T_BUNDLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TBundleRecord
|
||||
*/
|
||||
public TBundleRecord(LocalDateTime created, Integer pkBundle, String name, String description) {
|
||||
super(TBundle.T_BUNDLE);
|
||||
|
||||
setCreated(created);
|
||||
setPkBundle(pkBundle);
|
||||
setName(name);
|
||||
setDescription(description);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user