From c75e400cc6c276a67154a1ee755ff9f83a886e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Henke?= Date: Wed, 14 Jan 2026 14:42:01 +0100 Subject: [PATCH] generated jooq classes --- .classpath | 6 +- .settings/org.eclipse.jdt.core.prefs | 6 +- .../jottyfan/timetrack/db/DefaultCatalog.java | 91 ++++++ .../timetrack/db/contact/Contact.java | 55 ++++ .../jottyfan/timetrack/db/contact/Keys.java | 28 ++ .../jottyfan/timetrack/db/contact/Tables.java | 20 ++ .../db/contact/enums/EnumContacttype.java | 64 +++++ .../timetrack/db/contact/tables/TContact.java | 245 ++++++++++++++++ .../tables/records/TContactRecord.java | 125 ++++++++ .../de/jottyfan/timetrack/db/done/Done.java | 237 ++++++++++++++++ .../de/jottyfan/timetrack/db/done/Keys.java | 60 ++++ .../de/jottyfan/timetrack/db/done/Tables.java | 176 ++++++++++++ .../timetrack/db/done/tables/TBilling.java | 252 ++++++++++++++++ .../timetrack/db/done/tables/TDone.java | 265 +++++++++++++++++ .../timetrack/db/done/tables/TFavorite.java | 255 +++++++++++++++++ .../timetrack/db/done/tables/TFreetime.java | 253 +++++++++++++++++ .../timetrack/db/done/tables/TJob.java | 242 ++++++++++++++++ .../timetrack/db/done/tables/TModule.java | 242 ++++++++++++++++ .../timetrack/db/done/tables/TOvertime.java | 247 ++++++++++++++++ .../timetrack/db/done/tables/TProject.java | 242 ++++++++++++++++ .../db/done/tables/TRequiredWorktime.java | 252 ++++++++++++++++ .../timetrack/db/done/tables/VBilling.java | 247 ++++++++++++++++ .../db/done/tables/VCurrentOvertime.java | 231 +++++++++++++++ .../timetrack/db/done/tables/VDaily.java | 234 +++++++++++++++ .../timetrack/db/done/tables/VDay.java | 265 +++++++++++++++++ .../timetrack/db/done/tables/VDaylimit.java | 263 +++++++++++++++++ .../timetrack/db/done/tables/VDaylimits.java | 242 ++++++++++++++++ .../timetrack/db/done/tables/VDaysummary.java | 254 +++++++++++++++++ .../timetrack/db/done/tables/VDone.java | 261 +++++++++++++++++ .../timetrack/db/done/tables/VDuration.java | 251 ++++++++++++++++ .../timetrack/db/done/tables/VFavorite.java | 248 ++++++++++++++++ .../db/done/tables/VHamstersummary.java | 247 ++++++++++++++++ .../timetrack/db/done/tables/VJob.java | 235 +++++++++++++++ .../timetrack/db/done/tables/VModule.java | 235 +++++++++++++++ .../timetrack/db/done/tables/VProject.java | 235 +++++++++++++++ .../timetrack/db/done/tables/VTasklist.java | 245 ++++++++++++++++ .../timetrack/db/done/tables/VTimelength.java | 233 +++++++++++++++ .../timetrack/db/done/tables/VTotalofday.java | 244 ++++++++++++++++ .../timetrack/db/done/tables/VWorktime.java | 268 ++++++++++++++++++ .../done/tables/records/TBillingRecord.java | 126 ++++++++ .../db/done/tables/records/TDoneRecord.java | 186 ++++++++++++ .../done/tables/records/TFavoriteRecord.java | 156 ++++++++++ .../done/tables/records/TFreetimeRecord.java | 127 +++++++++ .../db/done/tables/records/TJobRecord.java | 96 +++++++ .../db/done/tables/records/TModuleRecord.java | 96 +++++++ .../done/tables/records/TOvertimeRecord.java | 111 ++++++++ .../done/tables/records/TProjectRecord.java | 96 +++++++ .../records/TRequiredWorktimeRecord.java | 126 ++++++++ .../done/tables/records/VBillingRecord.java | 116 ++++++++ .../records/VCurrentOvertimeRecord.java | 86 ++++++ .../db/done/tables/records/VDailyRecord.java | 100 +++++++ .../db/done/tables/records/VDayRecord.java | 148 ++++++++++ .../done/tables/records/VDaylimitRecord.java | 133 +++++++++ .../done/tables/records/VDaylimitsRecord.java | 102 +++++++ .../tables/records/VDaysummaryRecord.java | 148 ++++++++++ .../db/done/tables/records/VDoneRecord.java | 161 +++++++++++ .../done/tables/records/VDurationRecord.java | 145 ++++++++++ .../done/tables/records/VFavoriteRecord.java | 129 +++++++++ .../tables/records/VHamstersummaryRecord.java | 131 +++++++++ .../db/done/tables/records/VJobRecord.java | 86 ++++++ .../db/done/tables/records/VModuleRecord.java | 86 ++++++ .../done/tables/records/VProjectRecord.java | 86 ++++++ .../done/tables/records/VTasklistRecord.java | 129 +++++++++ .../tables/records/VTimelengthRecord.java | 100 +++++++ .../tables/records/VTotalofdayRecord.java | 129 +++++++++ .../done/tables/records/VWorktimeRecord.java | 174 ++++++++++++ .../de/jottyfan/timetrack/db/note/Keys.java | 28 ++ .../de/jottyfan/timetrack/db/note/Note.java | 55 ++++ .../de/jottyfan/timetrack/db/note/Tables.java | 20 ++ .../timetrack/db/note/enums/EnumCategory.java | 70 +++++ .../timetrack/db/note/enums/EnumNotetype.java | 58 ++++ .../timetrack/db/note/tables/TNote.java | 252 ++++++++++++++++ .../db/note/tables/records/TNoteRecord.java | 143 ++++++++++ .../jottyfan/timetrack/db/profile/Keys.java | 41 +++ .../timetrack/db/profile/Profile.java | 83 ++++++ .../jottyfan/timetrack/db/profile/Tables.java | 44 +++ .../timetrack/db/profile/tables/TLogin.java | 262 +++++++++++++++++ .../db/profile/tables/TLoginrole.java | 247 ++++++++++++++++ .../timetrack/db/profile/tables/TProfile.java | 252 ++++++++++++++++ .../timetrack/db/profile/tables/TRole.java | 242 ++++++++++++++++ .../db/profile/tables/VLoginrole.java | 241 ++++++++++++++++ .../profile/tables/records/TLoginRecord.java | 156 ++++++++++ .../tables/records/TLoginroleRecord.java | 111 ++++++++ .../tables/records/TProfileRecord.java | 126 ++++++++ .../profile/tables/records/TRoleRecord.java | 96 +++++++ .../tables/records/VLoginroleRecord.java | 116 ++++++++ .../jottyfan/timetrack/db/project/Keys.java | 49 ++++ .../timetrack/db/project/Project.java | 104 +++++++ .../jottyfan/timetrack/db/project/Tables.java | 62 ++++ .../timetrack/db/project/enums/EnumPhase.java | 62 ++++ .../timetrack/db/project/tables/TApp.java | 260 +++++++++++++++++ .../timetrack/db/project/tables/TBundle.java | 247 ++++++++++++++++ .../timetrack/db/project/tables/TFunder.java | 247 ++++++++++++++++ .../db/project/tables/TProgress.java | 241 ++++++++++++++++ .../timetrack/db/project/tables/TProject.java | 245 ++++++++++++++++ .../db/project/tables/TWorkpackage.java | 261 +++++++++++++++++ .../db/project/tables/TWorkpackageApp.java | 247 ++++++++++++++++ .../db/project/tables/VBundleApps.java | 222 +++++++++++++++ .../db/project/tables/records/TAppRecord.java | 171 +++++++++++ .../project/tables/records/TBundleRecord.java | 111 ++++++++ .../project/tables/records/TFunderRecord.java | 111 ++++++++ .../tables/records/TProgressRecord.java | 112 ++++++++ .../tables/records/TProjectRecord.java | 126 ++++++++ .../tables/records/TWorkpackageAppRecord.java | 111 ++++++++ .../tables/records/TWorkpackageRecord.java | 172 +++++++++++ .../tables/records/VBundleAppsRecord.java | 69 +++++ .../jottyfan/timetrack/db/public_/Public.java | 55 ++++ .../jottyfan/timetrack/db/public_/Tables.java | 20 ++ .../timetrack/db/public_/tables/VVersion.java | 213 ++++++++++++++ .../tables/records/VVersionRecord.java | 54 ++++ 110 files changed, 17319 insertions(+), 6 deletions(-) create mode 100644 src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/Contact.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/Keys.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/enums/EnumContacttype.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/tables/TContact.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/contact/tables/records/TContactRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/Done.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/Keys.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TFavorite.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TFreetime.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TOvertime.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/TRequiredWorktime.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VCurrentOvertime.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimit.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimits.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDaysummary.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VDuration.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VFavorite.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VHamstersummary.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VTasklist.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VTimelength.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VTotalofday.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/VWorktime.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TBillingRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TDoneRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFavoriteRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFreetimeRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TJobRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TModuleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TOvertimeRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TProjectRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/TRequiredWorktimeRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VBillingRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VCurrentOvertimeRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDailyRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDayRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitsRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaysummaryRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDoneRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDurationRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VFavoriteRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VHamstersummaryRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VJobRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VModuleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VProjectRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTasklistRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTimelengthRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTotalofdayRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/done/tables/records/VWorktimeRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/Keys.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/Note.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/enums/EnumCategory.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/enums/EnumNotetype.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/note/tables/records/TNoteRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/Keys.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/Profile.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/TLogin.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/TLoginrole.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/TProfile.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/VLoginrole.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginroleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TProfileRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TRoleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/profile/tables/records/VLoginroleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/Keys.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/Project.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/enums/EnumPhase.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TBundle.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TFunder.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TProgress.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TProject.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackage.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackageApp.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/VBundleApps.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TAppRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TBundleRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TFunderRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProgressRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProjectRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageAppRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/project/tables/records/VBundleAppsRecord.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/public_/Public.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/public_/Tables.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/public_/tables/VVersion.java create mode 100644 src/main/java/de/jottyfan/timetrack/db/public_/tables/records/VVersionRecord.java diff --git a/.classpath b/.classpath index d928028..1339a2e 100644 --- a/.classpath +++ b/.classpath @@ -1,13 +1,13 @@ - + + - - + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 626e0e1..e9186c3 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -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 diff --git a/src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java b/src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java new file mode 100644 index 0000000..30e9af0 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/DefaultCatalog.java @@ -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 DEFAULT_CATALOG + */ + public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog(); + + /** + * The schema contact. + */ + public final Contact CONTACT = Contact.CONTACT; + + /** + * The schema done. + */ + public final Done DONE = Done.DONE; + + /** + * The schema note. + */ + public final Note NOTE = Note.NOTE; + + /** + * The schema profile. + */ + public final Profile PROFILE = Profile.PROFILE; + + /** + * The schema project. + */ + public final Project PROJECT = Project.PROJECT; + + /** + * The schema public. + */ + public final Public PUBLIC = Public.PUBLIC; + + /** + * No further instances allowed + */ + private DefaultCatalog() { + super(""); + } + + @Override + public final List 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; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/Contact.java b/src/main/java/de/jottyfan/timetrack/db/contact/Contact.java new file mode 100644 index 0000000..3b33311 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/Contact.java @@ -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 contact + */ + public static final Contact CONTACT = new Contact(); + + /** + * The table contact.t_contact. + */ + 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> getTables() { + return Arrays.asList( + TContact.T_CONTACT + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/Keys.java b/src/main/java/de/jottyfan/timetrack/db/contact/Keys.java new file mode 100644 index 0000000..3a089b5 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/Keys.java @@ -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 T_CONTACT_PKEY = Internal.createUniqueKey(TContact.T_CONTACT, DSL.name("t_contact_pkey"), new TableField[] { TContact.T_CONTACT.PK }, true); +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/Tables.java b/src/main/java/de/jottyfan/timetrack/db/contact/Tables.java new file mode 100644 index 0000000..9be4076 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/Tables.java @@ -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 contact.t_contact. + */ + public static final TContact T_CONTACT = TContact.T_CONTACT; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/enums/EnumContacttype.java b/src/main/java/de/jottyfan/timetrack/db/contact/enums/EnumContacttype.java new file mode 100644 index 0000000..80594f9 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/enums/EnumContacttype.java @@ -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 + * null, 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); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/tables/TContact.java b/src/main/java/de/jottyfan/timetrack/db/contact/tables/TContact.java new file mode 100644 index 0000000..9524a7a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/tables/TContact.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of contact.t_contact + */ + public static final TContact T_CONTACT = new TContact(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TContactRecord.class; + } + + /** + * The column contact.t_contact.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column contact.t_contact.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column contact.t_contact.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column contact.t_contact.contact. + */ + public final TableField CONTACT = createField(DSL.name("contact"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column contact.t_contact.type. + */ + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumContacttype.class), this, ""); + + private TContact(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TContact(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased contact.t_contact table reference + */ + public TContact(String alias) { + this(DSL.name(alias), T_CONTACT); + } + + /** + * Create an aliased contact.t_contact table reference + */ + public TContact(Name alias) { + this(alias, T_CONTACT); + } + + /** + * Create a contact.t_contact table reference + */ + public TContact() { + this(DSL.name("t_contact"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Contact.CONTACT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/contact/tables/records/TContactRecord.java b/src/main/java/de/jottyfan/timetrack/db/contact/tables/records/TContactRecord.java new file mode 100644 index 0000000..0873d6a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/contact/tables/records/TContactRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for contact.t_contact.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for contact.t_contact.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for contact.t_contact.forename. + */ + public void setForename(String value) { + set(1, value); + } + + /** + * Getter for contact.t_contact.forename. + */ + public String getForename() { + return (String) get(1); + } + + /** + * Setter for contact.t_contact.surname. + */ + public void setSurname(String value) { + set(2, value); + } + + /** + * Getter for contact.t_contact.surname. + */ + public String getSurname() { + return (String) get(2); + } + + /** + * Setter for contact.t_contact.contact. + */ + public void setContact(String value) { + set(3, value); + } + + /** + * Getter for contact.t_contact.contact. + */ + public String getContact() { + return (String) get(3); + } + + /** + * Setter for contact.t_contact.type. + */ + public void setType(EnumContacttype value) { + set(4, value); + } + + /** + * Getter for contact.t_contact.type. + */ + public EnumContacttype getType() { + return (EnumContacttype) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/Done.java b/src/main/java/de/jottyfan/timetrack/db/done/Done.java new file mode 100644 index 0000000..9aabdab --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/Done.java @@ -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 done + */ + public static final Done DONE = new Done(); + + /** + * The table done.t_billing. + */ + public final TBilling T_BILLING = TBilling.T_BILLING; + + /** + * The table done.t_done. + */ + public final TDone T_DONE = TDone.T_DONE; + + /** + * The table done.t_favorite. + */ + public final TFavorite T_FAVORITE = TFavorite.T_FAVORITE; + + /** + * The table done.t_freetime. + */ + public final TFreetime T_FREETIME = TFreetime.T_FREETIME; + + /** + * The table done.t_job. + */ + public final TJob T_JOB = TJob.T_JOB; + + /** + * The table done.t_module. + */ + public final TModule T_MODULE = TModule.T_MODULE; + + /** + * The table done.t_overtime. + */ + public final TOvertime T_OVERTIME = TOvertime.T_OVERTIME; + + /** + * The table done.t_project. + */ + public final TProject T_PROJECT = TProject.T_PROJECT; + + /** + * The table done.t_required_worktime. + */ + public final TRequiredWorktime T_REQUIRED_WORKTIME = TRequiredWorktime.T_REQUIRED_WORKTIME; + + /** + * The table done.v_billing. + */ + public final VBilling V_BILLING = VBilling.V_BILLING; + + /** + * The table done.v_current_overtime. + */ + public final VCurrentOvertime V_CURRENT_OVERTIME = VCurrentOvertime.V_CURRENT_OVERTIME; + + /** + * The table done.v_daily. + */ + public final VDaily V_DAILY = VDaily.V_DAILY; + + /** + * The table done.v_day. + */ + public final VDay V_DAY = VDay.V_DAY; + + /** + * The table done.v_daylimit. + */ + public final VDaylimit V_DAYLIMIT = VDaylimit.V_DAYLIMIT; + + /** + * The table done.v_daylimits. + */ + public final VDaylimits V_DAYLIMITS = VDaylimits.V_DAYLIMITS; + + /** + * The table done.v_daysummary. + */ + public final VDaysummary V_DAYSUMMARY = VDaysummary.V_DAYSUMMARY; + + /** + * The table done.v_done. + */ + public final VDone V_DONE = VDone.V_DONE; + + /** + * The table done.v_duration. + */ + public final VDuration V_DURATION = VDuration.V_DURATION; + + /** + * The table done.v_favorite. + */ + public final VFavorite V_FAVORITE = VFavorite.V_FAVORITE; + + /** + * The table done.v_hamstersummary. + */ + public final VHamstersummary V_HAMSTERSUMMARY = VHamstersummary.V_HAMSTERSUMMARY; + + /** + * The table done.v_job. + */ + public final VJob V_JOB = VJob.V_JOB; + + /** + * The table done.v_module. + */ + public final VModule V_MODULE = VModule.V_MODULE; + + /** + * The table done.v_project. + */ + public final VProject V_PROJECT = VProject.V_PROJECT; + + /** + * The table done.v_tasklist. + */ + public final VTasklist V_TASKLIST = VTasklist.V_TASKLIST; + + /** + * The table done.v_timelength. + */ + public final VTimelength V_TIMELENGTH = VTimelength.V_TIMELENGTH; + + /** + * The table done.v_totalofday. + */ + public final VTotalofday V_TOTALOFDAY = VTotalofday.V_TOTALOFDAY; + + /** + * The table done.v_worktime. + */ + 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> 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 + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/Keys.java b/src/main/java/de/jottyfan/timetrack/db/done/Keys.java new file mode 100644 index 0000000..a3f692c --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/Keys.java @@ -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 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 T_BILLING_PKEY = Internal.createUniqueKey(TBilling.T_BILLING, DSL.name("t_billing_pkey"), new TableField[] { TBilling.T_BILLING.PK }, true); + public static final UniqueKey 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 T_DONE_PKEY = Internal.createUniqueKey(TDone.T_DONE, DSL.name("t_done_pkey"), new TableField[] { TDone.T_DONE.PK }, true); + public static final UniqueKey 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 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 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 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 T_CATEGORY_PKEY = Internal.createUniqueKey(TJob.T_JOB, DSL.name("t_category_pkey"), new TableField[] { TJob.T_JOB.PK }, true); + public static final UniqueKey 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 T_JOB_PKEY = Internal.createUniqueKey(TModule.T_MODULE, DSL.name("t_job_pkey"), new TableField[] { TModule.T_MODULE.PK }, true); + public static final UniqueKey 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 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 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 T_PROJECT_PKEY = Internal.createUniqueKey(TProject.T_PROJECT, DSL.name("t_project_pkey"), new TableField[] { TProject.T_PROJECT.PK }, true); + public static final UniqueKey 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 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); +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/Tables.java b/src/main/java/de/jottyfan/timetrack/db/done/Tables.java new file mode 100644 index 0000000..5e6aed3 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/Tables.java @@ -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 done.t_billing. + */ + public static final TBilling T_BILLING = TBilling.T_BILLING; + + /** + * The table done.t_done. + */ + public static final TDone T_DONE = TDone.T_DONE; + + /** + * The table done.t_favorite. + */ + public static final TFavorite T_FAVORITE = TFavorite.T_FAVORITE; + + /** + * The table done.t_freetime. + */ + public static final TFreetime T_FREETIME = TFreetime.T_FREETIME; + + /** + * The table done.t_job. + */ + public static final TJob T_JOB = TJob.T_JOB; + + /** + * The table done.t_module. + */ + public static final TModule T_MODULE = TModule.T_MODULE; + + /** + * The table done.t_overtime. + */ + public static final TOvertime T_OVERTIME = TOvertime.T_OVERTIME; + + /** + * The table done.t_project. + */ + public static final TProject T_PROJECT = TProject.T_PROJECT; + + /** + * The table done.t_required_worktime. + */ + public static final TRequiredWorktime T_REQUIRED_WORKTIME = TRequiredWorktime.T_REQUIRED_WORKTIME; + + /** + * The table done.v_billing. + */ + public static final VBilling V_BILLING = VBilling.V_BILLING; + + /** + * The table done.v_current_overtime. + */ + public static final VCurrentOvertime V_CURRENT_OVERTIME = VCurrentOvertime.V_CURRENT_OVERTIME; + + /** + * The table done.v_daily. + */ + public static final VDaily V_DAILY = VDaily.V_DAILY; + + /** + * The table done.v_day. + */ + public static final VDay V_DAY = VDay.V_DAY; + + /** + * The table done.v_daylimit. + */ + public static final VDaylimit V_DAYLIMIT = VDaylimit.V_DAYLIMIT; + + /** + * The table done.v_daylimits. + */ + public static final VDaylimits V_DAYLIMITS = VDaylimits.V_DAYLIMITS; + + /** + * The table done.v_daysummary. + */ + public static final VDaysummary V_DAYSUMMARY = VDaysummary.V_DAYSUMMARY; + + /** + * The table done.v_done. + */ + public static final VDone V_DONE = VDone.V_DONE; + + /** + * The table done.v_duration. + */ + public static final VDuration V_DURATION = VDuration.V_DURATION; + + /** + * The table done.v_favorite. + */ + public static final VFavorite V_FAVORITE = VFavorite.V_FAVORITE; + + /** + * The table done.v_hamstersummary. + */ + public static final VHamstersummary V_HAMSTERSUMMARY = VHamstersummary.V_HAMSTERSUMMARY; + + /** + * The table done.v_job. + */ + public static final VJob V_JOB = VJob.V_JOB; + + /** + * The table done.v_module. + */ + public static final VModule V_MODULE = VModule.V_MODULE; + + /** + * The table done.v_project. + */ + public static final VProject V_PROJECT = VProject.V_PROJECT; + + /** + * The table done.v_tasklist. + */ + public static final VTasklist V_TASKLIST = VTasklist.V_TASKLIST; + + /** + * The table done.v_timelength. + */ + public static final VTimelength V_TIMELENGTH = VTimelength.V_TIMELENGTH; + + /** + * The table done.v_totalofday. + */ + public static final VTotalofday V_TOTALOFDAY = VTotalofday.V_TOTALOFDAY; + + /** + * The table done.v_worktime. + */ + public static final VWorktime V_WORKTIME = VWorktime.V_WORKTIME; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java new file mode 100644 index 0000000..ab1e736 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TBilling.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_billing + */ + public static final TBilling T_BILLING = new TBilling(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TBillingRecord.class; + } + + /** + * The column done.t_billing.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_billing.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_billing.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column done.t_billing.shortcut. + */ + public final TableField SHORTCUT = createField(DSL.name("shortcut"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column done.t_billing.csskey. + */ + public final TableField CSSKEY = createField(DSL.name("csskey"), SQLDataType.CLOB, this, ""); + + private TBilling(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TBilling(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_billing table reference + */ + public TBilling(String alias) { + this(DSL.name(alias), T_BILLING); + } + + /** + * Create an aliased done.t_billing table reference + */ + public TBilling(Name alias) { + this(alias, T_BILLING); + } + + /** + * Create a done.t_billing table reference + */ + public TBilling() { + this(DSL.name("t_billing"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_BILLING_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java new file mode 100644 index 0000000..466549b --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TDone.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_done + */ + public static final TDone T_DONE = new TDone(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TDoneRecord.class; + } + + /** + * The column done.t_done.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_done.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_done.time_from. + */ + public final TableField TIME_FROM = createField(DSL.name("time_from"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.t_done.time_until. + */ + public final TableField TIME_UNTIL = createField(DSL.name("time_until"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.t_done.fk_project. + */ + public final TableField FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_done.fk_module. + */ + public final TableField FK_MODULE = createField(DSL.name("fk_module"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_done.fk_job. + */ + public final TableField FK_JOB = createField(DSL.name("fk_job"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_done.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column done.t_done.fk_billing. + */ + public final TableField FK_BILLING = createField(DSL.name("fk_billing"), SQLDataType.INTEGER, this, ""); + + private TDone(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TDone(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_done table reference + */ + public TDone(String alias) { + this(DSL.name(alias), T_DONE); + } + + /** + * Create an aliased done.t_done table reference + */ + public TDone(Name alias) { + this(alias, T_DONE); + } + + /** + * Create a done.t_done table reference + */ + public TDone() { + this(DSL.name("t_done"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TFavorite.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TFavorite.java new file mode 100644 index 0000000..e786697 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TFavorite.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_favorite + */ + public static final TFavorite T_FAVORITE = new TFavorite(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TFavoriteRecord.class; + } + + /** + * The column done.t_favorite.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_favorite.pk_favorite. + */ + public final TableField PK_FAVORITE = createField(DSL.name("pk_favorite"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_favorite.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column done.t_favorite.fk_project. + */ + public final TableField FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_favorite.fk_module. + */ + public final TableField FK_MODULE = createField(DSL.name("fk_module"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_favorite.fk_job. + */ + public final TableField FK_JOB = createField(DSL.name("fk_job"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.t_favorite.fk_billing. + */ + public final TableField FK_BILLING = createField(DSL.name("fk_billing"), SQLDataType.INTEGER, this, ""); + + private TFavorite(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TFavorite(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_favorite table reference + */ + public TFavorite(String alias) { + this(DSL.name(alias), T_FAVORITE); + } + + /** + * Create an aliased done.t_favorite table reference + */ + public TFavorite(Name alias) { + this(alias, T_FAVORITE); + } + + /** + * Create a done.t_favorite table reference + */ + public TFavorite() { + this(DSL.name("t_favorite"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TFreetime.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TFreetime.java new file mode 100644 index 0000000..532cd82 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TFreetime.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_freetime + */ + public static final TFreetime T_FREETIME = new TFreetime(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TFreetimeRecord.class; + } + + /** + * The column done.t_freetime.pk_freetime. + */ + public final TableField PK_FREETIME = createField(DSL.name("pk_freetime"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_freetime.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, ""); + + /** + * The column done.t_freetime.required_worktime. + */ + public final TableField 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 done.t_freetime.reason. + */ + public final TableField REASON = createField(DSL.name("reason"), SQLDataType.CLOB, this, ""); + + /** + * The column done.t_freetime.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + private TFreetime(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TFreetime(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_freetime table reference + */ + public TFreetime(String alias) { + this(DSL.name(alias), T_FREETIME); + } + + /** + * Create an aliased done.t_freetime table reference + */ + public TFreetime(Name alias) { + this(alias, T_FREETIME); + } + + /** + * Create a done.t_freetime table reference + */ + public TFreetime() { + this(DSL.name("t_freetime"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_FREETIME_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java new file mode 100644 index 0000000..9a7d459 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TJob.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_job + */ + public static final TJob T_JOB = new TJob(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TJobRecord.class; + } + + /** + * The column done.t_job.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_job.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_job.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + private TJob(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TJob(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_job table reference + */ + public TJob(String alias) { + this(DSL.name(alias), T_JOB); + } + + /** + * Create an aliased done.t_job table reference + */ + public TJob(Name alias) { + this(alias, T_JOB); + } + + /** + * Create a done.t_job table reference + */ + public TJob() { + this(DSL.name("t_job"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_CATEGORY_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java new file mode 100644 index 0000000..d66290a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TModule.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_module + */ + public static final TModule T_MODULE = new TModule(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TModuleRecord.class; + } + + /** + * The column done.t_module.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_module.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_module.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + private TModule(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TModule(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_module table reference + */ + public TModule(String alias) { + this(DSL.name(alias), T_MODULE); + } + + /** + * Create an aliased done.t_module table reference + */ + public TModule(Name alias) { + this(alias, T_MODULE); + } + + /** + * Create a done.t_module table reference + */ + public TModule() { + this(DSL.name("t_module"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_JOB_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TOvertime.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TOvertime.java new file mode 100644 index 0000000..d7739d0 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TOvertime.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_overtime + */ + public static final TOvertime T_OVERTIME = new TOvertime(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TOvertimeRecord.class; + } + + /** + * The column done.t_overtime.pk_overtime. + */ + public final TableField PK_OVERTIME = createField(DSL.name("pk_overtime"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_overtime.impact. + */ + public final TableField IMPACT = createField(DSL.name("impact"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); + + /** + * The column done.t_overtime.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column done.t_overtime.overtime_minutes. + */ + public final TableField 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 aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TOvertime(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_overtime table reference + */ + public TOvertime(String alias) { + this(DSL.name(alias), T_OVERTIME); + } + + /** + * Create an aliased done.t_overtime table reference + */ + public TOvertime(Name alias) { + this(alias, T_OVERTIME); + } + + /** + * Create a done.t_overtime table reference + */ + public TOvertime() { + this(DSL.name("t_overtime"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_OVERTIME_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java new file mode 100644 index 0000000..a841aab --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TProject.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_project + */ + public static final TProject T_PROJECT = new TProject(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TProjectRecord.class; + } + + /** + * The column done.t_project.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column done.t_project.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_project.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + private TProject(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TProject(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_project table reference + */ + public TProject(String alias) { + this(DSL.name(alias), T_PROJECT); + } + + /** + * Create an aliased done.t_project table reference + */ + public TProject(Name alias) { + this(alias, T_PROJECT); + } + + /** + * Create a done.t_project table reference + */ + public TProject() { + this(DSL.name("t_project"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_PROJECT_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/TRequiredWorktime.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/TRequiredWorktime.java new file mode 100644 index 0000000..c8ad0ee --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/TRequiredWorktime.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.t_required_worktime + */ + public static final TRequiredWorktime T_REQUIRED_WORKTIME = new TRequiredWorktime(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TRequiredWorktimeRecord.class; + } + + /** + * The column done.t_required_worktime.pk_required_worktime. + */ + public final TableField PK_REQUIRED_WORKTIME = createField(DSL.name("pk_required_worktime"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column done.t_required_worktime.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, ""); + + /** + * The column done.t_required_worktime.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column done.t_required_worktime.required_minutes. + */ + public final TableField REQUIRED_MINUTES = createField(DSL.name("required_minutes"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("480"), SQLDataType.INTEGER)), this, ""); + + /** + * The column done.t_required_worktime.reason. + */ + public final TableField REASON = createField(DSL.name("reason"), SQLDataType.CLOB, this, ""); + + private TRequiredWorktime(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TRequiredWorktime(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased done.t_required_worktime table reference + */ + public TRequiredWorktime(String alias) { + this(DSL.name(alias), T_REQUIRED_WORKTIME); + } + + /** + * Create an aliased done.t_required_worktime table reference + */ + public TRequiredWorktime(Name alias) { + this(alias, T_REQUIRED_WORKTIME); + } + + /** + * Create a done.t_required_worktime table reference + */ + public TRequiredWorktime() { + this(DSL.name("t_required_worktime"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Done.DONE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_REQUIRED_WORKTIME_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java new file mode 100644 index 0000000..e4b6fb7 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VBilling.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_billing + */ + public static final VBilling V_BILLING = new VBilling(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VBillingRecord.class; + } + + /** + * The column done.v_billing.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_billing.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_billing.shortcut. + */ + public final TableField SHORTCUT = createField(DSL.name("shortcut"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_billing.csskey. + */ + public final TableField CSSKEY = createField(DSL.name("csskey"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_billing.percent_usage. + */ + public final TableField PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, ""); + + private VBilling(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VBilling(Name alias, Table 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 done.v_billing table reference + */ + public VBilling(String alias) { + this(DSL.name(alias), V_BILLING); + } + + /** + * Create an aliased done.v_billing table reference + */ + public VBilling(Name alias) { + this(alias, V_BILLING); + } + + /** + * Create a done.v_billing 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VCurrentOvertime.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VCurrentOvertime.java new file mode 100644 index 0000000..3a03451 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VCurrentOvertime.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_current_overtime + */ + public static final VCurrentOvertime V_CURRENT_OVERTIME = new VCurrentOvertime(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VCurrentOvertimeRecord.class; + } + + /** + * The column done.v_current_overtime.overtime. + */ + public final TableField OVERTIME = createField(DSL.name("overtime"), SQLDataType.NUMERIC, this, ""); + + /** + * The column done.v_current_overtime.impact. + */ + public final TableField IMPACT = createField(DSL.name("impact"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_current_overtime.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VCurrentOvertime(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VCurrentOvertime(Name alias, Table 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 done.v_current_overtime table reference + */ + public VCurrentOvertime(String alias) { + this(DSL.name(alias), V_CURRENT_OVERTIME); + } + + /** + * Create an aliased done.v_current_overtime table reference + */ + public VCurrentOvertime(Name alias) { + this(alias, V_CURRENT_OVERTIME); + } + + /** + * Create a done.v_current_overtime 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java new file mode 100644 index 0000000..a62d30e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaily.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_daily + */ + public static final VDaily V_DAILY = new VDaily(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDailyRecord.class; + } + + /** + * The column done.v_daily.worktime. + */ + public final TableField WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_daily.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_daily.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_daily.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDaily(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDaily(Name alias, Table 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 done.v_daily table reference + */ + public VDaily(String alias) { + this(DSL.name(alias), V_DAILY); + } + + /** + * Create an aliased done.v_daily table reference + */ + public VDaily(Name alias) { + this(alias, V_DAILY); + } + + /** + * Create a done.v_daily 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java new file mode 100644 index 0000000..044974c --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDay.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_day + */ + public static final VDay V_DAY = new VDay(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDayRecord.class; + } + + /** + * The column done.v_day.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE, this, ""); + + /** + * The column done.v_day.starttime. + */ + public final TableField STARTTIME = createField(DSL.name("starttime"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column done.v_day.endtime. + */ + public final TableField ENDTIME = createField(DSL.name("endtime"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column done.v_day.worktime. + */ + public final TableField WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_day.breaktime. + */ + public final TableField BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_day.day_overtime. + */ + public final TableField DAY_OVERTIME = createField(DSL.name("day_overtime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_day.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDay(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDay(Name alias, Table 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 done.v_day table reference + */ + public VDay(String alias) { + this(DSL.name(alias), V_DAY); + } + + /** + * Create an aliased done.v_day table reference + */ + public VDay(Name alias) { + this(alias, V_DAY); + } + + /** + * Create a done.v_day 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimit.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimit.java new file mode 100644 index 0000000..0c509fb --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimit.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_daylimit + */ + public static final VDaylimit V_DAYLIMIT = new VDaylimit(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDaylimitRecord.class; + } + + /** + * The column done.v_daylimit.daytime_from. + */ + public final TableField DAYTIME_FROM = createField(DSL.name("daytime_from"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column done.v_daylimit.daytime_until. + */ + public final TableField DAYTIME_UNTIL = createField(DSL.name("daytime_until"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column done.v_daylimit.dayworktime. + */ + public final TableField DAYWORKTIME = createField(DSL.name("dayworktime"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column done.v_daylimit.breaks. + */ + public final TableField BREAKS = createField(DSL.name("breaks"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_daylimit.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE, this, ""); + + /** + * The column done.v_daylimit.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDaylimit(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDaylimit(Name alias, Table 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 done.v_daylimit table reference + */ + public VDaylimit(String alias) { + this(DSL.name(alias), V_DAYLIMIT); + } + + /** + * Create an aliased done.v_daylimit table reference + */ + public VDaylimit(Name alias) { + this(alias, V_DAYLIMIT); + } + + /** + * Create a done.v_daylimit 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimits.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimits.java new file mode 100644 index 0000000..55f89bf --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaylimits.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_daylimits + */ + public static final VDaylimits V_DAYLIMITS = new VDaylimits(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDaylimitsRecord.class; + } + + /** + * The column done.v_daylimits.work_start. + */ + public final TableField WORK_START = createField(DSL.name("work_start"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.v_daylimits.work_end. + */ + public final TableField WORK_END = createField(DSL.name("work_end"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, ""); + + /** + * The column done.v_daylimits.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_daylimits.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDaylimits(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDaylimits(Name alias, Table 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 done.v_daylimits table reference + */ + public VDaylimits(String alias) { + this(DSL.name(alias), V_DAYLIMITS); + } + + /** + * Create an aliased done.v_daylimits table reference + */ + public VDaylimits(Name alias) { + this(alias, V_DAYLIMITS); + } + + /** + * Create a done.v_daylimits 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaysummary.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaysummary.java new file mode 100644 index 0000000..442a32d --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDaysummary.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_daysummary + */ + public static final VDaysummary V_DAYSUMMARY = new VDaysummary(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDaysummaryRecord.class; + } + + /** + * The column done.v_daysummary.breaktime. + */ + public final TableField BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_daysummary.worktime. + */ + public final TableField WORKTIME = createField(DSL.name("worktime"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_daysummary.work_start. + */ + public final TableField WORK_START = createField(DSL.name("work_start"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.v_daysummary.work_end. + */ + public final TableField WORK_END = createField(DSL.name("work_end"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, ""); + + /** + * The column done.v_daysummary.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_daysummary.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_daysummary.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDaysummary(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDaysummary(Name alias, Table 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 done.v_daysummary table reference + */ + public VDaysummary(String alias) { + this(DSL.name(alias), V_DAYSUMMARY); + } + + /** + * Create an aliased done.v_daysummary table reference + */ + public VDaysummary(Name alias) { + this(alias, V_DAYSUMMARY); + } + + /** + * Create a done.v_daysummary 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java new file mode 100644 index 0000000..da676b5 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDone.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_done + */ + public static final VDone V_DONE = new VDone(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDoneRecord.class; + } + + /** + * The column done.v_done.fk_done. + */ + public final TableField FK_DONE = createField(DSL.name("fk_done"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_done.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_done.time_from. + */ + public final TableField TIME_FROM = createField(DSL.name("time_from"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.v_done.time_until. + */ + public final TableField TIME_UNTIL = createField(DSL.name("time_until"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column done.v_done.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_done.module_name. + */ + public final TableField MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_done.job_name. + */ + public final TableField JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_done.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + private VDone(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDone(Name alias, Table 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 done.v_done table reference + */ + public VDone(String alias) { + this(DSL.name(alias), V_DONE); + } + + /** + * Create an aliased done.v_done table reference + */ + public VDone(Name alias) { + this(alias, V_DONE); + } + + /** + * Create a done.v_done 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VDuration.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDuration.java new file mode 100644 index 0000000..1796ccd --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VDuration.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_duration + */ + public static final VDuration V_DURATION = new VDuration(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDurationRecord.class; + } + + /** + * The column done.v_duration.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_duration.duration. + */ + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_duration.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_duration.module_name. + */ + public final TableField MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_duration.job_name. + */ + public final TableField JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_duration.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_duration.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VDuration(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDuration(Name alias, Table 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 done.v_duration table reference + */ + public VDuration(String alias) { + this(DSL.name(alias), V_DURATION); + } + + /** + * Create an aliased done.v_duration table reference + */ + public VDuration(Name alias) { + this(alias, V_DURATION); + } + + /** + * Create a done.v_duration 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VFavorite.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VFavorite.java new file mode 100644 index 0000000..e234abb --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VFavorite.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_favorite + */ + public static final VFavorite V_FAVORITE = new VFavorite(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VFavoriteRecord.class; + } + + /** + * The column done.v_favorite.pk_favorite. + */ + public final TableField PK_FAVORITE = createField(DSL.name("pk_favorite"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_favorite.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_favorite.project. + */ + public final TableField PROJECT = createField(DSL.name("project"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_favorite.module. + */ + public final TableField MODULE = createField(DSL.name("module"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_favorite.job. + */ + public final TableField JOB = createField(DSL.name("job"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_favorite.billing. + */ + public final TableField BILLING = createField(DSL.name("billing"), SQLDataType.CLOB, this, ""); + + private VFavorite(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VFavorite(Name alias, Table 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 done.v_favorite table reference + */ + public VFavorite(String alias) { + this(DSL.name(alias), V_FAVORITE); + } + + /** + * Create an aliased done.v_favorite table reference + */ + public VFavorite(Name alias) { + this(alias, V_FAVORITE); + } + + /** + * Create a done.v_favorite 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VHamstersummary.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VHamstersummary.java new file mode 100644 index 0000000..caf5c6e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VHamstersummary.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_hamstersummary + */ + public static final VHamstersummary V_HAMSTERSUMMARY = new VHamstersummary(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VHamstersummaryRecord.class; + } + + /** + * The column done.v_hamstersummary.workday. + */ + public final TableField WORKDAY = createField(DSL.name("workday"), SQLDataType.LOCALDATE, this, ""); + + /** + * The column done.v_hamstersummary.duration. + */ + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_hamstersummary.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_hamstersummary.module_name. + */ + public final TableField MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_hamstersummary.job_name. + */ + public final TableField JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_hamstersummary.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + private VHamstersummary(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VHamstersummary(Name alias, Table 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 done.v_hamstersummary table reference + */ + public VHamstersummary(String alias) { + this(DSL.name(alias), V_HAMSTERSUMMARY); + } + + /** + * Create an aliased done.v_hamstersummary table reference + */ + public VHamstersummary(Name alias) { + this(alias, V_HAMSTERSUMMARY); + } + + /** + * Create a done.v_hamstersummary 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java new file mode 100644 index 0000000..994a917 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VJob.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_job + */ + public static final VJob V_JOB = new VJob(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VJobRecord.class; + } + + /** + * The column done.v_job.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_job.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_job.percent_usage. + */ + public final TableField PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, ""); + + private VJob(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VJob(Name alias, Table 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 done.v_job table reference + */ + public VJob(String alias) { + this(DSL.name(alias), V_JOB); + } + + /** + * Create an aliased done.v_job table reference + */ + public VJob(Name alias) { + this(alias, V_JOB); + } + + /** + * Create a done.v_job 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java new file mode 100644 index 0000000..5afc2e8 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VModule.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_module + */ + public static final VModule V_MODULE = new VModule(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VModuleRecord.class; + } + + /** + * The column done.v_module.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_module.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_module.percent_usage. + */ + public final TableField PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, ""); + + private VModule(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VModule(Name alias, Table 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 done.v_module table reference + */ + public VModule(String alias) { + this(DSL.name(alias), V_MODULE); + } + + /** + * Create an aliased done.v_module table reference + */ + public VModule(Name alias) { + this(alias, V_MODULE); + } + + /** + * Create a done.v_module 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java new file mode 100644 index 0000000..3ead21f --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VProject.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_project + */ + public static final VProject V_PROJECT = new VProject(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VProjectRecord.class; + } + + /** + * The column done.v_project.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_project.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_project.percent_usage. + */ + public final TableField PERCENT_USAGE = createField(DSL.name("percent_usage"), SQLDataType.NUMERIC, this, ""); + + private VProject(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VProject(Name alias, Table 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 done.v_project table reference + */ + public VProject(String alias) { + this(DSL.name(alias), V_PROJECT); + } + + /** + * Create an aliased done.v_project table reference + */ + public VProject(Name alias) { + this(alias, V_PROJECT); + } + + /** + * Create a done.v_project 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VTasklist.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTasklist.java new file mode 100644 index 0000000..9b11534 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTasklist.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_tasklist + */ + public static final VTasklist V_TASKLIST = new VTasklist(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VTasklistRecord.class; + } + + /** + * The column done.v_tasklist.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_tasklist.duration. + */ + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_tasklist.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_tasklist.module_name. + */ + public final TableField MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_tasklist.job_name. + */ + public final TableField JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_tasklist.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VTasklist(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VTasklist(Name alias, Table 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 done.v_tasklist table reference + */ + public VTasklist(String alias) { + this(DSL.name(alias), V_TASKLIST); + } + + /** + * Create an aliased done.v_tasklist table reference + */ + public VTasklist(Name alias) { + this(alias, V_TASKLIST); + } + + /** + * Create a done.v_tasklist 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VTimelength.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTimelength.java new file mode 100644 index 0000000..9d73f2e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTimelength.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_timelength + */ + public static final VTimelength V_TIMELENGTH = new VTimelength(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VTimelengthRecord.class; + } + + /** + * The column done.v_timelength.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_timelength.duration. + */ + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.INTERVAL, this, ""); + + /** + * The column done.v_timelength.fk_done. + */ + public final TableField FK_DONE = createField(DSL.name("fk_done"), SQLDataType.INTEGER, this, ""); + + /** + * The column done.v_timelength.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VTimelength(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VTimelength(Name alias, Table 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 done.v_timelength table reference + */ + public VTimelength(String alias) { + this(DSL.name(alias), V_TIMELENGTH); + } + + /** + * Create an aliased done.v_timelength table reference + */ + public VTimelength(Name alias) { + this(alias, V_TIMELENGTH); + } + + /** + * Create a done.v_timelength 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VTotalofday.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTotalofday.java new file mode 100644 index 0000000..31eadb3 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VTotalofday.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_totalofday + */ + public static final VTotalofday V_TOTALOFDAY = new VTotalofday(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VTotalofdayRecord.class; + } + + /** + * The column done.v_totalofday.breaktime. + */ + public final TableField BREAKTIME = createField(DSL.name("breaktime"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_totalofday.worktime. + */ + public final TableField WORKTIME = createField(DSL.name("worktime"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_totalofday.starttime. + */ + public final TableField STARTTIME = createField(DSL.name("starttime"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_totalofday.endtime. + */ + public final TableField ENDTIME = createField(DSL.name("endtime"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_totalofday.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_totalofday.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VTotalofday(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VTotalofday(Name alias, Table 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 done.v_totalofday table reference + */ + public VTotalofday(String alias) { + this(DSL.name(alias), V_TOTALOFDAY); + } + + /** + * Create an aliased done.v_totalofday table reference + */ + public VTotalofday(Name alias) { + this(alias, V_TOTALOFDAY); + } + + /** + * Create a done.v_totalofday 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/VWorktime.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/VWorktime.java new file mode 100644 index 0000000..78106fb --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/VWorktime.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of done.v_worktime + */ + public static final VWorktime V_WORKTIME = new VWorktime(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VWorktimeRecord.class; + } + + /** + * The column done.v_worktime.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.duration. + */ + public final TableField DURATION = createField(DSL.name("duration"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.duration_hours. + */ + public final TableField DURATION_HOURS = createField(DSL.name("duration_hours"), SQLDataType.DOUBLE, this, ""); + + /** + * The column done.v_worktime.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.module_name. + */ + public final TableField MODULE_NAME = createField(DSL.name("module_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.job_name. + */ + public final TableField JOB_NAME = createField(DSL.name("job_name"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.billing_shortcut. + */ + public final TableField BILLING_SHORTCUT = createField(DSL.name("billing_shortcut"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.billing_csskey. + */ + public final TableField BILLING_CSSKEY = createField(DSL.name("billing_csskey"), SQLDataType.CLOB, this, ""); + + /** + * The column done.v_worktime.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER, this, ""); + + private VWorktime(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VWorktime(Name alias, Table 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 done.v_worktime table reference + */ + public VWorktime(String alias) { + this(DSL.name(alias), V_WORKTIME); + } + + /** + * Create an aliased done.v_worktime table reference + */ + public VWorktime(Name alias) { + this(alias, V_WORKTIME); + } + + /** + * Create a done.v_worktime 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TBillingRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TBillingRecord.java new file mode 100644 index 0000000..ab914cf --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TBillingRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_billing.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_billing.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_billing.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_billing.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for done.t_billing.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for done.t_billing.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for done.t_billing.shortcut. + */ + public void setShortcut(String value) { + set(3, value); + } + + /** + * Getter for done.t_billing.shortcut. + */ + public String getShortcut() { + return (String) get(3); + } + + /** + * Setter for done.t_billing.csskey. + */ + public void setCsskey(String value) { + set(4, value); + } + + /** + * Getter for done.t_billing.csskey. + */ + public String getCsskey() { + return (String) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TDoneRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TDoneRecord.java new file mode 100644 index 0000000..96f7695 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TDoneRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_done.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_done.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_done.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_done.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for done.t_done.time_from. + */ + public void setTimeFrom(LocalDateTime value) { + set(2, value); + } + + /** + * Getter for done.t_done.time_from. + */ + public LocalDateTime getTimeFrom() { + return (LocalDateTime) get(2); + } + + /** + * Setter for done.t_done.time_until. + */ + public void setTimeUntil(LocalDateTime value) { + set(3, value); + } + + /** + * Getter for done.t_done.time_until. + */ + public LocalDateTime getTimeUntil() { + return (LocalDateTime) get(3); + } + + /** + * Setter for done.t_done.fk_project. + */ + public void setFkProject(Integer value) { + set(4, value); + } + + /** + * Getter for done.t_done.fk_project. + */ + public Integer getFkProject() { + return (Integer) get(4); + } + + /** + * Setter for done.t_done.fk_module. + */ + public void setFkModule(Integer value) { + set(5, value); + } + + /** + * Getter for done.t_done.fk_module. + */ + public Integer getFkModule() { + return (Integer) get(5); + } + + /** + * Setter for done.t_done.fk_job. + */ + public void setFkJob(Integer value) { + set(6, value); + } + + /** + * Getter for done.t_done.fk_job. + */ + public Integer getFkJob() { + return (Integer) get(6); + } + + /** + * Setter for done.t_done.fk_login. + */ + public void setFkLogin(Integer value) { + set(7, value); + } + + /** + * Getter for done.t_done.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(7); + } + + /** + * Setter for done.t_done.fk_billing. + */ + public void setFkBilling(Integer value) { + set(8, value); + } + + /** + * Getter for done.t_done.fk_billing. + */ + public Integer getFkBilling() { + return (Integer) get(8); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFavoriteRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFavoriteRecord.java new file mode 100644 index 0000000..a5b208b --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFavoriteRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_favorite.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_favorite.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_favorite.pk_favorite. + */ + public void setPkFavorite(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_favorite.pk_favorite. + */ + public Integer getPkFavorite() { + return (Integer) get(1); + } + + /** + * Setter for done.t_favorite.fk_login. + */ + public void setFkLogin(Integer value) { + set(2, value); + } + + /** + * Getter for done.t_favorite.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(2); + } + + /** + * Setter for done.t_favorite.fk_project. + */ + public void setFkProject(Integer value) { + set(3, value); + } + + /** + * Getter for done.t_favorite.fk_project. + */ + public Integer getFkProject() { + return (Integer) get(3); + } + + /** + * Setter for done.t_favorite.fk_module. + */ + public void setFkModule(Integer value) { + set(4, value); + } + + /** + * Getter for done.t_favorite.fk_module. + */ + public Integer getFkModule() { + return (Integer) get(4); + } + + /** + * Setter for done.t_favorite.fk_job. + */ + public void setFkJob(Integer value) { + set(5, value); + } + + /** + * Getter for done.t_favorite.fk_job. + */ + public Integer getFkJob() { + return (Integer) get(5); + } + + /** + * Setter for done.t_favorite.fk_billing. + */ + public void setFkBilling(Integer value) { + set(6, value); + } + + /** + * Getter for done.t_favorite.fk_billing. + */ + public Integer getFkBilling() { + return (Integer) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFreetimeRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFreetimeRecord.java new file mode 100644 index 0000000..d6cb624 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TFreetimeRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_freetime.pk_freetime. + */ + public void setPkFreetime(Integer value) { + set(0, value); + } + + /** + * Getter for done.t_freetime.pk_freetime. + */ + public Integer getPkFreetime() { + return (Integer) get(0); + } + + /** + * Setter for done.t_freetime.day. + */ + public void setDay(LocalDate value) { + set(1, value); + } + + /** + * Getter for done.t_freetime.day. + */ + public LocalDate getDay() { + return (LocalDate) get(1); + } + + /** + * Setter for done.t_freetime.required_worktime. + */ + public void setRequiredWorktime(LocalTime value) { + set(2, value); + } + + /** + * Getter for done.t_freetime.required_worktime. + */ + public LocalTime getRequiredWorktime() { + return (LocalTime) get(2); + } + + /** + * Setter for done.t_freetime.reason. + */ + public void setReason(String value) { + set(3, value); + } + + /** + * Getter for done.t_freetime.reason. + */ + public String getReason() { + return (String) get(3); + } + + /** + * Setter for done.t_freetime.fk_login. + */ + public void setFkLogin(Integer value) { + set(4, value); + } + + /** + * Getter for done.t_freetime.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TJobRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TJobRecord.java new file mode 100644 index 0000000..e78ae33 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TJobRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_job.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_job.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_job.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_job.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for done.t_job.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for done.t_job.name. + */ + public String getName() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TModuleRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TModuleRecord.java new file mode 100644 index 0000000..8dc1b57 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TModuleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_module.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_module.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_module.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_module.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for done.t_module.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for done.t_module.name. + */ + public String getName() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TOvertimeRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TOvertimeRecord.java new file mode 100644 index 0000000..75c7c67 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TOvertimeRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_overtime.pk_overtime. + */ + public void setPkOvertime(Integer value) { + set(0, value); + } + + /** + * Getter for done.t_overtime.pk_overtime. + */ + public Integer getPkOvertime() { + return (Integer) get(0); + } + + /** + * Setter for done.t_overtime.impact. + */ + public void setImpact(LocalDateTime value) { + set(1, value); + } + + /** + * Getter for done.t_overtime.impact. + */ + public LocalDateTime getImpact() { + return (LocalDateTime) get(1); + } + + /** + * Setter for done.t_overtime.fk_login. + */ + public void setFkLogin(Integer value) { + set(2, value); + } + + /** + * Getter for done.t_overtime.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(2); + } + + /** + * Setter for done.t_overtime.overtime_minutes. + */ + public void setOvertimeMinutes(Integer value) { + set(3, value); + } + + /** + * Getter for done.t_overtime.overtime_minutes. + */ + public Integer getOvertimeMinutes() { + return (Integer) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TProjectRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TProjectRecord.java new file mode 100644 index 0000000..3525cf6 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TProjectRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_project.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.t_project.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.t_project.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for done.t_project.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for done.t_project.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for done.t_project.name. + */ + public String getName() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TRequiredWorktimeRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TRequiredWorktimeRecord.java new file mode 100644 index 0000000..2887c12 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/TRequiredWorktimeRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.t_required_worktime.pk_required_worktime. + */ + public void setPkRequiredWorktime(Integer value) { + set(0, value); + } + + /** + * Getter for done.t_required_worktime.pk_required_worktime. + */ + public Integer getPkRequiredWorktime() { + return (Integer) get(0); + } + + /** + * Setter for done.t_required_worktime.day. + */ + public void setDay(LocalDate value) { + set(1, value); + } + + /** + * Getter for done.t_required_worktime.day. + */ + public LocalDate getDay() { + return (LocalDate) get(1); + } + + /** + * Setter for done.t_required_worktime.fk_login. + */ + public void setFkLogin(Integer value) { + set(2, value); + } + + /** + * Getter for done.t_required_worktime.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(2); + } + + /** + * Setter for done.t_required_worktime.required_minutes. + */ + public void setRequiredMinutes(Integer value) { + set(3, value); + } + + /** + * Getter for done.t_required_worktime.required_minutes. + */ + public Integer getRequiredMinutes() { + return (Integer) get(3); + } + + /** + * Setter for done.t_required_worktime.reason. + */ + public void setReason(String value) { + set(4, value); + } + + /** + * Getter for done.t_required_worktime.reason. + */ + public String getReason() { + return (String) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VBillingRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VBillingRecord.java new file mode 100644 index 0000000..f654507 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VBillingRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_billing.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_billing.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for done.v_billing.name. + */ + public void setName(String value) { + set(1, value); + } + + /** + * Getter for done.v_billing.name. + */ + public String getName() { + return (String) get(1); + } + + /** + * Setter for done.v_billing.shortcut. + */ + public void setShortcut(String value) { + set(2, value); + } + + /** + * Getter for done.v_billing.shortcut. + */ + public String getShortcut() { + return (String) get(2); + } + + /** + * Setter for done.v_billing.csskey. + */ + public void setCsskey(String value) { + set(3, value); + } + + /** + * Getter for done.v_billing.csskey. + */ + public String getCsskey() { + return (String) get(3); + } + + /** + * Setter for done.v_billing.percent_usage. + */ + public void setPercentUsage(BigDecimal value) { + set(4, value); + } + + /** + * Getter for done.v_billing.percent_usage. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VCurrentOvertimeRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VCurrentOvertimeRecord.java new file mode 100644 index 0000000..af78192 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VCurrentOvertimeRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_current_overtime.overtime. + */ + public void setOvertime(BigDecimal value) { + set(0, value); + } + + /** + * Getter for done.v_current_overtime.overtime. + */ + public BigDecimal getOvertime() { + return (BigDecimal) get(0); + } + + /** + * Setter for done.v_current_overtime.impact. + */ + public void setImpact(String value) { + set(1, value); + } + + /** + * Getter for done.v_current_overtime.impact. + */ + public String getImpact() { + return (String) get(1); + } + + /** + * Setter for done.v_current_overtime.fk_login. + */ + public void setFkLogin(Integer value) { + set(2, value); + } + + /** + * Getter for done.v_current_overtime.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDailyRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDailyRecord.java new file mode 100644 index 0000000..a6f4b69 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDailyRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_daily.worktime. + */ + public void setWorktime(YearToSecond value) { + set(0, value); + } + + /** + * Getter for done.v_daily.worktime. + */ + public YearToSecond getWorktime() { + return (YearToSecond) get(0); + } + + /** + * Setter for done.v_daily.day. + */ + public void setDay(String value) { + set(1, value); + } + + /** + * Getter for done.v_daily.day. + */ + public String getDay() { + return (String) get(1); + } + + /** + * Setter for done.v_daily.login. + */ + public void setLogin(String value) { + set(2, value); + } + + /** + * Getter for done.v_daily.login. + */ + public String getLogin() { + return (String) get(2); + } + + /** + * Setter for done.v_daily.fk_login. + */ + public void setFkLogin(Integer value) { + set(3, value); + } + + /** + * Getter for done.v_daily.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDayRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDayRecord.java new file mode 100644 index 0000000..7b89e45 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDayRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_day.day. + */ + public void setDay(LocalDate value) { + set(0, value); + } + + /** + * Getter for done.v_day.day. + */ + public LocalDate getDay() { + return (LocalDate) get(0); + } + + /** + * Setter for done.v_day.starttime. + */ + public void setStarttime(LocalTime value) { + set(1, value); + } + + /** + * Getter for done.v_day.starttime. + */ + public LocalTime getStarttime() { + return (LocalTime) get(1); + } + + /** + * Setter for done.v_day.endtime. + */ + public void setEndtime(LocalTime value) { + set(2, value); + } + + /** + * Getter for done.v_day.endtime. + */ + public LocalTime getEndtime() { + return (LocalTime) get(2); + } + + /** + * Setter for done.v_day.worktime. + */ + public void setWorktime(YearToSecond value) { + set(3, value); + } + + /** + * Getter for done.v_day.worktime. + */ + public YearToSecond getWorktime() { + return (YearToSecond) get(3); + } + + /** + * Setter for done.v_day.breaktime. + */ + public void setBreaktime(YearToSecond value) { + set(4, value); + } + + /** + * Getter for done.v_day.breaktime. + */ + public YearToSecond getBreaktime() { + return (YearToSecond) get(4); + } + + /** + * Setter for done.v_day.day_overtime. + */ + public void setDayOvertime(YearToSecond value) { + set(5, value); + } + + /** + * Getter for done.v_day.day_overtime. + */ + public YearToSecond getDayOvertime() { + return (YearToSecond) get(5); + } + + /** + * Setter for done.v_day.fk_login. + */ + public void setFkLogin(Integer value) { + set(6, value); + } + + /** + * Getter for done.v_day.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitRecord.java new file mode 100644 index 0000000..5930c3d --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_daylimit.daytime_from. + */ + public void setDaytimeFrom(LocalTime value) { + set(0, value); + } + + /** + * Getter for done.v_daylimit.daytime_from. + */ + public LocalTime getDaytimeFrom() { + return (LocalTime) get(0); + } + + /** + * Setter for done.v_daylimit.daytime_until. + */ + public void setDaytimeUntil(LocalTime value) { + set(1, value); + } + + /** + * Getter for done.v_daylimit.daytime_until. + */ + public LocalTime getDaytimeUntil() { + return (LocalTime) get(1); + } + + /** + * Setter for done.v_daylimit.dayworktime. + */ + public void setDayworktime(LocalTime value) { + set(2, value); + } + + /** + * Getter for done.v_daylimit.dayworktime. + */ + public LocalTime getDayworktime() { + return (LocalTime) get(2); + } + + /** + * Setter for done.v_daylimit.breaks. + */ + public void setBreaks(YearToSecond value) { + set(3, value); + } + + /** + * Getter for done.v_daylimit.breaks. + */ + public YearToSecond getBreaks() { + return (YearToSecond) get(3); + } + + /** + * Setter for done.v_daylimit.day. + */ + public void setDay(LocalDate value) { + set(4, value); + } + + /** + * Getter for done.v_daylimit.day. + */ + public LocalDate getDay() { + return (LocalDate) get(4); + } + + /** + * Setter for done.v_daylimit.fk_login. + */ + public void setFkLogin(Integer value) { + set(5, value); + } + + /** + * Getter for done.v_daylimit.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitsRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitsRecord.java new file mode 100644 index 0000000..ddb0462 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaylimitsRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_daylimits.work_start. + */ + public void setWorkStart(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for done.v_daylimits.work_start. + */ + public LocalDateTime getWorkStart() { + return (LocalDateTime) get(0); + } + + /** + * Setter for done.v_daylimits.work_end. + */ + public void setWorkEnd(OffsetDateTime value) { + set(1, value); + } + + /** + * Getter for done.v_daylimits.work_end. + */ + public OffsetDateTime getWorkEnd() { + return (OffsetDateTime) get(1); + } + + /** + * Setter for done.v_daylimits.day. + */ + public void setDay(String value) { + set(2, value); + } + + /** + * Getter for done.v_daylimits.day. + */ + public String getDay() { + return (String) get(2); + } + + /** + * Setter for done.v_daylimits.fk_login. + */ + public void setFkLogin(Integer value) { + set(3, value); + } + + /** + * Getter for done.v_daylimits.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaysummaryRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaysummaryRecord.java new file mode 100644 index 0000000..84ae645 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDaysummaryRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_daysummary.breaktime. + */ + public void setBreaktime(YearToSecond value) { + set(0, value); + } + + /** + * Getter for done.v_daysummary.breaktime. + */ + public YearToSecond getBreaktime() { + return (YearToSecond) get(0); + } + + /** + * Setter for done.v_daysummary.worktime. + */ + public void setWorktime(YearToSecond value) { + set(1, value); + } + + /** + * Getter for done.v_daysummary.worktime. + */ + public YearToSecond getWorktime() { + return (YearToSecond) get(1); + } + + /** + * Setter for done.v_daysummary.work_start. + */ + public void setWorkStart(LocalDateTime value) { + set(2, value); + } + + /** + * Getter for done.v_daysummary.work_start. + */ + public LocalDateTime getWorkStart() { + return (LocalDateTime) get(2); + } + + /** + * Setter for done.v_daysummary.work_end. + */ + public void setWorkEnd(OffsetDateTime value) { + set(3, value); + } + + /** + * Getter for done.v_daysummary.work_end. + */ + public OffsetDateTime getWorkEnd() { + return (OffsetDateTime) get(3); + } + + /** + * Setter for done.v_daysummary.day. + */ + public void setDay(String value) { + set(4, value); + } + + /** + * Getter for done.v_daysummary.day. + */ + public String getDay() { + return (String) get(4); + } + + /** + * Setter for done.v_daysummary.login. + */ + public void setLogin(String value) { + set(5, value); + } + + /** + * Getter for done.v_daysummary.login. + */ + public String getLogin() { + return (String) get(5); + } + + /** + * Setter for done.v_daysummary.fk_login. + */ + public void setFkLogin(Integer value) { + set(6, value); + } + + /** + * Getter for done.v_daysummary.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDoneRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDoneRecord.java new file mode 100644 index 0000000..072218f --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDoneRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_done.fk_done. + */ + public void setFkDone(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_done.fk_done. + */ + public Integer getFkDone() { + return (Integer) get(0); + } + + /** + * Setter for done.v_done.fk_login. + */ + public void setFkLogin(Integer value) { + set(1, value); + } + + /** + * Getter for done.v_done.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(1); + } + + /** + * Setter for done.v_done.time_from. + */ + public void setTimeFrom(LocalDateTime value) { + set(2, value); + } + + /** + * Getter for done.v_done.time_from. + */ + public LocalDateTime getTimeFrom() { + return (LocalDateTime) get(2); + } + + /** + * Setter for done.v_done.time_until. + */ + public void setTimeUntil(LocalDateTime value) { + set(3, value); + } + + /** + * Getter for done.v_done.time_until. + */ + public LocalDateTime getTimeUntil() { + return (LocalDateTime) get(3); + } + + /** + * Setter for done.v_done.project_name. + */ + public void setProjectName(String value) { + set(4, value); + } + + /** + * Getter for done.v_done.project_name. + */ + public String getProjectName() { + return (String) get(4); + } + + /** + * Setter for done.v_done.module_name. + */ + public void setModuleName(String value) { + set(5, value); + } + + /** + * Getter for done.v_done.module_name. + */ + public String getModuleName() { + return (String) get(5); + } + + /** + * Setter for done.v_done.job_name. + */ + public void setJobName(String value) { + set(6, value); + } + + /** + * Getter for done.v_done.job_name. + */ + public String getJobName() { + return (String) get(6); + } + + /** + * Setter for done.v_done.login. + */ + public void setLogin(String value) { + set(7, value); + } + + /** + * Getter for done.v_done.login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDurationRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDurationRecord.java new file mode 100644 index 0000000..5190d58 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VDurationRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_duration.day. + */ + public void setDay(String value) { + set(0, value); + } + + /** + * Getter for done.v_duration.day. + */ + public String getDay() { + return (String) get(0); + } + + /** + * Setter for done.v_duration.duration. + */ + public void setDuration(YearToSecond value) { + set(1, value); + } + + /** + * Getter for done.v_duration.duration. + */ + public YearToSecond getDuration() { + return (YearToSecond) get(1); + } + + /** + * Setter for done.v_duration.project_name. + */ + public void setProjectName(String value) { + set(2, value); + } + + /** + * Getter for done.v_duration.project_name. + */ + public String getProjectName() { + return (String) get(2); + } + + /** + * Setter for done.v_duration.module_name. + */ + public void setModuleName(String value) { + set(3, value); + } + + /** + * Getter for done.v_duration.module_name. + */ + public String getModuleName() { + return (String) get(3); + } + + /** + * Setter for done.v_duration.job_name. + */ + public void setJobName(String value) { + set(4, value); + } + + /** + * Getter for done.v_duration.job_name. + */ + public String getJobName() { + return (String) get(4); + } + + /** + * Setter for done.v_duration.login. + */ + public void setLogin(String value) { + set(5, value); + } + + /** + * Getter for done.v_duration.login. + */ + public String getLogin() { + return (String) get(5); + } + + /** + * Setter for done.v_duration.fk_login. + */ + public void setFkLogin(Integer value) { + set(6, value); + } + + /** + * Getter for done.v_duration.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VFavoriteRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VFavoriteRecord.java new file mode 100644 index 0000000..73ac0b0 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VFavoriteRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_favorite.pk_favorite. + */ + public void setPkFavorite(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_favorite.pk_favorite. + */ + public Integer getPkFavorite() { + return (Integer) get(0); + } + + /** + * Setter for done.v_favorite.fk_login. + */ + public void setFkLogin(Integer value) { + set(1, value); + } + + /** + * Getter for done.v_favorite.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(1); + } + + /** + * Setter for done.v_favorite.project. + */ + public void setProject(String value) { + set(2, value); + } + + /** + * Getter for done.v_favorite.project. + */ + public String getProject() { + return (String) get(2); + } + + /** + * Setter for done.v_favorite.module. + */ + public void setModule(String value) { + set(3, value); + } + + /** + * Getter for done.v_favorite.module. + */ + public String getModule() { + return (String) get(3); + } + + /** + * Setter for done.v_favorite.job. + */ + public void setJob(String value) { + set(4, value); + } + + /** + * Getter for done.v_favorite.job. + */ + public String getJob() { + return (String) get(4); + } + + /** + * Setter for done.v_favorite.billing. + */ + public void setBilling(String value) { + set(5, value); + } + + /** + * Getter for done.v_favorite.billing. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VHamstersummaryRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VHamstersummaryRecord.java new file mode 100644 index 0000000..83e35e9 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VHamstersummaryRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_hamstersummary.workday. + */ + public void setWorkday(LocalDate value) { + set(0, value); + } + + /** + * Getter for done.v_hamstersummary.workday. + */ + public LocalDate getWorkday() { + return (LocalDate) get(0); + } + + /** + * Setter for done.v_hamstersummary.duration. + */ + public void setDuration(String value) { + set(1, value); + } + + /** + * Getter for done.v_hamstersummary.duration. + */ + public String getDuration() { + return (String) get(1); + } + + /** + * Setter for done.v_hamstersummary.project_name. + */ + public void setProjectName(String value) { + set(2, value); + } + + /** + * Getter for done.v_hamstersummary.project_name. + */ + public String getProjectName() { + return (String) get(2); + } + + /** + * Setter for done.v_hamstersummary.module_name. + */ + public void setModuleName(String value) { + set(3, value); + } + + /** + * Getter for done.v_hamstersummary.module_name. + */ + public String getModuleName() { + return (String) get(3); + } + + /** + * Setter for done.v_hamstersummary.job_name. + */ + public void setJobName(String value) { + set(4, value); + } + + /** + * Getter for done.v_hamstersummary.job_name. + */ + public String getJobName() { + return (String) get(4); + } + + /** + * Setter for done.v_hamstersummary.login. + */ + public void setLogin(String value) { + set(5, value); + } + + /** + * Getter for done.v_hamstersummary.login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VJobRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VJobRecord.java new file mode 100644 index 0000000..59883d1 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VJobRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_job.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_job.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for done.v_job.name. + */ + public void setName(String value) { + set(1, value); + } + + /** + * Getter for done.v_job.name. + */ + public String getName() { + return (String) get(1); + } + + /** + * Setter for done.v_job.percent_usage. + */ + public void setPercentUsage(BigDecimal value) { + set(2, value); + } + + /** + * Getter for done.v_job.percent_usage. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VModuleRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VModuleRecord.java new file mode 100644 index 0000000..d058d18 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VModuleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_module.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_module.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for done.v_module.name. + */ + public void setName(String value) { + set(1, value); + } + + /** + * Getter for done.v_module.name. + */ + public String getName() { + return (String) get(1); + } + + /** + * Setter for done.v_module.percent_usage. + */ + public void setPercentUsage(BigDecimal value) { + set(2, value); + } + + /** + * Getter for done.v_module.percent_usage. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VProjectRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VProjectRecord.java new file mode 100644 index 0000000..fe2aeb5 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VProjectRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_project.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for done.v_project.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for done.v_project.name. + */ + public void setName(String value) { + set(1, value); + } + + /** + * Getter for done.v_project.name. + */ + public String getName() { + return (String) get(1); + } + + /** + * Setter for done.v_project.percent_usage. + */ + public void setPercentUsage(BigDecimal value) { + set(2, value); + } + + /** + * Getter for done.v_project.percent_usage. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTasklistRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTasklistRecord.java new file mode 100644 index 0000000..77c273d --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTasklistRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_tasklist.day. + */ + public void setDay(String value) { + set(0, value); + } + + /** + * Getter for done.v_tasklist.day. + */ + public String getDay() { + return (String) get(0); + } + + /** + * Setter for done.v_tasklist.duration. + */ + public void setDuration(String value) { + set(1, value); + } + + /** + * Getter for done.v_tasklist.duration. + */ + public String getDuration() { + return (String) get(1); + } + + /** + * Setter for done.v_tasklist.project_name. + */ + public void setProjectName(String value) { + set(2, value); + } + + /** + * Getter for done.v_tasklist.project_name. + */ + public String getProjectName() { + return (String) get(2); + } + + /** + * Setter for done.v_tasklist.module_name. + */ + public void setModuleName(String value) { + set(3, value); + } + + /** + * Getter for done.v_tasklist.module_name. + */ + public String getModuleName() { + return (String) get(3); + } + + /** + * Setter for done.v_tasklist.job_name. + */ + public void setJobName(String value) { + set(4, value); + } + + /** + * Getter for done.v_tasklist.job_name. + */ + public String getJobName() { + return (String) get(4); + } + + /** + * Setter for done.v_tasklist.fk_login. + */ + public void setFkLogin(Integer value) { + set(5, value); + } + + /** + * Getter for done.v_tasklist.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTimelengthRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTimelengthRecord.java new file mode 100644 index 0000000..afae9a4 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTimelengthRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_timelength.day. + */ + public void setDay(String value) { + set(0, value); + } + + /** + * Getter for done.v_timelength.day. + */ + public String getDay() { + return (String) get(0); + } + + /** + * Setter for done.v_timelength.duration. + */ + public void setDuration(YearToSecond value) { + set(1, value); + } + + /** + * Getter for done.v_timelength.duration. + */ + public YearToSecond getDuration() { + return (YearToSecond) get(1); + } + + /** + * Setter for done.v_timelength.fk_done. + */ + public void setFkDone(Integer value) { + set(2, value); + } + + /** + * Getter for done.v_timelength.fk_done. + */ + public Integer getFkDone() { + return (Integer) get(2); + } + + /** + * Setter for done.v_timelength.fk_login. + */ + public void setFkLogin(Integer value) { + set(3, value); + } + + /** + * Getter for done.v_timelength.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTotalofdayRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTotalofdayRecord.java new file mode 100644 index 0000000..110a780 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VTotalofdayRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_totalofday.breaktime. + */ + public void setBreaktime(String value) { + set(0, value); + } + + /** + * Getter for done.v_totalofday.breaktime. + */ + public String getBreaktime() { + return (String) get(0); + } + + /** + * Setter for done.v_totalofday.worktime. + */ + public void setWorktime(String value) { + set(1, value); + } + + /** + * Getter for done.v_totalofday.worktime. + */ + public String getWorktime() { + return (String) get(1); + } + + /** + * Setter for done.v_totalofday.starttime. + */ + public void setStarttime(String value) { + set(2, value); + } + + /** + * Getter for done.v_totalofday.starttime. + */ + public String getStarttime() { + return (String) get(2); + } + + /** + * Setter for done.v_totalofday.endtime. + */ + public void setEndtime(String value) { + set(3, value); + } + + /** + * Getter for done.v_totalofday.endtime. + */ + public String getEndtime() { + return (String) get(3); + } + + /** + * Setter for done.v_totalofday.day. + */ + public void setDay(String value) { + set(4, value); + } + + /** + * Getter for done.v_totalofday.day. + */ + public String getDay() { + return (String) get(4); + } + + /** + * Setter for done.v_totalofday.fk_login. + */ + public void setFkLogin(Integer value) { + set(5, value); + } + + /** + * Getter for done.v_totalofday.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VWorktimeRecord.java b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VWorktimeRecord.java new file mode 100644 index 0000000..d4165d2 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/done/tables/records/VWorktimeRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for done.v_worktime.day. + */ + public void setDay(String value) { + set(0, value); + } + + /** + * Getter for done.v_worktime.day. + */ + public String getDay() { + return (String) get(0); + } + + /** + * Setter for done.v_worktime.duration. + */ + public void setDuration(String value) { + set(1, value); + } + + /** + * Getter for done.v_worktime.duration. + */ + public String getDuration() { + return (String) get(1); + } + + /** + * Setter for done.v_worktime.duration_hours. + */ + public void setDurationHours(Double value) { + set(2, value); + } + + /** + * Getter for done.v_worktime.duration_hours. + */ + public Double getDurationHours() { + return (Double) get(2); + } + + /** + * Setter for done.v_worktime.project_name. + */ + public void setProjectName(String value) { + set(3, value); + } + + /** + * Getter for done.v_worktime.project_name. + */ + public String getProjectName() { + return (String) get(3); + } + + /** + * Setter for done.v_worktime.module_name. + */ + public void setModuleName(String value) { + set(4, value); + } + + /** + * Getter for done.v_worktime.module_name. + */ + public String getModuleName() { + return (String) get(4); + } + + /** + * Setter for done.v_worktime.job_name. + */ + public void setJobName(String value) { + set(5, value); + } + + /** + * Getter for done.v_worktime.job_name. + */ + public String getJobName() { + return (String) get(5); + } + + /** + * Setter for done.v_worktime.billing_shortcut. + */ + public void setBillingShortcut(String value) { + set(6, value); + } + + /** + * Getter for done.v_worktime.billing_shortcut. + */ + public String getBillingShortcut() { + return (String) get(6); + } + + /** + * Setter for done.v_worktime.billing_csskey. + */ + public void setBillingCsskey(String value) { + set(7, value); + } + + /** + * Getter for done.v_worktime.billing_csskey. + */ + public String getBillingCsskey() { + return (String) get(7); + } + + /** + * Setter for done.v_worktime.fk_login. + */ + public void setFkLogin(Integer value) { + set(8, value); + } + + /** + * Getter for done.v_worktime.fk_login. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/Keys.java b/src/main/java/de/jottyfan/timetrack/db/note/Keys.java new file mode 100644 index 0000000..8f5c9be --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/Keys.java @@ -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 T_NOTE_PKEY = Internal.createUniqueKey(TNote.T_NOTE, DSL.name("t_note_pkey"), new TableField[] { TNote.T_NOTE.PK }, true); +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/Note.java b/src/main/java/de/jottyfan/timetrack/db/note/Note.java new file mode 100644 index 0000000..d2cbdd1 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/Note.java @@ -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 note + */ + public static final Note NOTE = new Note(); + + /** + * The table note.t_note. + */ + 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> getTables() { + return Arrays.asList( + TNote.T_NOTE + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/Tables.java b/src/main/java/de/jottyfan/timetrack/db/note/Tables.java new file mode 100644 index 0000000..3971d6c --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/Tables.java @@ -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 note.t_note. + */ + public static final TNote T_NOTE = TNote.T_NOTE; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumCategory.java b/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumCategory.java new file mode 100644 index 0000000..368f71e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumCategory.java @@ -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 + * null, 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); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumNotetype.java b/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumNotetype.java new file mode 100644 index 0000000..1089f0a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/enums/EnumNotetype.java @@ -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 + * null, 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); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java b/src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java new file mode 100644 index 0000000..39a36c5 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/tables/TNote.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of note.t_note + */ + public static final TNote T_NOTE = new TNote(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TNoteRecord.class; + } + + /** + * The column note.t_note.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column note.t_note.title. + */ + public final TableField TITLE = createField(DSL.name("title"), SQLDataType.CLOB, this, ""); + + /** + * The column note.t_note.category. + */ + public final TableField CATEGORY = createField(DSL.name("category"), SQLDataType.VARCHAR.asEnumDataType(EnumCategory.class), this, ""); + + /** + * The column note.t_note.notetype. + */ + public final TableField NOTETYPE = createField(DSL.name("notetype"), SQLDataType.VARCHAR.asEnumDataType(EnumNotetype.class), this, ""); + + /** + * The column note.t_note.content. + */ + public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB, this, ""); + + /** + * The column note.t_note.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + private TNote(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TNote(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased note.t_note table reference + */ + public TNote(String alias) { + this(DSL.name(alias), T_NOTE); + } + + /** + * Create an aliased note.t_note table reference + */ + public TNote(Name alias) { + this(alias, T_NOTE); + } + + /** + * Create a note.t_note table reference + */ + public TNote() { + this(DSL.name("t_note"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Note.NOTE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/note/tables/records/TNoteRecord.java b/src/main/java/de/jottyfan/timetrack/db/note/tables/records/TNoteRecord.java new file mode 100644 index 0000000..2e2a019 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/note/tables/records/TNoteRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for note.t_note.pk. + */ + public void setPk(Integer value) { + set(0, value); + } + + /** + * Getter for note.t_note.pk. + */ + public Integer getPk() { + return (Integer) get(0); + } + + /** + * Setter for note.t_note.title. + */ + public void setTitle(String value) { + set(1, value); + } + + /** + * Getter for note.t_note.title. + */ + public String getTitle() { + return (String) get(1); + } + + /** + * Setter for note.t_note.category. + */ + public void setCategory(EnumCategory value) { + set(2, value); + } + + /** + * Getter for note.t_note.category. + */ + public EnumCategory getCategory() { + return (EnumCategory) get(2); + } + + /** + * Setter for note.t_note.notetype. + */ + public void setNotetype(EnumNotetype value) { + set(3, value); + } + + /** + * Getter for note.t_note.notetype. + */ + public EnumNotetype getNotetype() { + return (EnumNotetype) get(3); + } + + /** + * Setter for note.t_note.content. + */ + public void setContent(String value) { + set(4, value); + } + + /** + * Getter for note.t_note.content. + */ + public String getContent() { + return (String) get(4); + } + + /** + * Setter for note.t_note.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(5, value); + } + + /** + * Getter for note.t_note.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/Keys.java b/src/main/java/de/jottyfan/timetrack/db/profile/Keys.java new file mode 100644 index 0000000..44f131f --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/Keys.java @@ -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 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 T_LOGIN_PKEY = Internal.createUniqueKey(TLogin.T_LOGIN, DSL.name("t_login_pkey"), new TableField[] { TLogin.T_LOGIN.PK }, true); + public static final UniqueKey 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 T_LOGINROLE_PKEY = Internal.createUniqueKey(TLoginrole.T_LOGINROLE, DSL.name("t_loginrole_pkey"), new TableField[] { TLoginrole.T_LOGINROLE.PK }, true); + public static final UniqueKey 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 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 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 T_ROLE_PKEY = Internal.createUniqueKey(TRole.T_ROLE, DSL.name("t_role_pkey"), new TableField[] { TRole.T_ROLE.PK }, true); +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/Profile.java b/src/main/java/de/jottyfan/timetrack/db/profile/Profile.java new file mode 100644 index 0000000..276ef70 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/Profile.java @@ -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 profile + */ + public static final Profile PROFILE = new Profile(); + + /** + * The table profile.t_login. + */ + public final TLogin T_LOGIN = TLogin.T_LOGIN; + + /** + * The table profile.t_loginrole. + */ + public final TLoginrole T_LOGINROLE = TLoginrole.T_LOGINROLE; + + /** + * The table profile.t_profile. + */ + public final TProfile T_PROFILE = TProfile.T_PROFILE; + + /** + * The table profile.t_role. + */ + public final TRole T_ROLE = TRole.T_ROLE; + + /** + * The table profile.v_loginrole. + */ + 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> getTables() { + return Arrays.asList( + TLogin.T_LOGIN, + TLoginrole.T_LOGINROLE, + TProfile.T_PROFILE, + TRole.T_ROLE, + VLoginrole.V_LOGINROLE + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/Tables.java b/src/main/java/de/jottyfan/timetrack/db/profile/Tables.java new file mode 100644 index 0000000..a285e7e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/Tables.java @@ -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 profile.t_login. + */ + public static final TLogin T_LOGIN = TLogin.T_LOGIN; + + /** + * The table profile.t_loginrole. + */ + public static final TLoginrole T_LOGINROLE = TLoginrole.T_LOGINROLE; + + /** + * The table profile.t_profile. + */ + public static final TProfile T_PROFILE = TProfile.T_PROFILE; + + /** + * The table profile.t_role. + */ + public static final TRole T_ROLE = TRole.T_ROLE; + + /** + * The table profile.v_loginrole. + */ + public static final VLoginrole V_LOGINROLE = VLoginrole.V_LOGINROLE; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLogin.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLogin.java new file mode 100644 index 0000000..2f72e20 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLogin.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of profile.t_login + */ + public static final TLogin T_LOGIN = new TLogin(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TLoginRecord.class; + } + + /** + * The column profile.t_login.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column profile.t_login.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column profile.t_login.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column profile.t_login.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); + + /** + * The column profile.t_login.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); + + /** + * The column profile.t_login.duedate. + */ + public final TableField DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); + + /** + * The column profile.t_login.password. + */ + public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.CLOB.nullable(false), this, ""); + + private TLogin(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TLogin(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased profile.t_login table reference + */ + public TLogin(String alias) { + this(DSL.name(alias), T_LOGIN); + } + + /** + * Create an aliased profile.t_login table reference + */ + public TLogin(Name alias) { + this(alias, T_LOGIN); + } + + /** + * Create a profile.t_login table reference + */ + public TLogin() { + this(DSL.name("t_login"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Profile.PROFILE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_LOGIN_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLoginrole.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLoginrole.java new file mode 100644 index 0000000..a14076d --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TLoginrole.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of profile.t_loginrole + */ + public static final TLoginrole T_LOGINROLE = new TLoginrole(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TLoginroleRecord.class; + } + + /** + * The column profile.t_loginrole.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column profile.t_loginrole.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column profile.t_loginrole.fk_login. + */ + public final TableField FK_LOGIN = createField(DSL.name("fk_login"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column profile.t_loginrole.fk_role. + */ + public final TableField FK_ROLE = createField(DSL.name("fk_role"), SQLDataType.INTEGER.nullable(false), this, ""); + + private TLoginrole(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TLoginrole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased profile.t_loginrole table reference + */ + public TLoginrole(String alias) { + this(DSL.name(alias), T_LOGINROLE); + } + + /** + * Create an aliased profile.t_loginrole table reference + */ + public TLoginrole(Name alias) { + this(alias, T_LOGINROLE); + } + + /** + * Create a profile.t_loginrole table reference + */ + public TLoginrole() { + this(DSL.name("t_loginrole"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Profile.PROFILE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_LOGINROLE_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/TProfile.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TProfile.java new file mode 100644 index 0000000..006dd66 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TProfile.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of profile.t_profile + */ + public static final TProfile T_PROFILE = new TProfile(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TProfileRecord.class; + } + + /** + * The column profile.t_profile.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column profile.t_profile.pk_profile. + */ + public final TableField PK_PROFILE = createField(DSL.name("pk_profile"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column profile.t_profile.username. + */ + public final TableField USERNAME = createField(DSL.name("username"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column profile.t_profile.theme. + */ + public final TableField THEME = createField(DSL.name("theme"), SQLDataType.CLOB.nullable(false).defaultValue(DSL.field(DSL.raw("'light'::text"), SQLDataType.CLOB)), this, ""); + + /** + * The column profile.t_profile.dynamic_css. + */ + public final TableField DYNAMIC_CSS = createField(DSL.name("dynamic_css"), SQLDataType.CLOB, this, ""); + + private TProfile(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TProfile(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased profile.t_profile table reference + */ + public TProfile(String alias) { + this(DSL.name(alias), T_PROFILE); + } + + /** + * Create an aliased profile.t_profile table reference + */ + public TProfile(Name alias) { + this(alias, T_PROFILE); + } + + /** + * Create a profile.t_profile table reference + */ + public TProfile() { + this(DSL.name("t_profile"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Profile.PROFILE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_PROFILE_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java new file mode 100644 index 0000000..f2bd534 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/TRole.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of profile.t_role + */ + public static final TRole T_ROLE = new TRole(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TRoleRecord.class; + } + + /** + * The column profile.t_role.lastchange. + */ + public final TableField LASTCHANGE = createField(DSL.name("lastchange"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column profile.t_role.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column profile.t_role.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + private TRole(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TRole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased profile.t_role table reference + */ + public TRole(String alias) { + this(DSL.name(alias), T_ROLE); + } + + /** + * Create an aliased profile.t_role table reference + */ + public TRole(Name alias) { + this(alias, T_ROLE); + } + + /** + * Create a profile.t_role table reference + */ + public TRole() { + this(DSL.name("t_role"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Profile.PROFILE; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_ROLE_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/VLoginrole.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/VLoginrole.java new file mode 100644 index 0000000..3a45b0b --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/VLoginrole.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of profile.v_loginrole + */ + public static final VLoginrole V_LOGINROLE = new VLoginrole(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VLoginroleRecord.class; + } + + /** + * The column profile.v_loginrole.login. + */ + public final TableField LOGIN = createField(DSL.name("login"), SQLDataType.CLOB, this, ""); + + /** + * The column profile.v_loginrole.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); + + /** + * The column profile.v_loginrole.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); + + /** + * The column profile.v_loginrole.duedate. + */ + public final TableField DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column profile.v_loginrole.role_name. + */ + public final TableField ROLE_NAME = createField(DSL.name("role_name"), SQLDataType.CLOB, this, ""); + + private VLoginrole(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VLoginrole(Name alias, Table 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 profile.v_loginrole table reference + */ + public VLoginrole(String alias) { + this(DSL.name(alias), V_LOGINROLE); + } + + /** + * Create an aliased profile.v_loginrole table reference + */ + public VLoginrole(Name alias) { + this(alias, V_LOGINROLE); + } + + /** + * Create a profile.v_loginrole 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginRecord.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginRecord.java new file mode 100644 index 0000000..8d59998 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for profile.t_login.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for profile.t_login.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for profile.t_login.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for profile.t_login.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for profile.t_login.login. + */ + public void setLogin(String value) { + set(2, value); + } + + /** + * Getter for profile.t_login.login. + */ + public String getLogin() { + return (String) get(2); + } + + /** + * Setter for profile.t_login.forename. + */ + public void setForename(String value) { + set(3, value); + } + + /** + * Getter for profile.t_login.forename. + */ + public String getForename() { + return (String) get(3); + } + + /** + * Setter for profile.t_login.surname. + */ + public void setSurname(String value) { + set(4, value); + } + + /** + * Getter for profile.t_login.surname. + */ + public String getSurname() { + return (String) get(4); + } + + /** + * Setter for profile.t_login.duedate. + */ + public void setDuedate(LocalDateTime value) { + set(5, value); + } + + /** + * Getter for profile.t_login.duedate. + */ + public LocalDateTime getDuedate() { + return (LocalDateTime) get(5); + } + + /** + * Setter for profile.t_login.password. + */ + public void setPassword(String value) { + set(6, value); + } + + /** + * Getter for profile.t_login.password. + */ + public String getPassword() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginroleRecord.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginroleRecord.java new file mode 100644 index 0000000..4bb4677 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TLoginroleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for profile.t_loginrole.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for profile.t_loginrole.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for profile.t_loginrole.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for profile.t_loginrole.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for profile.t_loginrole.fk_login. + */ + public void setFkLogin(Integer value) { + set(2, value); + } + + /** + * Getter for profile.t_loginrole.fk_login. + */ + public Integer getFkLogin() { + return (Integer) get(2); + } + + /** + * Setter for profile.t_loginrole.fk_role. + */ + public void setFkRole(Integer value) { + set(3, value); + } + + /** + * Getter for profile.t_loginrole.fk_role. + */ + public Integer getFkRole() { + return (Integer) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TProfileRecord.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TProfileRecord.java new file mode 100644 index 0000000..cb4bbcc --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TProfileRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for profile.t_profile.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for profile.t_profile.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for profile.t_profile.pk_profile. + */ + public void setPkProfile(Integer value) { + set(1, value); + } + + /** + * Getter for profile.t_profile.pk_profile. + */ + public Integer getPkProfile() { + return (Integer) get(1); + } + + /** + * Setter for profile.t_profile.username. + */ + public void setUsername(String value) { + set(2, value); + } + + /** + * Getter for profile.t_profile.username. + */ + public String getUsername() { + return (String) get(2); + } + + /** + * Setter for profile.t_profile.theme. + */ + public void setTheme(String value) { + set(3, value); + } + + /** + * Getter for profile.t_profile.theme. + */ + public String getTheme() { + return (String) get(3); + } + + /** + * Setter for profile.t_profile.dynamic_css. + */ + public void setDynamicCss(String value) { + set(4, value); + } + + /** + * Getter for profile.t_profile.dynamic_css. + */ + public String getDynamicCss() { + return (String) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TRoleRecord.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TRoleRecord.java new file mode 100644 index 0000000..2bc5c55 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/TRoleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for profile.t_role.lastchange. + */ + public void setLastchange(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for profile.t_role.lastchange. + */ + public LocalDateTime getLastchange() { + return (LocalDateTime) get(0); + } + + /** + * Setter for profile.t_role.pk. + */ + public void setPk(Integer value) { + set(1, value); + } + + /** + * Getter for profile.t_role.pk. + */ + public Integer getPk() { + return (Integer) get(1); + } + + /** + * Setter for profile.t_role.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for profile.t_role.name. + */ + public String getName() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/VLoginroleRecord.java b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/VLoginroleRecord.java new file mode 100644 index 0000000..907256a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/profile/tables/records/VLoginroleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for profile.v_loginrole.login. + */ + public void setLogin(String value) { + set(0, value); + } + + /** + * Getter for profile.v_loginrole.login. + */ + public String getLogin() { + return (String) get(0); + } + + /** + * Setter for profile.v_loginrole.forename. + */ + public void setForename(String value) { + set(1, value); + } + + /** + * Getter for profile.v_loginrole.forename. + */ + public String getForename() { + return (String) get(1); + } + + /** + * Setter for profile.v_loginrole.surname. + */ + public void setSurname(String value) { + set(2, value); + } + + /** + * Getter for profile.v_loginrole.surname. + */ + public String getSurname() { + return (String) get(2); + } + + /** + * Setter for profile.v_loginrole.duedate. + */ + public void setDuedate(LocalDateTime value) { + set(3, value); + } + + /** + * Getter for profile.v_loginrole.duedate. + */ + public LocalDateTime getDuedate() { + return (LocalDateTime) get(3); + } + + /** + * Setter for profile.v_loginrole.role_name. + */ + public void setRoleName(String value) { + set(4, value); + } + + /** + * Getter for profile.v_loginrole.role_name. + */ + 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/Keys.java b/src/main/java/de/jottyfan/timetrack/db/project/Keys.java new file mode 100644 index 0000000..7a28ef4 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/Keys.java @@ -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 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 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 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 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 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 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 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 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 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 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); +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/Project.java b/src/main/java/de/jottyfan/timetrack/db/project/Project.java new file mode 100644 index 0000000..27fd5ff --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/Project.java @@ -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 project + */ + public static final Project PROJECT = new Project(); + + /** + * The table project.t_app. + */ + public final TApp T_APP = TApp.T_APP; + + /** + * The table project.t_bundle. + */ + public final TBundle T_BUNDLE = TBundle.T_BUNDLE; + + /** + * The table project.t_funder. + */ + public final TFunder T_FUNDER = TFunder.T_FUNDER; + + /** + * The table project.t_progress. + */ + public final TProgress T_PROGRESS = TProgress.T_PROGRESS; + + /** + * The table project.t_project. + */ + public final TProject T_PROJECT = TProject.T_PROJECT; + + /** + * The table project.t_workpackage. + */ + public final TWorkpackage T_WORKPACKAGE = TWorkpackage.T_WORKPACKAGE; + + /** + * The table project.t_workpackage_app. + */ + public final TWorkpackageApp T_WORKPACKAGE_APP = TWorkpackageApp.T_WORKPACKAGE_APP; + + /** + * The table project.v_bundle_apps. + */ + 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> 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 + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/Tables.java b/src/main/java/de/jottyfan/timetrack/db/project/Tables.java new file mode 100644 index 0000000..6cc628a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/Tables.java @@ -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 project.t_app. + */ + public static final TApp T_APP = TApp.T_APP; + + /** + * The table project.t_bundle. + */ + public static final TBundle T_BUNDLE = TBundle.T_BUNDLE; + + /** + * The table project.t_funder. + */ + public static final TFunder T_FUNDER = TFunder.T_FUNDER; + + /** + * The table project.t_progress. + */ + public static final TProgress T_PROGRESS = TProgress.T_PROGRESS; + + /** + * The table project.t_project. + */ + public static final TProject T_PROJECT = TProject.T_PROJECT; + + /** + * The table project.t_workpackage. + */ + public static final TWorkpackage T_WORKPACKAGE = TWorkpackage.T_WORKPACKAGE; + + /** + * The table project.t_workpackage_app. + */ + public static final TWorkpackageApp T_WORKPACKAGE_APP = TWorkpackageApp.T_WORKPACKAGE_APP; + + /** + * The table project.v_bundle_apps. + */ + public static final VBundleApps V_BUNDLE_APPS = VBundleApps.V_BUNDLE_APPS; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/enums/EnumPhase.java b/src/main/java/de/jottyfan/timetrack/db/project/enums/EnumPhase.java new file mode 100644 index 0000000..a6fcdd2 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/enums/EnumPhase.java @@ -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 + * null, 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); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java new file mode 100644 index 0000000..f60b590 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TApp.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_app + */ + public static final TApp T_APP = new TApp(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TAppRecord.class; + } + + /** + * The column project.t_app.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_app.pk_app. + */ + public final TableField PK_APP = createField(DSL.name("pk_app"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_app.fk_bundle. + */ + public final TableField FK_BUNDLE = createField(DSL.name("fk_bundle"), SQLDataType.INTEGER, this, ""); + + /** + * The column project.t_app.basic_functionality. + */ + public final TableField BASIC_FUNCTIONALITY = createField(DSL.name("basic_functionality"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_app.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_app.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_app.fk_replaced_by_app. + */ + public final TableField FK_REPLACED_BY_APP = createField(DSL.name("fk_replaced_by_app"), SQLDataType.INTEGER, this, ""); + + /** + * The column project.t_app.repository_url. + */ + public final TableField REPOSITORY_URL = createField(DSL.name("repository_url"), SQLDataType.CLOB, this, ""); + + private TApp(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TApp(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_app table reference + */ + public TApp(String alias) { + this(DSL.name(alias), T_APP); + } + + /** + * Create an aliased project.t_app table reference + */ + public TApp(Name alias) { + this(alias, T_APP); + } + + /** + * Create a project.t_app table reference + */ + public TApp() { + this(DSL.name("t_app"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TBundle.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TBundle.java new file mode 100644 index 0000000..b64dbd7 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TBundle.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_bundle + */ + public static final TBundle T_BUNDLE = new TBundle(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TBundleRecord.class; + } + + /** + * The column project.t_bundle.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_bundle.pk_bundle. + */ + public final TableField PK_BUNDLE = createField(DSL.name("pk_bundle"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_bundle.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column project.t_bundle.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); + + private TBundle(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TBundle(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_bundle table reference + */ + public TBundle(String alias) { + this(DSL.name(alias), T_BUNDLE); + } + + /** + * Create an aliased project.t_bundle table reference + */ + public TBundle(Name alias) { + this(alias, T_BUNDLE); + } + + /** + * Create a project.t_bundle table reference + */ + public TBundle() { + this(DSL.name("t_bundle"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_BUNDLE_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TFunder.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TFunder.java new file mode 100644 index 0000000..c99d53e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TFunder.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_funder + */ + public static final TFunder T_FUNDER = new TFunder(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TFunderRecord.class; + } + + /** + * The column project.t_funder.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_funder.pk_funder. + */ + public final TableField PK_FUNDER = createField(DSL.name("pk_funder"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_funder.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column project.t_funder.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); + + private TFunder(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TFunder(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_funder table reference + */ + public TFunder(String alias) { + this(DSL.name(alias), T_FUNDER); + } + + /** + * Create an aliased project.t_funder table reference + */ + public TFunder(Name alias) { + this(alias, T_FUNDER); + } + + /** + * Create a project.t_funder table reference + */ + public TFunder() { + this(DSL.name("t_funder"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_FUNDER_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TProgress.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TProgress.java new file mode 100644 index 0000000..426067b --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TProgress.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_progress + */ + public static final TProgress T_PROGRESS = new TProgress(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TProgressRecord.class; + } + + /** + * The column project.t_progress.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_progress.pk_progress. + */ + public final TableField PK_PROGRESS = createField(DSL.name("pk_progress"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_progress.progress. + */ + public final TableField PROGRESS = createField(DSL.name("progress"), SQLDataType.TINYINT.nullable(false), this, ""); + + /** + * The column project.t_progress.phase. + */ + public final TableField PHASE = createField(DSL.name("phase"), SQLDataType.VARCHAR.asEnumDataType(EnumPhase.class), this, ""); + + private TProgress(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TProgress(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_progress table reference + */ + public TProgress(String alias) { + this(DSL.name(alias), T_PROGRESS); + } + + /** + * Create an aliased project.t_progress table reference + */ + public TProgress(Name alias) { + this(alias, T_PROGRESS); + } + + /** + * Create a project.t_progress table reference + */ + public TProgress() { + this(DSL.name("t_progress"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TProject.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TProject.java new file mode 100644 index 0000000..72ad6eb --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TProject.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_project + */ + public static final TProject T_PROJECT = new TProject(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TProjectRecord.class; + } + + /** + * The column project.t_project.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_project.pk_project. + */ + public final TableField PK_PROJECT = createField(DSL.name("pk_project"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_project.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column project.t_project.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_project.fk_funder. + */ + public final TableField FK_FUNDER = createField(DSL.name("fk_funder"), SQLDataType.INTEGER, this, ""); + + private TProject(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TProject(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_project table reference + */ + public TProject(String alias) { + this(DSL.name(alias), T_PROJECT); + } + + /** + * Create an aliased project.t_project table reference + */ + public TProject(Name alias) { + this(alias, T_PROJECT); + } + + /** + * Create a project.t_project table reference + */ + public TProject() { + this(DSL.name("t_project"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackage.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackage.java new file mode 100644 index 0000000..1d79270 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackage.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_workpackage + */ + public static final TWorkpackage T_WORKPACKAGE = new TWorkpackage(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TWorkpackageRecord.class; + } + + /** + * The column project.t_workpackage.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_workpackage.pk_workpackage. + */ + public final TableField PK_WORKPACKAGE = createField(DSL.name("pk_workpackage"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_workpackage.fk_project. + */ + public final TableField FK_PROJECT = createField(DSL.name("fk_project"), SQLDataType.INTEGER, this, ""); + + /** + * The column project.t_workpackage.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * The column project.t_workpackage.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_workpackage.milestone_url. + */ + public final TableField MILESTONE_URL = createField(DSL.name("milestone_url"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_workpackage.contract_url. + */ + public final TableField CONTRACT_URL = createField(DSL.name("contract_url"), SQLDataType.CLOB, this, ""); + + /** + * The column project.t_workpackage.planned_duedate. + */ + public final TableField PLANNED_DUEDATE = createField(DSL.name("planned_duedate"), SQLDataType.LOCALDATE, this, ""); + + private TWorkpackage(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TWorkpackage(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_workpackage table reference + */ + public TWorkpackage(String alias) { + this(DSL.name(alias), T_WORKPACKAGE); + } + + /** + * Create an aliased project.t_workpackage table reference + */ + public TWorkpackage(Name alias) { + this(alias, T_WORKPACKAGE); + } + + /** + * Create a project.t_workpackage table reference + */ + public TWorkpackage() { + this(DSL.name("t_workpackage"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackageApp.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackageApp.java new file mode 100644 index 0000000..97cc077 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/TWorkpackageApp.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.t_workpackage_app + */ + public static final TWorkpackageApp T_WORKPACKAGE_APP = new TWorkpackageApp(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TWorkpackageAppRecord.class; + } + + /** + * The column project.t_workpackage_app.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column project.t_workpackage_app.pk_workpackage_app. + */ + public final TableField PK_WORKPACKAGE_APP = createField(DSL.name("pk_workpackage_app"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column project.t_workpackage_app.fk_workpackage. + */ + public final TableField FK_WORKPACKAGE = createField(DSL.name("fk_workpackage"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column project.t_workpackage_app.fk_app. + */ + public final TableField FK_APP = createField(DSL.name("fk_app"), SQLDataType.INTEGER.nullable(false), this, ""); + + private TWorkpackageApp(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TWorkpackageApp(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased project.t_workpackage_app table reference + */ + public TWorkpackageApp(String alias) { + this(DSL.name(alias), T_WORKPACKAGE_APP); + } + + /** + * Create an aliased project.t_workpackage_app table reference + */ + public TWorkpackageApp(Name alias) { + this(alias, T_WORKPACKAGE_APP); + } + + /** + * Create a project.t_workpackage_app table reference + */ + public TWorkpackageApp() { + this(DSL.name("t_workpackage_app"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Project.PROJECT; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_WORKPACKAGE_APP_PKEY; + } + + @Override + public List> 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/VBundleApps.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/VBundleApps.java new file mode 100644 index 0000000..d7cc8fc --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/VBundleApps.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of project.v_bundle_apps + */ + public static final VBundleApps V_BUNDLE_APPS = new VBundleApps(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VBundleAppsRecord.class; + } + + /** + * The column project.v_bundle_apps.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column project.v_bundle_apps.string_agg. + */ + public final TableField STRING_AGG = createField(DSL.name("string_agg"), SQLDataType.CLOB, this, ""); + + private VBundleApps(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VBundleApps(Name alias, Table 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 project.v_bundle_apps table reference + */ + public VBundleApps(String alias) { + this(DSL.name(alias), V_BUNDLE_APPS); + } + + /** + * Create an aliased project.v_bundle_apps table reference + */ + public VBundleApps(Name alias) { + this(alias, V_BUNDLE_APPS); + } + + /** + * Create a project.v_bundle_apps 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 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 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)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TAppRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TAppRecord.java new file mode 100644 index 0000000..b0c1015 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TAppRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_app.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_app.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_app.pk_app. + */ + public void setPkApp(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_app.pk_app. + */ + public Integer getPkApp() { + return (Integer) get(1); + } + + /** + * Setter for project.t_app.fk_bundle. + */ + public void setFkBundle(Integer value) { + set(2, value); + } + + /** + * Getter for project.t_app.fk_bundle. + */ + public Integer getFkBundle() { + return (Integer) get(2); + } + + /** + * Setter for project.t_app.basic_functionality. + */ + public void setBasicFunctionality(String value) { + set(3, value); + } + + /** + * Getter for project.t_app.basic_functionality. + */ + public String getBasicFunctionality() { + return (String) get(3); + } + + /** + * Setter for project.t_app.name. + */ + public void setName(String value) { + set(4, value); + } + + /** + * Getter for project.t_app.name. + */ + public String getName() { + return (String) get(4); + } + + /** + * Setter for project.t_app.description. + */ + public void setDescription(String value) { + set(5, value); + } + + /** + * Getter for project.t_app.description. + */ + public String getDescription() { + return (String) get(5); + } + + /** + * Setter for project.t_app.fk_replaced_by_app. + */ + public void setFkReplacedByApp(Integer value) { + set(6, value); + } + + /** + * Getter for project.t_app.fk_replaced_by_app. + */ + public Integer getFkReplacedByApp() { + return (Integer) get(6); + } + + /** + * Setter for project.t_app.repository_url. + */ + public void setRepositoryUrl(String value) { + set(7, value); + } + + /** + * Getter for project.t_app.repository_url. + */ + public String getRepositoryUrl() { + return (String) get(7); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TBundleRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TBundleRecord.java new file mode 100644 index 0000000..9830f5e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TBundleRecord.java @@ -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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_bundle.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_bundle.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_bundle.pk_bundle. + */ + public void setPkBundle(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_bundle.pk_bundle. + */ + public Integer getPkBundle() { + return (Integer) get(1); + } + + /** + * Setter for project.t_bundle.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for project.t_bundle.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for project.t_bundle.description. + */ + public void setDescription(String value) { + set(3, value); + } + + /** + * Getter for project.t_bundle.description. + */ + public String getDescription() { + return (String) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 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(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TFunderRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TFunderRecord.java new file mode 100644 index 0000000..9c29c6a --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TFunderRecord.java @@ -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.TFunder; + +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 TFunderRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_funder.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_funder.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_funder.pk_funder. + */ + public void setPkFunder(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_funder.pk_funder. + */ + public Integer getPkFunder() { + return (Integer) get(1); + } + + /** + * Setter for project.t_funder.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for project.t_funder.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for project.t_funder.description. + */ + public void setDescription(String value) { + set(3, value); + } + + /** + * Getter for project.t_funder.description. + */ + public String getDescription() { + return (String) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TFunderRecord + */ + public TFunderRecord() { + super(TFunder.T_FUNDER); + } + + /** + * Create a detached, initialised TFunderRecord + */ + public TFunderRecord(LocalDateTime created, Integer pkFunder, String name, String description) { + super(TFunder.T_FUNDER); + + setCreated(created); + setPkFunder(pkFunder); + setName(name); + setDescription(description); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProgressRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProgressRecord.java new file mode 100644 index 0000000..7ea1335 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProgressRecord.java @@ -0,0 +1,112 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.project.tables.records; + + +import de.jottyfan.timetrack.db.project.enums.EnumPhase; +import de.jottyfan.timetrack.db.project.tables.TProgress; + +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 TProgressRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_progress.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_progress.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_progress.pk_progress. + */ + public void setPkProgress(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_progress.pk_progress. + */ + public Integer getPkProgress() { + return (Integer) get(1); + } + + /** + * Setter for project.t_progress.progress. + */ + public void setProgress(Byte value) { + set(2, value); + } + + /** + * Getter for project.t_progress.progress. + */ + public Byte getProgress() { + return (Byte) get(2); + } + + /** + * Setter for project.t_progress.phase. + */ + public void setPhase(EnumPhase value) { + set(3, value); + } + + /** + * Getter for project.t_progress.phase. + */ + public EnumPhase getPhase() { + return (EnumPhase) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TProgressRecord + */ + public TProgressRecord() { + super(TProgress.T_PROGRESS); + } + + /** + * Create a detached, initialised TProgressRecord + */ + public TProgressRecord(LocalDateTime created, Integer pkProgress, Byte progress, EnumPhase phase) { + super(TProgress.T_PROGRESS); + + setCreated(created); + setPkProgress(pkProgress); + setProgress(progress); + setPhase(phase); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProjectRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProjectRecord.java new file mode 100644 index 0000000..c80c5dd --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TProjectRecord.java @@ -0,0 +1,126 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.project.tables.records; + + +import de.jottyfan.timetrack.db.project.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 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_project.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_project.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_project.pk_project. + */ + public void setPkProject(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_project.pk_project. + */ + public Integer getPkProject() { + return (Integer) get(1); + } + + /** + * Setter for project.t_project.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for project.t_project.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for project.t_project.description. + */ + public void setDescription(String value) { + set(3, value); + } + + /** + * Getter for project.t_project.description. + */ + public String getDescription() { + return (String) get(3); + } + + /** + * Setter for project.t_project.fk_funder. + */ + public void setFkFunder(Integer value) { + set(4, value); + } + + /** + * Getter for project.t_project.fk_funder. + */ + public Integer getFkFunder() { + return (Integer) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TProjectRecord + */ + public TProjectRecord() { + super(TProject.T_PROJECT); + } + + /** + * Create a detached, initialised TProjectRecord + */ + public TProjectRecord(LocalDateTime created, Integer pkProject, String name, String description, Integer fkFunder) { + super(TProject.T_PROJECT); + + setCreated(created); + setPkProject(pkProject); + setName(name); + setDescription(description); + setFkFunder(fkFunder); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageAppRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageAppRecord.java new file mode 100644 index 0000000..70471f7 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageAppRecord.java @@ -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.TWorkpackageApp; + +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 TWorkpackageAppRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_workpackage_app.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_workpackage_app.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_workpackage_app.pk_workpackage_app. + */ + public void setPkWorkpackageApp(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_workpackage_app.pk_workpackage_app. + */ + public Integer getPkWorkpackageApp() { + return (Integer) get(1); + } + + /** + * Setter for project.t_workpackage_app.fk_workpackage. + */ + public void setFkWorkpackage(Integer value) { + set(2, value); + } + + /** + * Getter for project.t_workpackage_app.fk_workpackage. + */ + public Integer getFkWorkpackage() { + return (Integer) get(2); + } + + /** + * Setter for project.t_workpackage_app.fk_app. + */ + public void setFkApp(Integer value) { + set(3, value); + } + + /** + * Getter for project.t_workpackage_app.fk_app. + */ + public Integer getFkApp() { + return (Integer) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TWorkpackageAppRecord + */ + public TWorkpackageAppRecord() { + super(TWorkpackageApp.T_WORKPACKAGE_APP); + } + + /** + * Create a detached, initialised TWorkpackageAppRecord + */ + public TWorkpackageAppRecord(LocalDateTime created, Integer pkWorkpackageApp, Integer fkWorkpackage, Integer fkApp) { + super(TWorkpackageApp.T_WORKPACKAGE_APP); + + setCreated(created); + setPkWorkpackageApp(pkWorkpackageApp); + setFkWorkpackage(fkWorkpackage); + setFkApp(fkApp); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageRecord.java new file mode 100644 index 0000000..92d0ecd --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/TWorkpackageRecord.java @@ -0,0 +1,172 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.project.tables.records; + + +import de.jottyfan.timetrack.db.project.tables.TWorkpackage; + +import java.time.LocalDate; +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 TWorkpackageRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.t_workpackage.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for project.t_workpackage.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for project.t_workpackage.pk_workpackage. + */ + public void setPkWorkpackage(Integer value) { + set(1, value); + } + + /** + * Getter for project.t_workpackage.pk_workpackage. + */ + public Integer getPkWorkpackage() { + return (Integer) get(1); + } + + /** + * Setter for project.t_workpackage.fk_project. + */ + public void setFkProject(Integer value) { + set(2, value); + } + + /** + * Getter for project.t_workpackage.fk_project. + */ + public Integer getFkProject() { + return (Integer) get(2); + } + + /** + * Setter for project.t_workpackage.name. + */ + public void setName(String value) { + set(3, value); + } + + /** + * Getter for project.t_workpackage.name. + */ + public String getName() { + return (String) get(3); + } + + /** + * Setter for project.t_workpackage.description. + */ + public void setDescription(String value) { + set(4, value); + } + + /** + * Getter for project.t_workpackage.description. + */ + public String getDescription() { + return (String) get(4); + } + + /** + * Setter for project.t_workpackage.milestone_url. + */ + public void setMilestoneUrl(String value) { + set(5, value); + } + + /** + * Getter for project.t_workpackage.milestone_url. + */ + public String getMilestoneUrl() { + return (String) get(5); + } + + /** + * Setter for project.t_workpackage.contract_url. + */ + public void setContractUrl(String value) { + set(6, value); + } + + /** + * Getter for project.t_workpackage.contract_url. + */ + public String getContractUrl() { + return (String) get(6); + } + + /** + * Setter for project.t_workpackage.planned_duedate. + */ + public void setPlannedDuedate(LocalDate value) { + set(7, value); + } + + /** + * Getter for project.t_workpackage.planned_duedate. + */ + public LocalDate getPlannedDuedate() { + return (LocalDate) get(7); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TWorkpackageRecord + */ + public TWorkpackageRecord() { + super(TWorkpackage.T_WORKPACKAGE); + } + + /** + * Create a detached, initialised TWorkpackageRecord + */ + public TWorkpackageRecord(LocalDateTime created, Integer pkWorkpackage, Integer fkProject, String name, String description, String milestoneUrl, String contractUrl, LocalDate plannedDuedate) { + super(TWorkpackage.T_WORKPACKAGE); + + setCreated(created); + setPkWorkpackage(pkWorkpackage); + setFkProject(fkProject); + setName(name); + setDescription(description); + setMilestoneUrl(milestoneUrl); + setContractUrl(contractUrl); + setPlannedDuedate(plannedDuedate); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/project/tables/records/VBundleAppsRecord.java b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/VBundleAppsRecord.java new file mode 100644 index 0000000..d370a1b --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/project/tables/records/VBundleAppsRecord.java @@ -0,0 +1,69 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.project.tables.records; + + +import de.jottyfan.timetrack.db.project.tables.VBundleApps; + +import org.jooq.impl.TableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class VBundleAppsRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for project.v_bundle_apps.name. + */ + public void setName(String value) { + set(0, value); + } + + /** + * Getter for project.v_bundle_apps.name. + */ + public String getName() { + return (String) get(0); + } + + /** + * Setter for project.v_bundle_apps.string_agg. + */ + public void setStringAgg(String value) { + set(1, value); + } + + /** + * Getter for project.v_bundle_apps.string_agg. + */ + public String getStringAgg() { + return (String) get(1); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached VBundleAppsRecord + */ + public VBundleAppsRecord() { + super(VBundleApps.V_BUNDLE_APPS); + } + + /** + * Create a detached, initialised VBundleAppsRecord + */ + public VBundleAppsRecord(String name, String stringAgg) { + super(VBundleApps.V_BUNDLE_APPS); + + setName(name); + setStringAgg(stringAgg); + resetChangedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/public_/Public.java b/src/main/java/de/jottyfan/timetrack/db/public_/Public.java new file mode 100644 index 0000000..067223f --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/public_/Public.java @@ -0,0 +1,55 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.public_; + + +import de.jottyfan.timetrack.db.DefaultCatalog; +import de.jottyfan.timetrack.db.public_.tables.VVersion; + +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 Public extends SchemaImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public + */ + public static final Public PUBLIC = new Public(); + + /** + * The table public.v_version. + */ + public final VVersion V_VERSION = VVersion.V_VERSION; + + /** + * No further instances allowed + */ + private Public() { + super("public", null); + } + + + @Override + public Catalog getCatalog() { + return DefaultCatalog.DEFAULT_CATALOG; + } + + @Override + public final List> getTables() { + return Arrays.asList( + VVersion.V_VERSION + ); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/public_/Tables.java b/src/main/java/de/jottyfan/timetrack/db/public_/Tables.java new file mode 100644 index 0000000..943ceb8 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/public_/Tables.java @@ -0,0 +1,20 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.public_; + + +import de.jottyfan.timetrack.db.public_.tables.VVersion; + + +/** + * Convenience access to all tables in public. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class Tables { + + /** + * The table public.v_version. + */ + public static final VVersion V_VERSION = VVersion.V_VERSION; +} diff --git a/src/main/java/de/jottyfan/timetrack/db/public_/tables/VVersion.java b/src/main/java/de/jottyfan/timetrack/db/public_/tables/VVersion.java new file mode 100644 index 0000000..04d909e --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/public_/tables/VVersion.java @@ -0,0 +1,213 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.public_.tables; + + +import de.jottyfan.timetrack.db.public_.Public; +import de.jottyfan.timetrack.db.public_.tables.records.VVersionRecord; + +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 VVersion extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.v_version + */ + public static final VVersion V_VERSION = new VVersion(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VVersionRecord.class; + } + + /** + * The column public.v_version.version. + */ + public final TableField VERSION = createField(DSL.name("version"), SQLDataType.INTEGER, this, ""); + + private VVersion(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VVersion(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_version" as SELECT 20260114 AS version; + """), where); + } + + /** + * Create an aliased public.v_version table reference + */ + public VVersion(String alias) { + this(DSL.name(alias), V_VERSION); + } + + /** + * Create an aliased public.v_version table reference + */ + public VVersion(Name alias) { + this(alias, V_VERSION); + } + + /** + * Create a public.v_version table reference + */ + public VVersion() { + this(DSL.name("v_version"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public VVersion as(String alias) { + return new VVersion(DSL.name(alias), this); + } + + @Override + public VVersion as(Name alias) { + return new VVersion(alias, this); + } + + @Override + public VVersion as(Table alias) { + return new VVersion(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public VVersion rename(String name) { + return new VVersion(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public VVersion rename(Name name) { + return new VVersion(name, null); + } + + /** + * Rename this table + */ + @Override + public VVersion rename(Table name) { + return new VVersion(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Condition condition) { + return new VVersion(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/timetrack/db/public_/tables/records/VVersionRecord.java b/src/main/java/de/jottyfan/timetrack/db/public_/tables/records/VVersionRecord.java new file mode 100644 index 0000000..3300ff3 --- /dev/null +++ b/src/main/java/de/jottyfan/timetrack/db/public_/tables/records/VVersionRecord.java @@ -0,0 +1,54 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.timetrack.db.public_.tables.records; + + +import de.jottyfan.timetrack.db.public_.tables.VVersion; + +import org.jooq.impl.TableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class VVersionRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.v_version.version. + */ + public void setVersion(Integer value) { + set(0, value); + } + + /** + * Getter for public.v_version.version. + */ + public Integer getVersion() { + return (Integer) get(0); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached VVersionRecord + */ + public VVersionRecord() { + super(VVersion.V_VERSION); + } + + /** + * Create a detached, initialised VVersionRecord + */ + public VVersionRecord(Integer version) { + super(VVersion.V_VERSION); + + setVersion(version); + resetChangedOnNotNull(); + } +}