This commit is contained in:
Jottyfan
2023-09-09 23:19:09 +02:00
commit 6320697009
43 changed files with 6576 additions and 0 deletions

View File

@ -0,0 +1,54 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
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" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
/**
* The schema <code>public</code>.
*/
public final Public PUBLIC = Public.PUBLIC;
/**
* No further instances allowed
*/
private DefaultCatalog() {
super("");
}
@Override
public final List<Schema> getSchemas() {
return Arrays.asList(
Public.PUBLIC
);
}
/**
* A reference to the 3.16 minor release of the code generator. If this
* doesn't compile, it's because the runtime library uses an older minor
* release, namely: 3.16. 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_16;
}

View File

@ -0,0 +1,60 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.records.TLessonRecord;
import de.jottyfan.bico.db.tables.records.TLessonSubjectRecord;
import de.jottyfan.bico.db.tables.records.TPersonRecord;
import de.jottyfan.bico.db.tables.records.TSlotRecord;
import de.jottyfan.bico.db.tables.records.TSourceRecord;
import de.jottyfan.bico.db.tables.records.TSubjectRecord;
import org.jooq.ForeignKey;
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
* public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<TLessonRecord> T_LESSON_FK_LESSONDAY_KEY = Internal.createUniqueKey(TLesson.T_LESSON, DSL.name("t_lesson_fk_lessonday_key"), new TableField[] { TLesson.T_LESSON.FK_SLOT }, true);
public static final UniqueKey<TLessonRecord> T_LESSON_PKEY = Internal.createUniqueKey(TLesson.T_LESSON, DSL.name("t_lesson_pkey"), new TableField[] { TLesson.T_LESSON.PK_LESSON }, true);
public static final UniqueKey<TLessonSubjectRecord> T_LESSON_SUBJECT_FK_LESSON_FK_SUBJECT_KEY = Internal.createUniqueKey(TLessonSubject.T_LESSON_SUBJECT, DSL.name("t_lesson_subject_fk_lesson_fk_subject_key"), new TableField[] { TLessonSubject.T_LESSON_SUBJECT.FK_LESSON, TLessonSubject.T_LESSON_SUBJECT.FK_SUBJECT }, true);
public static final UniqueKey<TLessonSubjectRecord> T_LESSON_SUBJECT_PKEY = Internal.createUniqueKey(TLessonSubject.T_LESSON_SUBJECT, DSL.name("t_lesson_subject_pkey"), new TableField[] { TLessonSubject.T_LESSON_SUBJECT.PK_LESSON_SUBJECT }, true);
public static final UniqueKey<TPersonRecord> T_PERSON_ABBREVIATION_KEY = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("t_person_abbreviation_key"), new TableField[] { TPerson.T_PERSON.ABBREVIATION }, true);
public static final UniqueKey<TPersonRecord> T_PERSON_FORENAME_SURNAME_KEY = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("t_person_forename_surname_key"), new TableField[] { TPerson.T_PERSON.FORENAME, TPerson.T_PERSON.SURNAME }, true);
public static final UniqueKey<TPersonRecord> T_PERSON_PKEY = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("t_person_pkey"), new TableField[] { TPerson.T_PERSON.PK_PERSON }, true);
public static final UniqueKey<TSlotRecord> T_LESSONDAY_LESSON_DAY_KEY = Internal.createUniqueKey(TSlot.T_SLOT, DSL.name("t_lessonday_lesson_day_key"), new TableField[] { TSlot.T_SLOT.SLOT_DAY }, true);
public static final UniqueKey<TSlotRecord> T_LESSONDAY_PKEY = Internal.createUniqueKey(TSlot.T_SLOT, DSL.name("t_lessonday_pkey"), new TableField[] { TSlot.T_SLOT.PK_SLOT }, true);
public static final UniqueKey<TSourceRecord> T_SOURCE_NAME_KEY = Internal.createUniqueKey(TSource.T_SOURCE, DSL.name("t_source_name_key"), new TableField[] { TSource.T_SOURCE.NAME }, true);
public static final UniqueKey<TSourceRecord> T_SOURCE_PKEY = Internal.createUniqueKey(TSource.T_SOURCE, DSL.name("t_source_pkey"), new TableField[] { TSource.T_SOURCE.PK_SOURCE }, true);
public static final UniqueKey<TSubjectRecord> T_SUBJECT_PKEY = Internal.createUniqueKey(TSubject.T_SUBJECT, DSL.name("t_subject_pkey"), new TableField[] { TSubject.T_SUBJECT.PK_SUBJECT }, true);
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey<TLessonRecord, TSlotRecord> T_LESSON__T_LESSON_FK_LESSONDAY_FKEY = Internal.createForeignKey(TLesson.T_LESSON, DSL.name("t_lesson_fk_lessonday_fkey"), new TableField[] { TLesson.T_LESSON.FK_SLOT }, Keys.T_LESSONDAY_PKEY, new TableField[] { TSlot.T_SLOT.PK_SLOT }, true);
public static final ForeignKey<TLessonRecord, TPersonRecord> T_LESSON__T_LESSON_FK_PERSON_FKEY = Internal.createForeignKey(TLesson.T_LESSON, DSL.name("t_lesson_fk_person_fkey"), new TableField[] { TLesson.T_LESSON.FK_PERSON }, Keys.T_PERSON_PKEY, new TableField[] { TPerson.T_PERSON.PK_PERSON }, true);
public static final ForeignKey<TLessonSubjectRecord, TLessonRecord> T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY = Internal.createForeignKey(TLessonSubject.T_LESSON_SUBJECT, DSL.name("t_lesson_subject_fk_lesson_fkey"), new TableField[] { TLessonSubject.T_LESSON_SUBJECT.FK_LESSON }, Keys.T_LESSON_PKEY, new TableField[] { TLesson.T_LESSON.PK_LESSON }, true);
public static final ForeignKey<TLessonSubjectRecord, TSubjectRecord> T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY = Internal.createForeignKey(TLessonSubject.T_LESSON_SUBJECT, DSL.name("t_lesson_subject_fk_subject_fkey"), new TableField[] { TLessonSubject.T_LESSON_SUBJECT.FK_SUBJECT }, Keys.T_SUBJECT_PKEY, new TableField[] { TSubject.T_SUBJECT.PK_SUBJECT }, true);
public static final ForeignKey<TSubjectRecord, TSourceRecord> T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY = Internal.createForeignKey(TSubject.T_SUBJECT, DSL.name("t_subject_fk_source_fkey"), new TableField[] { TSubject.T_SUBJECT.FK_SOURCE }, Keys.T_SOURCE_PKEY, new TableField[] { TSource.T_SOURCE.PK_SOURCE }, true);
}

View File

@ -0,0 +1,110 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.VCalendar;
import de.jottyfan.bico.db.tables.VLesson;
import de.jottyfan.bico.db.tables.VLessonMissing;
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" })
public class Public extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public</code>
*/
public static final Public PUBLIC = new Public();
/**
* The table <code>public.t_lesson</code>.
*/
public final TLesson T_LESSON = TLesson.T_LESSON;
/**
* The table <code>public.t_lesson_subject</code>.
*/
public final TLessonSubject T_LESSON_SUBJECT = TLessonSubject.T_LESSON_SUBJECT;
/**
* The table <code>public.t_person</code>.
*/
public final TPerson T_PERSON = TPerson.T_PERSON;
/**
* The table <code>public.t_slot</code>.
*/
public final TSlot T_SLOT = TSlot.T_SLOT;
/**
* The table <code>public.t_source</code>.
*/
public final TSource T_SOURCE = TSource.T_SOURCE;
/**
* The table <code>public.t_subject</code>.
*/
public final TSubject T_SUBJECT = TSubject.T_SUBJECT;
/**
* The table <code>public.v_calendar</code>.
*/
public final VCalendar V_CALENDAR = VCalendar.V_CALENDAR;
/**
* The table <code>public.v_lesson</code>.
*/
public final VLesson V_LESSON = VLesson.V_LESSON;
/**
* The table <code>public.v_lesson_missing</code>.
*/
public final VLessonMissing V_LESSON_MISSING = VLessonMissing.V_LESSON_MISSING;
/**
* No further instances allowed
*/
private Public() {
super("public", null);
}
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
TLesson.T_LESSON,
TLessonSubject.T_LESSON_SUBJECT,
TPerson.T_PERSON,
TSlot.T_SLOT,
TSource.T_SOURCE,
TSubject.T_SUBJECT,
VCalendar.V_CALENDAR,
VLesson.V_LESSON,
VLessonMissing.V_LESSON_MISSING
);
}
}

View File

@ -0,0 +1,68 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.VCalendar;
import de.jottyfan.bico.db.tables.VLesson;
import de.jottyfan.bico.db.tables.VLessonMissing;
/**
* Convenience access to all tables in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {
/**
* The table <code>public.t_lesson</code>.
*/
public static final TLesson T_LESSON = TLesson.T_LESSON;
/**
* The table <code>public.t_lesson_subject</code>.
*/
public static final TLessonSubject T_LESSON_SUBJECT = TLessonSubject.T_LESSON_SUBJECT;
/**
* The table <code>public.t_person</code>.
*/
public static final TPerson T_PERSON = TPerson.T_PERSON;
/**
* The table <code>public.t_slot</code>.
*/
public static final TSlot T_SLOT = TSlot.T_SLOT;
/**
* The table <code>public.t_source</code>.
*/
public static final TSource T_SOURCE = TSource.T_SOURCE;
/**
* The table <code>public.t_subject</code>.
*/
public static final TSubject T_SUBJECT = TSubject.T_SUBJECT;
/**
* The table <code>public.v_calendar</code>.
*/
public static final VCalendar V_CALENDAR = VCalendar.V_CALENDAR;
/**
* The table <code>public.v_lesson</code>.
*/
public static final VLesson V_LESSON = VLesson.V_LESSON;
/**
* The table <code>public.v_lesson_missing</code>.
*/
public static final VLessonMissing V_LESSON_MISSING = VLessonMissing.V_LESSON_MISSING;
}

View File

@ -0,0 +1,186 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TLessonRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row4;
import org.jooq.Schema;
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" })
public class TLesson extends TableImpl<TLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson</code>
*/
public static final TLesson T_LESSON = new TLesson();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonRecord> getRecordType() {
return TLessonRecord.class;
}
/**
* The column <code>public.t_lesson.pk_lesson</code>.
*/
public final TableField<TLessonRecord, Integer> PK_LESSON = createField(DSL.name("pk_lesson"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson.fk_slot</code>.
*/
public final TableField<TLessonRecord, Integer> FK_SLOT = createField(DSL.name("fk_slot"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson.fk_person</code>.
*/
public final TableField<TLessonRecord, Integer> FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER, this, "");
/**
* The column <code>public.t_lesson.notes</code>.
*/
public final TableField<TLessonRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
private TLesson(Name alias, Table<TLessonRecord> aliased) {
this(alias, aliased, null);
}
private TLesson(Name alias, Table<TLessonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(String alias) {
this(DSL.name(alias), T_LESSON);
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(Name alias) {
this(alias, T_LESSON);
}
/**
* Create a <code>public.t_lesson</code> table reference
*/
public TLesson() {
this(DSL.name("t_lesson"), null);
}
public <O extends Record> TLesson(Table<O> child, ForeignKey<O, TLessonRecord> key) {
super(child, key, T_LESSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonRecord, Integer> getIdentity() {
return (Identity<TLessonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonRecord> getPrimaryKey() {
return Keys.T_LESSON_PKEY;
}
@Override
public List<UniqueKey<TLessonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_FK_LESSONDAY_KEY);
}
@Override
public List<ForeignKey<TLessonRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY);
}
private transient TSlot _tSlot;
private transient TPerson _tPerson;
/**
* Get the implicit join path to the <code>public.t_slot</code> table.
*/
public TSlot tSlot() {
if (_tSlot == null)
_tSlot = new TSlot(this, Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY);
return _tSlot;
}
/**
* Get the implicit join path to the <code>public.t_person</code> table.
*/
public TPerson tPerson() {
if (_tPerson == null)
_tPerson = new TPerson(this, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY);
return _tPerson;
}
@Override
public TLesson as(String alias) {
return new TLesson(DSL.name(alias), this);
}
@Override
public TLesson as(Name alias) {
return new TLesson(alias, this);
}
/**
* Rename this table
*/
@Override
public TLesson rename(String name) {
return new TLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLesson rename(Name name) {
return new TLesson(name, null);
}
// -------------------------------------------------------------------------
// Row4 type methods
// -------------------------------------------------------------------------
@Override
public Row4<Integer, Integer, Integer, String> fieldsRow() {
return (Row4) super.fieldsRow();
}
}

View File

@ -0,0 +1,181 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TLessonSubjectRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row3;
import org.jooq.Schema;
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" })
public class TLessonSubject extends TableImpl<TLessonSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson_subject</code>
*/
public static final TLessonSubject T_LESSON_SUBJECT = new TLessonSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonSubjectRecord> getRecordType() {
return TLessonSubjectRecord.class;
}
/**
* The column <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> PK_LESSON_SUBJECT = createField(DSL.name("pk_lesson_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson_subject.fk_lesson</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_LESSON = createField(DSL.name("fk_lesson"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson_subject.fk_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_SUBJECT = createField(DSL.name("fk_subject"), SQLDataType.INTEGER.nullable(false), this, "");
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased) {
this(alias, aliased, null);
}
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(String alias) {
this(DSL.name(alias), T_LESSON_SUBJECT);
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(Name alias) {
this(alias, T_LESSON_SUBJECT);
}
/**
* Create a <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject() {
this(DSL.name("t_lesson_subject"), null);
}
public <O extends Record> TLessonSubject(Table<O> child, ForeignKey<O, TLessonSubjectRecord> key) {
super(child, key, T_LESSON_SUBJECT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonSubjectRecord, Integer> getIdentity() {
return (Identity<TLessonSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonSubjectRecord> getPrimaryKey() {
return Keys.T_LESSON_SUBJECT_PKEY;
}
@Override
public List<UniqueKey<TLessonSubjectRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_SUBJECT_FK_LESSON_FK_SUBJECT_KEY);
}
@Override
public List<ForeignKey<TLessonSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY);
}
private transient TLesson _tLesson;
private transient TSubject _tSubject;
/**
* Get the implicit join path to the <code>public.t_lesson</code> table.
*/
public TLesson tLesson() {
if (_tLesson == null)
_tLesson = new TLesson(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY);
return _tLesson;
}
/**
* Get the implicit join path to the <code>public.t_subject</code> table.
*/
public TSubject tSubject() {
if (_tSubject == null)
_tSubject = new TSubject(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY);
return _tSubject;
}
@Override
public TLessonSubject as(String alias) {
return new TLessonSubject(DSL.name(alias), this);
}
@Override
public TLessonSubject as(Name alias) {
return new TLessonSubject(alias, this);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(String name) {
return new TLessonSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(Name name) {
return new TLessonSubject(name, null);
}
// -------------------------------------------------------------------------
// Row3 type methods
// -------------------------------------------------------------------------
@Override
public Row3<Integer, Integer, Integer> fieldsRow() {
return (Row3) super.fieldsRow();
}
}

View File

@ -0,0 +1,158 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TPersonRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row4;
import org.jooq.Schema;
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" })
public class TPerson extends TableImpl<TPersonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_person</code>
*/
public static final TPerson T_PERSON = new TPerson();
/**
* The class holding records for this type
*/
@Override
public Class<TPersonRecord> getRecordType() {
return TPersonRecord.class;
}
/**
* The column <code>public.t_person.pk_person</code>.
*/
public final TableField<TPersonRecord, Integer> PK_PERSON = createField(DSL.name("pk_person"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_person.forename</code>.
*/
public final TableField<TPersonRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.surname</code>.
*/
public final TableField<TPersonRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.abbreviation</code>.
*/
public final TableField<TPersonRecord, String> ABBREVIATION = createField(DSL.name("abbreviation"), SQLDataType.CLOB, this, "");
private TPerson(Name alias, Table<TPersonRecord> aliased) {
this(alias, aliased, null);
}
private TPerson(Name alias, Table<TPersonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(String alias) {
this(DSL.name(alias), T_PERSON);
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(Name alias) {
this(alias, T_PERSON);
}
/**
* Create a <code>public.t_person</code> table reference
*/
public TPerson() {
this(DSL.name("t_person"), null);
}
public <O extends Record> TPerson(Table<O> child, ForeignKey<O, TPersonRecord> key) {
super(child, key, T_PERSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TPersonRecord, Integer> getIdentity() {
return (Identity<TPersonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TPersonRecord> getPrimaryKey() {
return Keys.T_PERSON_PKEY;
}
@Override
public List<UniqueKey<TPersonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_PERSON_FORENAME_SURNAME_KEY, Keys.T_PERSON_ABBREVIATION_KEY);
}
@Override
public TPerson as(String alias) {
return new TPerson(DSL.name(alias), this);
}
@Override
public TPerson as(Name alias) {
return new TPerson(alias, this);
}
/**
* Rename this table
*/
@Override
public TPerson rename(String name) {
return new TPerson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TPerson rename(Name name) {
return new TPerson(name, null);
}
// -------------------------------------------------------------------------
// Row4 type methods
// -------------------------------------------------------------------------
@Override
public Row4<Integer, String, String, String> fieldsRow() {
return (Row4) super.fieldsRow();
}
}

View File

@ -0,0 +1,154 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSlotRecord;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row3;
import org.jooq.Schema;
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" })
public class TSlot extends TableImpl<TSlotRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_slot</code>
*/
public static final TSlot T_SLOT = new TSlot();
/**
* The class holding records for this type
*/
@Override
public Class<TSlotRecord> getRecordType() {
return TSlotRecord.class;
}
/**
* The column <code>public.t_slot.pk_slot</code>.
*/
public final TableField<TSlotRecord, Integer> PK_SLOT = createField(DSL.name("pk_slot"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_slot.slot_day</code>.
*/
public final TableField<TSlotRecord, LocalDate> SLOT_DAY = createField(DSL.name("slot_day"), SQLDataType.LOCALDATE.nullable(false), this, "");
/**
* The column <code>public.t_slot.note</code>.
*/
public final TableField<TSlotRecord, String> NOTE = createField(DSL.name("note"), SQLDataType.CLOB, this, "");
private TSlot(Name alias, Table<TSlotRecord> aliased) {
this(alias, aliased, null);
}
private TSlot(Name alias, Table<TSlotRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(String alias) {
this(DSL.name(alias), T_SLOT);
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(Name alias) {
this(alias, T_SLOT);
}
/**
* Create a <code>public.t_slot</code> table reference
*/
public TSlot() {
this(DSL.name("t_slot"), null);
}
public <O extends Record> TSlot(Table<O> child, ForeignKey<O, TSlotRecord> key) {
super(child, key, T_SLOT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSlotRecord, Integer> getIdentity() {
return (Identity<TSlotRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSlotRecord> getPrimaryKey() {
return Keys.T_LESSONDAY_PKEY;
}
@Override
public List<UniqueKey<TSlotRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSONDAY_LESSON_DAY_KEY);
}
@Override
public TSlot as(String alias) {
return new TSlot(DSL.name(alias), this);
}
@Override
public TSlot as(Name alias) {
return new TSlot(alias, this);
}
/**
* Rename this table
*/
@Override
public TSlot rename(String name) {
return new TSlot(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSlot rename(Name name) {
return new TSlot(name, null);
}
// -------------------------------------------------------------------------
// Row3 type methods
// -------------------------------------------------------------------------
@Override
public Row3<Integer, LocalDate, String> fieldsRow() {
return (Row3) super.fieldsRow();
}
}

View File

@ -0,0 +1,148 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSourceRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row2;
import org.jooq.Schema;
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" })
public class TSource extends TableImpl<TSourceRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_source</code>
*/
public static final TSource T_SOURCE = new TSource();
/**
* The class holding records for this type
*/
@Override
public Class<TSourceRecord> getRecordType() {
return TSourceRecord.class;
}
/**
* The column <code>public.t_source.pk_source</code>.
*/
public final TableField<TSourceRecord, Integer> PK_SOURCE = createField(DSL.name("pk_source"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_source.name</code>.
*/
public final TableField<TSourceRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
private TSource(Name alias, Table<TSourceRecord> aliased) {
this(alias, aliased, null);
}
private TSource(Name alias, Table<TSourceRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(String alias) {
this(DSL.name(alias), T_SOURCE);
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(Name alias) {
this(alias, T_SOURCE);
}
/**
* Create a <code>public.t_source</code> table reference
*/
public TSource() {
this(DSL.name("t_source"), null);
}
public <O extends Record> TSource(Table<O> child, ForeignKey<O, TSourceRecord> key) {
super(child, key, T_SOURCE);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSourceRecord, Integer> getIdentity() {
return (Identity<TSourceRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSourceRecord> getPrimaryKey() {
return Keys.T_SOURCE_PKEY;
}
@Override
public List<UniqueKey<TSourceRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_SOURCE_NAME_KEY);
}
@Override
public TSource as(String alias) {
return new TSource(DSL.name(alias), this);
}
@Override
public TSource as(Name alias) {
return new TSource(alias, this);
}
/**
* Rename this table
*/
@Override
public TSource rename(String name) {
return new TSource(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSource rename(Name name) {
return new TSource(name, null);
}
// -------------------------------------------------------------------------
// Row2 type methods
// -------------------------------------------------------------------------
@Override
public Row2<Integer, String> fieldsRow() {
return (Row2) super.fieldsRow();
}
}

View File

@ -0,0 +1,195 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSubjectRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row9;
import org.jooq.Schema;
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" })
public class TSubject extends TableImpl<TSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_subject</code>
*/
public static final TSubject T_SUBJECT = new TSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TSubjectRecord> getRecordType() {
return TSubjectRecord.class;
}
/**
* The column <code>public.t_subject.pk_subject</code>.
*/
public final TableField<TSubjectRecord, Integer> PK_SUBJECT = createField(DSL.name("pk_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_subject.fk_source</code>.
*/
public final TableField<TSubjectRecord, Integer> FK_SOURCE = createField(DSL.name("fk_source"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_subject.theme</code>.
*/
public final TableField<TSubjectRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_subject.subtheme</code>.
*/
public final TableField<TSubjectRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.book_pages</code>.
*/
public final TableField<TSubjectRecord, String> BOOK_PAGES = createField(DSL.name("book_pages"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.worksheets</code>.
*/
public final TableField<TSubjectRecord, String> WORKSHEETS = createField(DSL.name("worksheets"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.bibleverse</code>.
*/
public final TableField<TSubjectRecord, String> BIBLEVERSE = createField(DSL.name("bibleverse"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.notes</code>.
*/
public final TableField<TSubjectRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.order_nr</code>.
*/
public final TableField<TSubjectRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private TSubject(Name alias, Table<TSubjectRecord> aliased) {
this(alias, aliased, null);
}
private TSubject(Name alias, Table<TSubjectRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(String alias) {
this(DSL.name(alias), T_SUBJECT);
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(Name alias) {
this(alias, T_SUBJECT);
}
/**
* Create a <code>public.t_subject</code> table reference
*/
public TSubject() {
this(DSL.name("t_subject"), null);
}
public <O extends Record> TSubject(Table<O> child, ForeignKey<O, TSubjectRecord> key) {
super(child, key, T_SUBJECT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSubjectRecord, Integer> getIdentity() {
return (Identity<TSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSubjectRecord> getPrimaryKey() {
return Keys.T_SUBJECT_PKEY;
}
@Override
public List<ForeignKey<TSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY);
}
private transient TSource _tSource;
/**
* Get the implicit join path to the <code>public.t_source</code> table.
*/
public TSource tSource() {
if (_tSource == null)
_tSource = new TSource(this, Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY);
return _tSource;
}
@Override
public TSubject as(String alias) {
return new TSubject(DSL.name(alias), this);
}
@Override
public TSubject as(Name alias) {
return new TSubject(alias, this);
}
/**
* Rename this table
*/
@Override
public TSubject rename(String name) {
return new TSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSubject rename(Name name) {
return new TSubject(name, null);
}
// -------------------------------------------------------------------------
// Row9 type methods
// -------------------------------------------------------------------------
@Override
public Row9<Integer, Integer, String, String, String, String, String, String, Integer> fieldsRow() {
return (Row9) super.fieldsRow();
}
}

View File

@ -0,0 +1,179 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VCalendarRecord;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row12;
import org.jooq.Schema;
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" })
public class VCalendar extends TableImpl<VCalendarRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_calendar</code>
*/
public static final VCalendar V_CALENDAR = new VCalendar();
/**
* The class holding records for this type
*/
@Override
public Class<VCalendarRecord> getRecordType() {
return VCalendarRecord.class;
}
/**
* The column <code>public.v_calendar.slot_day</code>.
*/
public final TableField<VCalendarRecord, LocalDate> SLOT_DAY = createField(DSL.name("slot_day"), SQLDataType.LOCALDATE, this, "");
/**
* The column <code>public.v_calendar.fullname</code>.
*/
public final TableField<VCalendarRecord, String> FULLNAME = createField(DSL.name("fullname"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.abbreviation</code>.
*/
public final TableField<VCalendarRecord, String> ABBREVIATION = createField(DSL.name("abbreviation"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.source_name</code>.
*/
public final TableField<VCalendarRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.theme</code>.
*/
public final TableField<VCalendarRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.subtheme</code>.
*/
public final TableField<VCalendarRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.book_pages</code>.
*/
public final TableField<VCalendarRecord, String> BOOK_PAGES = createField(DSL.name("book_pages"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.worksheets</code>.
*/
public final TableField<VCalendarRecord, String> WORKSHEETS = createField(DSL.name("worksheets"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.bibleverse</code>.
*/
public final TableField<VCalendarRecord, String> BIBLEVERSE = createField(DSL.name("bibleverse"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.subject_notes</code>.
*/
public final TableField<VCalendarRecord, String> SUBJECT_NOTES = createField(DSL.name("subject_notes"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.lesson_notes</code>.
*/
public final TableField<VCalendarRecord, String> LESSON_NOTES = createField(DSL.name("lesson_notes"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_calendar.slot_notes</code>.
*/
public final TableField<VCalendarRecord, String> SLOT_NOTES = createField(DSL.name("slot_notes"), SQLDataType.CLOB, this, "");
private VCalendar(Name alias, Table<VCalendarRecord> aliased) {
this(alias, aliased, null);
}
private VCalendar(Name alias, Table<VCalendarRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_calendar</code> table reference
*/
public VCalendar(String alias) {
this(DSL.name(alias), V_CALENDAR);
}
/**
* Create an aliased <code>public.v_calendar</code> table reference
*/
public VCalendar(Name alias) {
this(alias, V_CALENDAR);
}
/**
* Create a <code>public.v_calendar</code> table reference
*/
public VCalendar() {
this(DSL.name("v_calendar"), null);
}
public <O extends Record> VCalendar(Table<O> child, ForeignKey<O, VCalendarRecord> key) {
super(child, key, V_CALENDAR);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VCalendar as(String alias) {
return new VCalendar(DSL.name(alias), this);
}
@Override
public VCalendar as(Name alias) {
return new VCalendar(alias, this);
}
/**
* Rename this table
*/
@Override
public VCalendar rename(String name) {
return new VCalendar(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VCalendar rename(Name name) {
return new VCalendar(name, null);
}
// -------------------------------------------------------------------------
// Row12 type methods
// -------------------------------------------------------------------------
@Override
public Row12<LocalDate, String, String, String, String, String, String, String, String, String, String, String> fieldsRow() {
return (Row12) super.fieldsRow();
}
}

View File

@ -0,0 +1,144 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VLessonRecord;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row5;
import org.jooq.Schema;
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" })
public class VLesson extends TableImpl<VLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson</code>
*/
public static final VLesson V_LESSON = new VLesson();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonRecord> getRecordType() {
return VLessonRecord.class;
}
/**
* The column <code>public.v_lesson.source_name</code>.
*/
public final TableField<VLessonRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.theme</code>.
*/
public final TableField<VLessonRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.subtheme</code>.
*/
public final TableField<VLessonRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.slots</code>.
*/
public final TableField<VLessonRecord, LocalDate[]> SLOTS = createField(DSL.name("slots"), SQLDataType.LOCALDATE.getArrayDataType(), this, "");
/**
* The column <code>public.v_lesson.order_nr</code>.
*/
public final TableField<VLessonRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLesson(Name alias, Table<VLessonRecord> aliased) {
this(alias, aliased, null);
}
private VLesson(Name alias, Table<VLessonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(String alias) {
this(DSL.name(alias), V_LESSON);
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(Name alias) {
this(alias, V_LESSON);
}
/**
* Create a <code>public.v_lesson</code> table reference
*/
public VLesson() {
this(DSL.name("v_lesson"), null);
}
public <O extends Record> VLesson(Table<O> child, ForeignKey<O, VLessonRecord> key) {
super(child, key, V_LESSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLesson as(String alias) {
return new VLesson(DSL.name(alias), this);
}
@Override
public VLesson as(Name alias) {
return new VLesson(alias, this);
}
/**
* Rename this table
*/
@Override
public VLesson rename(String name) {
return new VLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLesson rename(Name name) {
return new VLesson(name, null);
}
// -------------------------------------------------------------------------
// Row5 type methods
// -------------------------------------------------------------------------
@Override
public Row5<String, String, String, LocalDate[], Integer> fieldsRow() {
return (Row5) super.fieldsRow();
}
}

View File

@ -0,0 +1,137 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VLessonMissingRecord;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row4;
import org.jooq.Schema;
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" })
public class VLessonMissing extends TableImpl<VLessonMissingRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson_missing</code>
*/
public static final VLessonMissing V_LESSON_MISSING = new VLessonMissing();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonMissingRecord> getRecordType() {
return VLessonMissingRecord.class;
}
/**
* The column <code>public.v_lesson_missing.source_name</code>.
*/
public final TableField<VLessonMissingRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.theme</code>.
*/
public final TableField<VLessonMissingRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.subtheme</code>.
*/
public final TableField<VLessonMissingRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.order_nr</code>.
*/
public final TableField<VLessonMissingRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased) {
this(alias, aliased, null);
}
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(String alias) {
this(DSL.name(alias), V_LESSON_MISSING);
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(Name alias) {
this(alias, V_LESSON_MISSING);
}
/**
* Create a <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing() {
this(DSL.name("v_lesson_missing"), null);
}
public <O extends Record> VLessonMissing(Table<O> child, ForeignKey<O, VLessonMissingRecord> key) {
super(child, key, V_LESSON_MISSING);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLessonMissing as(String alias) {
return new VLessonMissing(DSL.name(alias), this);
}
@Override
public VLessonMissing as(Name alias) {
return new VLessonMissing(alias, this);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(String name) {
return new VLessonMissing(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(Name name) {
return new VLessonMissing(name, null);
}
// -------------------------------------------------------------------------
// Row4 type methods
// -------------------------------------------------------------------------
@Override
public Row4<String, String, String, Integer> fieldsRow() {
return (Row4) super.fieldsRow();
}
}

View File

@ -0,0 +1,82 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLesson implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkLesson;
private final Integer fkSlot;
private final Integer fkPerson;
private final String notes;
public TLesson(TLesson value) {
this.pkLesson = value.pkLesson;
this.fkSlot = value.fkSlot;
this.fkPerson = value.fkPerson;
this.notes = value.notes;
}
public TLesson(
Integer pkLesson,
Integer fkSlot,
Integer fkPerson,
String notes
) {
this.pkLesson = pkLesson;
this.fkSlot = fkSlot;
this.fkPerson = fkPerson;
this.notes = notes;
}
/**
* Getter for <code>public.t_lesson.pk_lesson</code>.
*/
public Integer getPkLesson() {
return this.pkLesson;
}
/**
* Getter for <code>public.t_lesson.fk_slot</code>.
*/
public Integer getFkSlot() {
return this.fkSlot;
}
/**
* Getter for <code>public.t_lesson.fk_person</code>.
*/
public Integer getFkPerson() {
return this.fkPerson;
}
/**
* Getter for <code>public.t_lesson.notes</code>.
*/
public String getNotes() {
return this.notes;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TLesson (");
sb.append(pkLesson);
sb.append(", ").append(fkSlot);
sb.append(", ").append(fkPerson);
sb.append(", ").append(notes);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,70 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLessonSubject implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkLessonSubject;
private final Integer fkLesson;
private final Integer fkSubject;
public TLessonSubject(TLessonSubject value) {
this.pkLessonSubject = value.pkLessonSubject;
this.fkLesson = value.fkLesson;
this.fkSubject = value.fkSubject;
}
public TLessonSubject(
Integer pkLessonSubject,
Integer fkLesson,
Integer fkSubject
) {
this.pkLessonSubject = pkLessonSubject;
this.fkLesson = fkLesson;
this.fkSubject = fkSubject;
}
/**
* Getter for <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public Integer getPkLessonSubject() {
return this.pkLessonSubject;
}
/**
* Getter for <code>public.t_lesson_subject.fk_lesson</code>.
*/
public Integer getFkLesson() {
return this.fkLesson;
}
/**
* Getter for <code>public.t_lesson_subject.fk_subject</code>.
*/
public Integer getFkSubject() {
return this.fkSubject;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TLessonSubject (");
sb.append(pkLessonSubject);
sb.append(", ").append(fkLesson);
sb.append(", ").append(fkSubject);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,82 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TPerson implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkPerson;
private final String forename;
private final String surname;
private final String abbreviation;
public TPerson(TPerson value) {
this.pkPerson = value.pkPerson;
this.forename = value.forename;
this.surname = value.surname;
this.abbreviation = value.abbreviation;
}
public TPerson(
Integer pkPerson,
String forename,
String surname,
String abbreviation
) {
this.pkPerson = pkPerson;
this.forename = forename;
this.surname = surname;
this.abbreviation = abbreviation;
}
/**
* Getter for <code>public.t_person.pk_person</code>.
*/
public Integer getPkPerson() {
return this.pkPerson;
}
/**
* Getter for <code>public.t_person.forename</code>.
*/
public String getForename() {
return this.forename;
}
/**
* Getter for <code>public.t_person.surname</code>.
*/
public String getSurname() {
return this.surname;
}
/**
* Getter for <code>public.t_person.abbreviation</code>.
*/
public String getAbbreviation() {
return this.abbreviation;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TPerson (");
sb.append(pkPerson);
sb.append(", ").append(forename);
sb.append(", ").append(surname);
sb.append(", ").append(abbreviation);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,71 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
import java.time.LocalDate;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSlot implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkSlot;
private final LocalDate slotDay;
private final String note;
public TSlot(TSlot value) {
this.pkSlot = value.pkSlot;
this.slotDay = value.slotDay;
this.note = value.note;
}
public TSlot(
Integer pkSlot,
LocalDate slotDay,
String note
) {
this.pkSlot = pkSlot;
this.slotDay = slotDay;
this.note = note;
}
/**
* Getter for <code>public.t_slot.pk_slot</code>.
*/
public Integer getPkSlot() {
return this.pkSlot;
}
/**
* Getter for <code>public.t_slot.slot_day</code>.
*/
public LocalDate getSlotDay() {
return this.slotDay;
}
/**
* Getter for <code>public.t_slot.note</code>.
*/
public String getNote() {
return this.note;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TSlot (");
sb.append(pkSlot);
sb.append(", ").append(slotDay);
sb.append(", ").append(note);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,58 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSource implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkSource;
private final String name;
public TSource(TSource value) {
this.pkSource = value.pkSource;
this.name = value.name;
}
public TSource(
Integer pkSource,
String name
) {
this.pkSource = pkSource;
this.name = name;
}
/**
* Getter for <code>public.t_source.pk_source</code>.
*/
public Integer getPkSource() {
return this.pkSource;
}
/**
* Getter for <code>public.t_source.name</code>.
*/
public String getName() {
return this.name;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TSource (");
sb.append(pkSource);
sb.append(", ").append(name);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,142 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSubject implements Serializable {
private static final long serialVersionUID = 1L;
private final Integer pkSubject;
private final Integer fkSource;
private final String theme;
private final String subtheme;
private final String bookPages;
private final String worksheets;
private final String bibleverse;
private final String notes;
private final Integer orderNr;
public TSubject(TSubject value) {
this.pkSubject = value.pkSubject;
this.fkSource = value.fkSource;
this.theme = value.theme;
this.subtheme = value.subtheme;
this.bookPages = value.bookPages;
this.worksheets = value.worksheets;
this.bibleverse = value.bibleverse;
this.notes = value.notes;
this.orderNr = value.orderNr;
}
public TSubject(
Integer pkSubject,
Integer fkSource,
String theme,
String subtheme,
String bookPages,
String worksheets,
String bibleverse,
String notes,
Integer orderNr
) {
this.pkSubject = pkSubject;
this.fkSource = fkSource;
this.theme = theme;
this.subtheme = subtheme;
this.bookPages = bookPages;
this.worksheets = worksheets;
this.bibleverse = bibleverse;
this.notes = notes;
this.orderNr = orderNr;
}
/**
* Getter for <code>public.t_subject.pk_subject</code>.
*/
public Integer getPkSubject() {
return this.pkSubject;
}
/**
* Getter for <code>public.t_subject.fk_source</code>.
*/
public Integer getFkSource() {
return this.fkSource;
}
/**
* Getter for <code>public.t_subject.theme</code>.
*/
public String getTheme() {
return this.theme;
}
/**
* Getter for <code>public.t_subject.subtheme</code>.
*/
public String getSubtheme() {
return this.subtheme;
}
/**
* Getter for <code>public.t_subject.book_pages</code>.
*/
public String getBookPages() {
return this.bookPages;
}
/**
* Getter for <code>public.t_subject.worksheets</code>.
*/
public String getWorksheets() {
return this.worksheets;
}
/**
* Getter for <code>public.t_subject.bibleverse</code>.
*/
public String getBibleverse() {
return this.bibleverse;
}
/**
* Getter for <code>public.t_subject.notes</code>.
*/
public String getNotes() {
return this.notes;
}
/**
* Getter for <code>public.t_subject.order_nr</code>.
*/
public Integer getOrderNr() {
return this.orderNr;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TSubject (");
sb.append(pkSubject);
sb.append(", ").append(fkSource);
sb.append(", ").append(theme);
sb.append(", ").append(subtheme);
sb.append(", ").append(bookPages);
sb.append(", ").append(worksheets);
sb.append(", ").append(bibleverse);
sb.append(", ").append(notes);
sb.append(", ").append(orderNr);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,179 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
import java.time.LocalDate;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VCalendar implements Serializable {
private static final long serialVersionUID = 1L;
private final LocalDate slotDay;
private final String fullname;
private final String abbreviation;
private final String sourceName;
private final String theme;
private final String subtheme;
private final String bookPages;
private final String worksheets;
private final String bibleverse;
private final String subjectNotes;
private final String lessonNotes;
private final String slotNotes;
public VCalendar(VCalendar value) {
this.slotDay = value.slotDay;
this.fullname = value.fullname;
this.abbreviation = value.abbreviation;
this.sourceName = value.sourceName;
this.theme = value.theme;
this.subtheme = value.subtheme;
this.bookPages = value.bookPages;
this.worksheets = value.worksheets;
this.bibleverse = value.bibleverse;
this.subjectNotes = value.subjectNotes;
this.lessonNotes = value.lessonNotes;
this.slotNotes = value.slotNotes;
}
public VCalendar(
LocalDate slotDay,
String fullname,
String abbreviation,
String sourceName,
String theme,
String subtheme,
String bookPages,
String worksheets,
String bibleverse,
String subjectNotes,
String lessonNotes,
String slotNotes
) {
this.slotDay = slotDay;
this.fullname = fullname;
this.abbreviation = abbreviation;
this.sourceName = sourceName;
this.theme = theme;
this.subtheme = subtheme;
this.bookPages = bookPages;
this.worksheets = worksheets;
this.bibleverse = bibleverse;
this.subjectNotes = subjectNotes;
this.lessonNotes = lessonNotes;
this.slotNotes = slotNotes;
}
/**
* Getter for <code>public.v_calendar.slot_day</code>.
*/
public LocalDate getSlotDay() {
return this.slotDay;
}
/**
* Getter for <code>public.v_calendar.fullname</code>.
*/
public String getFullname() {
return this.fullname;
}
/**
* Getter for <code>public.v_calendar.abbreviation</code>.
*/
public String getAbbreviation() {
return this.abbreviation;
}
/**
* Getter for <code>public.v_calendar.source_name</code>.
*/
public String getSourceName() {
return this.sourceName;
}
/**
* Getter for <code>public.v_calendar.theme</code>.
*/
public String getTheme() {
return this.theme;
}
/**
* Getter for <code>public.v_calendar.subtheme</code>.
*/
public String getSubtheme() {
return this.subtheme;
}
/**
* Getter for <code>public.v_calendar.book_pages</code>.
*/
public String getBookPages() {
return this.bookPages;
}
/**
* Getter for <code>public.v_calendar.worksheets</code>.
*/
public String getWorksheets() {
return this.worksheets;
}
/**
* Getter for <code>public.v_calendar.bibleverse</code>.
*/
public String getBibleverse() {
return this.bibleverse;
}
/**
* Getter for <code>public.v_calendar.subject_notes</code>.
*/
public String getSubjectNotes() {
return this.subjectNotes;
}
/**
* Getter for <code>public.v_calendar.lesson_notes</code>.
*/
public String getLessonNotes() {
return this.lessonNotes;
}
/**
* Getter for <code>public.v_calendar.slot_notes</code>.
*/
public String getSlotNotes() {
return this.slotNotes;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("VCalendar (");
sb.append(slotDay);
sb.append(", ").append(fullname);
sb.append(", ").append(abbreviation);
sb.append(", ").append(sourceName);
sb.append(", ").append(theme);
sb.append(", ").append(subtheme);
sb.append(", ").append(bookPages);
sb.append(", ").append(worksheets);
sb.append(", ").append(bibleverse);
sb.append(", ").append(subjectNotes);
sb.append(", ").append(lessonNotes);
sb.append(", ").append(slotNotes);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,96 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Arrays;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLesson implements Serializable {
private static final long serialVersionUID = 1L;
private final String sourceName;
private final String theme;
private final String subtheme;
private final LocalDate[] slots;
private final Integer orderNr;
public VLesson(VLesson value) {
this.sourceName = value.sourceName;
this.theme = value.theme;
this.subtheme = value.subtheme;
this.slots = value.slots;
this.orderNr = value.orderNr;
}
public VLesson(
String sourceName,
String theme,
String subtheme,
LocalDate[] slots,
Integer orderNr
) {
this.sourceName = sourceName;
this.theme = theme;
this.subtheme = subtheme;
this.slots = slots;
this.orderNr = orderNr;
}
/**
* Getter for <code>public.v_lesson.source_name</code>.
*/
public String getSourceName() {
return this.sourceName;
}
/**
* Getter for <code>public.v_lesson.theme</code>.
*/
public String getTheme() {
return this.theme;
}
/**
* Getter for <code>public.v_lesson.subtheme</code>.
*/
public String getSubtheme() {
return this.subtheme;
}
/**
* Getter for <code>public.v_lesson.slots</code>.
*/
public LocalDate[] getSlots() {
return this.slots;
}
/**
* Getter for <code>public.v_lesson.order_nr</code>.
*/
public Integer getOrderNr() {
return this.orderNr;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("VLesson (");
sb.append(sourceName);
sb.append(", ").append(theme);
sb.append(", ").append(subtheme);
sb.append(", ").append(Arrays.toString(slots));
sb.append(", ").append(orderNr);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,82 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLessonMissing implements Serializable {
private static final long serialVersionUID = 1L;
private final String sourceName;
private final String theme;
private final String subtheme;
private final Integer orderNr;
public VLessonMissing(VLessonMissing value) {
this.sourceName = value.sourceName;
this.theme = value.theme;
this.subtheme = value.subtheme;
this.orderNr = value.orderNr;
}
public VLessonMissing(
String sourceName,
String theme,
String subtheme,
Integer orderNr
) {
this.sourceName = sourceName;
this.theme = theme;
this.subtheme = subtheme;
this.orderNr = orderNr;
}
/**
* Getter for <code>public.v_lesson_missing.source_name</code>.
*/
public String getSourceName() {
return this.sourceName;
}
/**
* Getter for <code>public.v_lesson_missing.theme</code>.
*/
public String getTheme() {
return this.theme;
}
/**
* Getter for <code>public.v_lesson_missing.subtheme</code>.
*/
public String getSubtheme() {
return this.subtheme;
}
/**
* Getter for <code>public.v_lesson_missing.order_nr</code>.
*/
public Integer getOrderNr() {
return this.orderNr;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("VLessonMissing (");
sb.append(sourceName);
sb.append(", ").append(theme);
sb.append(", ").append(subtheme);
sb.append(", ").append(orderNr);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,236 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TLesson;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLessonRecord extends UpdatableRecordImpl<TLessonRecord> implements Record4<Integer, Integer, Integer, String> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_lesson.pk_lesson</code>.
*/
public TLessonRecord setPkLesson(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_lesson.pk_lesson</code>.
*/
public Integer getPkLesson() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_lesson.fk_slot</code>.
*/
public TLessonRecord setFkSlot(Integer value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_lesson.fk_slot</code>.
*/
public Integer getFkSlot() {
return (Integer) get(1);
}
/**
* Setter for <code>public.t_lesson.fk_person</code>.
*/
public TLessonRecord setFkPerson(Integer value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.t_lesson.fk_person</code>.
*/
public Integer getFkPerson() {
return (Integer) get(2);
}
/**
* Setter for <code>public.t_lesson.notes</code>.
*/
public TLessonRecord setNotes(String value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.t_lesson.notes</code>.
*/
public String getNotes() {
return (String) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record4 type implementation
// -------------------------------------------------------------------------
@Override
public Row4<Integer, Integer, Integer, String> fieldsRow() {
return (Row4) super.fieldsRow();
}
@Override
public Row4<Integer, Integer, Integer, String> valuesRow() {
return (Row4) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TLesson.T_LESSON.PK_LESSON;
}
@Override
public Field<Integer> field2() {
return TLesson.T_LESSON.FK_SLOT;
}
@Override
public Field<Integer> field3() {
return TLesson.T_LESSON.FK_PERSON;
}
@Override
public Field<String> field4() {
return TLesson.T_LESSON.NOTES;
}
@Override
public Integer component1() {
return getPkLesson();
}
@Override
public Integer component2() {
return getFkSlot();
}
@Override
public Integer component3() {
return getFkPerson();
}
@Override
public String component4() {
return getNotes();
}
@Override
public Integer value1() {
return getPkLesson();
}
@Override
public Integer value2() {
return getFkSlot();
}
@Override
public Integer value3() {
return getFkPerson();
}
@Override
public String value4() {
return getNotes();
}
@Override
public TLessonRecord value1(Integer value) {
setPkLesson(value);
return this;
}
@Override
public TLessonRecord value2(Integer value) {
setFkSlot(value);
return this;
}
@Override
public TLessonRecord value3(Integer value) {
setFkPerson(value);
return this;
}
@Override
public TLessonRecord value4(String value) {
setNotes(value);
return this;
}
@Override
public TLessonRecord values(Integer value1, Integer value2, Integer value3, String value4) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TLessonRecord
*/
public TLessonRecord() {
super(TLesson.T_LESSON);
}
/**
* Create a detached, initialised TLessonRecord
*/
public TLessonRecord(Integer pkLesson, Integer fkSlot, Integer fkPerson, String notes) {
super(TLesson.T_LESSON);
setPkLesson(pkLesson);
setFkSlot(fkSlot);
setFkPerson(fkPerson);
setNotes(notes);
}
/**
* Create a detached, initialised TLessonRecord
*/
public TLessonRecord(de.jottyfan.bico.db.tables.pojos.TLesson value) {
super(TLesson.T_LESSON);
if (value != null) {
setPkLesson(value.getPkLesson());
setFkSlot(value.getFkSlot());
setFkPerson(value.getFkPerson());
setNotes(value.getNotes());
}
}
}

View File

@ -0,0 +1,197 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TLessonSubject;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLessonSubjectRecord extends UpdatableRecordImpl<TLessonSubjectRecord> implements Record3<Integer, Integer, Integer> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public TLessonSubjectRecord setPkLessonSubject(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public Integer getPkLessonSubject() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_lesson_subject.fk_lesson</code>.
*/
public TLessonSubjectRecord setFkLesson(Integer value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_lesson_subject.fk_lesson</code>.
*/
public Integer getFkLesson() {
return (Integer) get(1);
}
/**
* Setter for <code>public.t_lesson_subject.fk_subject</code>.
*/
public TLessonSubjectRecord setFkSubject(Integer value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.t_lesson_subject.fk_subject</code>.
*/
public Integer getFkSubject() {
return (Integer) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record3 type implementation
// -------------------------------------------------------------------------
@Override
public Row3<Integer, Integer, Integer> fieldsRow() {
return (Row3) super.fieldsRow();
}
@Override
public Row3<Integer, Integer, Integer> valuesRow() {
return (Row3) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TLessonSubject.T_LESSON_SUBJECT.PK_LESSON_SUBJECT;
}
@Override
public Field<Integer> field2() {
return TLessonSubject.T_LESSON_SUBJECT.FK_LESSON;
}
@Override
public Field<Integer> field3() {
return TLessonSubject.T_LESSON_SUBJECT.FK_SUBJECT;
}
@Override
public Integer component1() {
return getPkLessonSubject();
}
@Override
public Integer component2() {
return getFkLesson();
}
@Override
public Integer component3() {
return getFkSubject();
}
@Override
public Integer value1() {
return getPkLessonSubject();
}
@Override
public Integer value2() {
return getFkLesson();
}
@Override
public Integer value3() {
return getFkSubject();
}
@Override
public TLessonSubjectRecord value1(Integer value) {
setPkLessonSubject(value);
return this;
}
@Override
public TLessonSubjectRecord value2(Integer value) {
setFkLesson(value);
return this;
}
@Override
public TLessonSubjectRecord value3(Integer value) {
setFkSubject(value);
return this;
}
@Override
public TLessonSubjectRecord values(Integer value1, Integer value2, Integer value3) {
value1(value1);
value2(value2);
value3(value3);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TLessonSubjectRecord
*/
public TLessonSubjectRecord() {
super(TLessonSubject.T_LESSON_SUBJECT);
}
/**
* Create a detached, initialised TLessonSubjectRecord
*/
public TLessonSubjectRecord(Integer pkLessonSubject, Integer fkLesson, Integer fkSubject) {
super(TLessonSubject.T_LESSON_SUBJECT);
setPkLessonSubject(pkLessonSubject);
setFkLesson(fkLesson);
setFkSubject(fkSubject);
}
/**
* Create a detached, initialised TLessonSubjectRecord
*/
public TLessonSubjectRecord(de.jottyfan.bico.db.tables.pojos.TLessonSubject value) {
super(TLessonSubject.T_LESSON_SUBJECT);
if (value != null) {
setPkLessonSubject(value.getPkLessonSubject());
setFkLesson(value.getFkLesson());
setFkSubject(value.getFkSubject());
}
}
}

View File

@ -0,0 +1,236 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TPerson;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements Record4<Integer, String, String, String> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_person.pk_person</code>.
*/
public TPersonRecord setPkPerson(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_person.pk_person</code>.
*/
public Integer getPkPerson() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_person.forename</code>.
*/
public TPersonRecord setForename(String value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_person.forename</code>.
*/
public String getForename() {
return (String) get(1);
}
/**
* Setter for <code>public.t_person.surname</code>.
*/
public TPersonRecord setSurname(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.t_person.surname</code>.
*/
public String getSurname() {
return (String) get(2);
}
/**
* Setter for <code>public.t_person.abbreviation</code>.
*/
public TPersonRecord setAbbreviation(String value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.t_person.abbreviation</code>.
*/
public String getAbbreviation() {
return (String) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record4 type implementation
// -------------------------------------------------------------------------
@Override
public Row4<Integer, String, String, String> fieldsRow() {
return (Row4) super.fieldsRow();
}
@Override
public Row4<Integer, String, String, String> valuesRow() {
return (Row4) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TPerson.T_PERSON.PK_PERSON;
}
@Override
public Field<String> field2() {
return TPerson.T_PERSON.FORENAME;
}
@Override
public Field<String> field3() {
return TPerson.T_PERSON.SURNAME;
}
@Override
public Field<String> field4() {
return TPerson.T_PERSON.ABBREVIATION;
}
@Override
public Integer component1() {
return getPkPerson();
}
@Override
public String component2() {
return getForename();
}
@Override
public String component3() {
return getSurname();
}
@Override
public String component4() {
return getAbbreviation();
}
@Override
public Integer value1() {
return getPkPerson();
}
@Override
public String value2() {
return getForename();
}
@Override
public String value3() {
return getSurname();
}
@Override
public String value4() {
return getAbbreviation();
}
@Override
public TPersonRecord value1(Integer value) {
setPkPerson(value);
return this;
}
@Override
public TPersonRecord value2(String value) {
setForename(value);
return this;
}
@Override
public TPersonRecord value3(String value) {
setSurname(value);
return this;
}
@Override
public TPersonRecord value4(String value) {
setAbbreviation(value);
return this;
}
@Override
public TPersonRecord values(Integer value1, String value2, String value3, String value4) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TPersonRecord
*/
public TPersonRecord() {
super(TPerson.T_PERSON);
}
/**
* Create a detached, initialised TPersonRecord
*/
public TPersonRecord(Integer pkPerson, String forename, String surname, String abbreviation) {
super(TPerson.T_PERSON);
setPkPerson(pkPerson);
setForename(forename);
setSurname(surname);
setAbbreviation(abbreviation);
}
/**
* Create a detached, initialised TPersonRecord
*/
public TPersonRecord(de.jottyfan.bico.db.tables.pojos.TPerson value) {
super(TPerson.T_PERSON);
if (value != null) {
setPkPerson(value.getPkPerson());
setForename(value.getForename());
setSurname(value.getSurname());
setAbbreviation(value.getAbbreviation());
}
}
}

View File

@ -0,0 +1,199 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TSlot;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSlotRecord extends UpdatableRecordImpl<TSlotRecord> implements Record3<Integer, LocalDate, String> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_slot.pk_slot</code>.
*/
public TSlotRecord setPkSlot(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_slot.pk_slot</code>.
*/
public Integer getPkSlot() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_slot.slot_day</code>.
*/
public TSlotRecord setSlotDay(LocalDate value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_slot.slot_day</code>.
*/
public LocalDate getSlotDay() {
return (LocalDate) get(1);
}
/**
* Setter for <code>public.t_slot.note</code>.
*/
public TSlotRecord setNote(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.t_slot.note</code>.
*/
public String getNote() {
return (String) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record3 type implementation
// -------------------------------------------------------------------------
@Override
public Row3<Integer, LocalDate, String> fieldsRow() {
return (Row3) super.fieldsRow();
}
@Override
public Row3<Integer, LocalDate, String> valuesRow() {
return (Row3) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TSlot.T_SLOT.PK_SLOT;
}
@Override
public Field<LocalDate> field2() {
return TSlot.T_SLOT.SLOT_DAY;
}
@Override
public Field<String> field3() {
return TSlot.T_SLOT.NOTE;
}
@Override
public Integer component1() {
return getPkSlot();
}
@Override
public LocalDate component2() {
return getSlotDay();
}
@Override
public String component3() {
return getNote();
}
@Override
public Integer value1() {
return getPkSlot();
}
@Override
public LocalDate value2() {
return getSlotDay();
}
@Override
public String value3() {
return getNote();
}
@Override
public TSlotRecord value1(Integer value) {
setPkSlot(value);
return this;
}
@Override
public TSlotRecord value2(LocalDate value) {
setSlotDay(value);
return this;
}
@Override
public TSlotRecord value3(String value) {
setNote(value);
return this;
}
@Override
public TSlotRecord values(Integer value1, LocalDate value2, String value3) {
value1(value1);
value2(value2);
value3(value3);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TSlotRecord
*/
public TSlotRecord() {
super(TSlot.T_SLOT);
}
/**
* Create a detached, initialised TSlotRecord
*/
public TSlotRecord(Integer pkSlot, LocalDate slotDay, String note) {
super(TSlot.T_SLOT);
setPkSlot(pkSlot);
setSlotDay(slotDay);
setNote(note);
}
/**
* Create a detached, initialised TSlotRecord
*/
public TSlotRecord(de.jottyfan.bico.db.tables.pojos.TSlot value) {
super(TSlot.T_SLOT);
if (value != null) {
setPkSlot(value.getPkSlot());
setSlotDay(value.getSlotDay());
setNote(value.getNote());
}
}
}

View File

@ -0,0 +1,158 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TSource;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record2;
import org.jooq.Row2;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSourceRecord extends UpdatableRecordImpl<TSourceRecord> implements Record2<Integer, String> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_source.pk_source</code>.
*/
public TSourceRecord setPkSource(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_source.pk_source</code>.
*/
public Integer getPkSource() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_source.name</code>.
*/
public TSourceRecord setName(String value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_source.name</code>.
*/
public String getName() {
return (String) get(1);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record2 type implementation
// -------------------------------------------------------------------------
@Override
public Row2<Integer, String> fieldsRow() {
return (Row2) super.fieldsRow();
}
@Override
public Row2<Integer, String> valuesRow() {
return (Row2) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TSource.T_SOURCE.PK_SOURCE;
}
@Override
public Field<String> field2() {
return TSource.T_SOURCE.NAME;
}
@Override
public Integer component1() {
return getPkSource();
}
@Override
public String component2() {
return getName();
}
@Override
public Integer value1() {
return getPkSource();
}
@Override
public String value2() {
return getName();
}
@Override
public TSourceRecord value1(Integer value) {
setPkSource(value);
return this;
}
@Override
public TSourceRecord value2(String value) {
setName(value);
return this;
}
@Override
public TSourceRecord values(Integer value1, String value2) {
value1(value1);
value2(value2);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TSourceRecord
*/
public TSourceRecord() {
super(TSource.T_SOURCE);
}
/**
* Create a detached, initialised TSourceRecord
*/
public TSourceRecord(Integer pkSource, String name) {
super(TSource.T_SOURCE);
setPkSource(pkSource);
setName(name);
}
/**
* Create a detached, initialised TSourceRecord
*/
public TSourceRecord(de.jottyfan.bico.db.tables.pojos.TSource value) {
super(TSource.T_SOURCE);
if (value != null) {
setPkSource(value.getPkSource());
setName(value.getName());
}
}
}

View File

@ -0,0 +1,431 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.TSubject;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record9;
import org.jooq.Row9;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSubjectRecord extends UpdatableRecordImpl<TSubjectRecord> implements Record9<Integer, Integer, String, String, String, String, String, String, Integer> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.t_subject.pk_subject</code>.
*/
public TSubjectRecord setPkSubject(Integer value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.t_subject.pk_subject</code>.
*/
public Integer getPkSubject() {
return (Integer) get(0);
}
/**
* Setter for <code>public.t_subject.fk_source</code>.
*/
public TSubjectRecord setFkSource(Integer value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.t_subject.fk_source</code>.
*/
public Integer getFkSource() {
return (Integer) get(1);
}
/**
* Setter for <code>public.t_subject.theme</code>.
*/
public TSubjectRecord setTheme(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.t_subject.theme</code>.
*/
public String getTheme() {
return (String) get(2);
}
/**
* Setter for <code>public.t_subject.subtheme</code>.
*/
public TSubjectRecord setSubtheme(String value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.t_subject.subtheme</code>.
*/
public String getSubtheme() {
return (String) get(3);
}
/**
* Setter for <code>public.t_subject.book_pages</code>.
*/
public TSubjectRecord setBookPages(String value) {
set(4, value);
return this;
}
/**
* Getter for <code>public.t_subject.book_pages</code>.
*/
public String getBookPages() {
return (String) get(4);
}
/**
* Setter for <code>public.t_subject.worksheets</code>.
*/
public TSubjectRecord setWorksheets(String value) {
set(5, value);
return this;
}
/**
* Getter for <code>public.t_subject.worksheets</code>.
*/
public String getWorksheets() {
return (String) get(5);
}
/**
* Setter for <code>public.t_subject.bibleverse</code>.
*/
public TSubjectRecord setBibleverse(String value) {
set(6, value);
return this;
}
/**
* Getter for <code>public.t_subject.bibleverse</code>.
*/
public String getBibleverse() {
return (String) get(6);
}
/**
* Setter for <code>public.t_subject.notes</code>.
*/
public TSubjectRecord setNotes(String value) {
set(7, value);
return this;
}
/**
* Getter for <code>public.t_subject.notes</code>.
*/
public String getNotes() {
return (String) get(7);
}
/**
* Setter for <code>public.t_subject.order_nr</code>.
*/
public TSubjectRecord setOrderNr(Integer value) {
set(8, value);
return this;
}
/**
* Getter for <code>public.t_subject.order_nr</code>.
*/
public Integer getOrderNr() {
return (Integer) get(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record9 type implementation
// -------------------------------------------------------------------------
@Override
public Row9<Integer, Integer, String, String, String, String, String, String, Integer> fieldsRow() {
return (Row9) super.fieldsRow();
}
@Override
public Row9<Integer, Integer, String, String, String, String, String, String, Integer> valuesRow() {
return (Row9) super.valuesRow();
}
@Override
public Field<Integer> field1() {
return TSubject.T_SUBJECT.PK_SUBJECT;
}
@Override
public Field<Integer> field2() {
return TSubject.T_SUBJECT.FK_SOURCE;
}
@Override
public Field<String> field3() {
return TSubject.T_SUBJECT.THEME;
}
@Override
public Field<String> field4() {
return TSubject.T_SUBJECT.SUBTHEME;
}
@Override
public Field<String> field5() {
return TSubject.T_SUBJECT.BOOK_PAGES;
}
@Override
public Field<String> field6() {
return TSubject.T_SUBJECT.WORKSHEETS;
}
@Override
public Field<String> field7() {
return TSubject.T_SUBJECT.BIBLEVERSE;
}
@Override
public Field<String> field8() {
return TSubject.T_SUBJECT.NOTES;
}
@Override
public Field<Integer> field9() {
return TSubject.T_SUBJECT.ORDER_NR;
}
@Override
public Integer component1() {
return getPkSubject();
}
@Override
public Integer component2() {
return getFkSource();
}
@Override
public String component3() {
return getTheme();
}
@Override
public String component4() {
return getSubtheme();
}
@Override
public String component5() {
return getBookPages();
}
@Override
public String component6() {
return getWorksheets();
}
@Override
public String component7() {
return getBibleverse();
}
@Override
public String component8() {
return getNotes();
}
@Override
public Integer component9() {
return getOrderNr();
}
@Override
public Integer value1() {
return getPkSubject();
}
@Override
public Integer value2() {
return getFkSource();
}
@Override
public String value3() {
return getTheme();
}
@Override
public String value4() {
return getSubtheme();
}
@Override
public String value5() {
return getBookPages();
}
@Override
public String value6() {
return getWorksheets();
}
@Override
public String value7() {
return getBibleverse();
}
@Override
public String value8() {
return getNotes();
}
@Override
public Integer value9() {
return getOrderNr();
}
@Override
public TSubjectRecord value1(Integer value) {
setPkSubject(value);
return this;
}
@Override
public TSubjectRecord value2(Integer value) {
setFkSource(value);
return this;
}
@Override
public TSubjectRecord value3(String value) {
setTheme(value);
return this;
}
@Override
public TSubjectRecord value4(String value) {
setSubtheme(value);
return this;
}
@Override
public TSubjectRecord value5(String value) {
setBookPages(value);
return this;
}
@Override
public TSubjectRecord value6(String value) {
setWorksheets(value);
return this;
}
@Override
public TSubjectRecord value7(String value) {
setBibleverse(value);
return this;
}
@Override
public TSubjectRecord value8(String value) {
setNotes(value);
return this;
}
@Override
public TSubjectRecord value9(Integer value) {
setOrderNr(value);
return this;
}
@Override
public TSubjectRecord values(Integer value1, Integer value2, String value3, String value4, String value5, String value6, String value7, String value8, Integer value9) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TSubjectRecord
*/
public TSubjectRecord() {
super(TSubject.T_SUBJECT);
}
/**
* Create a detached, initialised TSubjectRecord
*/
public TSubjectRecord(Integer pkSubject, Integer fkSource, String theme, String subtheme, String bookPages, String worksheets, String bibleverse, String notes, Integer orderNr) {
super(TSubject.T_SUBJECT);
setPkSubject(pkSubject);
setFkSource(fkSource);
setTheme(theme);
setSubtheme(subtheme);
setBookPages(bookPages);
setWorksheets(worksheets);
setBibleverse(bibleverse);
setNotes(notes);
setOrderNr(orderNr);
}
/**
* Create a detached, initialised TSubjectRecord
*/
public TSubjectRecord(de.jottyfan.bico.db.tables.pojos.TSubject value) {
super(TSubject.T_SUBJECT);
if (value != null) {
setPkSubject(value.getPkSubject());
setFkSource(value.getFkSource());
setTheme(value.getTheme());
setSubtheme(value.getSubtheme());
setBookPages(value.getBookPages());
setWorksheets(value.getWorksheets());
setBibleverse(value.getBibleverse());
setNotes(value.getNotes());
setOrderNr(value.getOrderNr());
}
}
}

View File

@ -0,0 +1,540 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.VCalendar;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.Record12;
import org.jooq.Row12;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VCalendarRecord extends TableRecordImpl<VCalendarRecord> implements Record12<LocalDate, String, String, String, String, String, String, String, String, String, String, String> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.v_calendar.slot_day</code>.
*/
public VCalendarRecord setSlotDay(LocalDate value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.v_calendar.slot_day</code>.
*/
public LocalDate getSlotDay() {
return (LocalDate) get(0);
}
/**
* Setter for <code>public.v_calendar.fullname</code>.
*/
public VCalendarRecord setFullname(String value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.v_calendar.fullname</code>.
*/
public String getFullname() {
return (String) get(1);
}
/**
* Setter for <code>public.v_calendar.abbreviation</code>.
*/
public VCalendarRecord setAbbreviation(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.v_calendar.abbreviation</code>.
*/
public String getAbbreviation() {
return (String) get(2);
}
/**
* Setter for <code>public.v_calendar.source_name</code>.
*/
public VCalendarRecord setSourceName(String value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.v_calendar.source_name</code>.
*/
public String getSourceName() {
return (String) get(3);
}
/**
* Setter for <code>public.v_calendar.theme</code>.
*/
public VCalendarRecord setTheme(String value) {
set(4, value);
return this;
}
/**
* Getter for <code>public.v_calendar.theme</code>.
*/
public String getTheme() {
return (String) get(4);
}
/**
* Setter for <code>public.v_calendar.subtheme</code>.
*/
public VCalendarRecord setSubtheme(String value) {
set(5, value);
return this;
}
/**
* Getter for <code>public.v_calendar.subtheme</code>.
*/
public String getSubtheme() {
return (String) get(5);
}
/**
* Setter for <code>public.v_calendar.book_pages</code>.
*/
public VCalendarRecord setBookPages(String value) {
set(6, value);
return this;
}
/**
* Getter for <code>public.v_calendar.book_pages</code>.
*/
public String getBookPages() {
return (String) get(6);
}
/**
* Setter for <code>public.v_calendar.worksheets</code>.
*/
public VCalendarRecord setWorksheets(String value) {
set(7, value);
return this;
}
/**
* Getter for <code>public.v_calendar.worksheets</code>.
*/
public String getWorksheets() {
return (String) get(7);
}
/**
* Setter for <code>public.v_calendar.bibleverse</code>.
*/
public VCalendarRecord setBibleverse(String value) {
set(8, value);
return this;
}
/**
* Getter for <code>public.v_calendar.bibleverse</code>.
*/
public String getBibleverse() {
return (String) get(8);
}
/**
* Setter for <code>public.v_calendar.subject_notes</code>.
*/
public VCalendarRecord setSubjectNotes(String value) {
set(9, value);
return this;
}
/**
* Getter for <code>public.v_calendar.subject_notes</code>.
*/
public String getSubjectNotes() {
return (String) get(9);
}
/**
* Setter for <code>public.v_calendar.lesson_notes</code>.
*/
public VCalendarRecord setLessonNotes(String value) {
set(10, value);
return this;
}
/**
* Getter for <code>public.v_calendar.lesson_notes</code>.
*/
public String getLessonNotes() {
return (String) get(10);
}
/**
* Setter for <code>public.v_calendar.slot_notes</code>.
*/
public VCalendarRecord setSlotNotes(String value) {
set(11, value);
return this;
}
/**
* Getter for <code>public.v_calendar.slot_notes</code>.
*/
public String getSlotNotes() {
return (String) get(11);
}
// -------------------------------------------------------------------------
// Record12 type implementation
// -------------------------------------------------------------------------
@Override
public Row12<LocalDate, String, String, String, String, String, String, String, String, String, String, String> fieldsRow() {
return (Row12) super.fieldsRow();
}
@Override
public Row12<LocalDate, String, String, String, String, String, String, String, String, String, String, String> valuesRow() {
return (Row12) super.valuesRow();
}
@Override
public Field<LocalDate> field1() {
return VCalendar.V_CALENDAR.SLOT_DAY;
}
@Override
public Field<String> field2() {
return VCalendar.V_CALENDAR.FULLNAME;
}
@Override
public Field<String> field3() {
return VCalendar.V_CALENDAR.ABBREVIATION;
}
@Override
public Field<String> field4() {
return VCalendar.V_CALENDAR.SOURCE_NAME;
}
@Override
public Field<String> field5() {
return VCalendar.V_CALENDAR.THEME;
}
@Override
public Field<String> field6() {
return VCalendar.V_CALENDAR.SUBTHEME;
}
@Override
public Field<String> field7() {
return VCalendar.V_CALENDAR.BOOK_PAGES;
}
@Override
public Field<String> field8() {
return VCalendar.V_CALENDAR.WORKSHEETS;
}
@Override
public Field<String> field9() {
return VCalendar.V_CALENDAR.BIBLEVERSE;
}
@Override
public Field<String> field10() {
return VCalendar.V_CALENDAR.SUBJECT_NOTES;
}
@Override
public Field<String> field11() {
return VCalendar.V_CALENDAR.LESSON_NOTES;
}
@Override
public Field<String> field12() {
return VCalendar.V_CALENDAR.SLOT_NOTES;
}
@Override
public LocalDate component1() {
return getSlotDay();
}
@Override
public String component2() {
return getFullname();
}
@Override
public String component3() {
return getAbbreviation();
}
@Override
public String component4() {
return getSourceName();
}
@Override
public String component5() {
return getTheme();
}
@Override
public String component6() {
return getSubtheme();
}
@Override
public String component7() {
return getBookPages();
}
@Override
public String component8() {
return getWorksheets();
}
@Override
public String component9() {
return getBibleverse();
}
@Override
public String component10() {
return getSubjectNotes();
}
@Override
public String component11() {
return getLessonNotes();
}
@Override
public String component12() {
return getSlotNotes();
}
@Override
public LocalDate value1() {
return getSlotDay();
}
@Override
public String value2() {
return getFullname();
}
@Override
public String value3() {
return getAbbreviation();
}
@Override
public String value4() {
return getSourceName();
}
@Override
public String value5() {
return getTheme();
}
@Override
public String value6() {
return getSubtheme();
}
@Override
public String value7() {
return getBookPages();
}
@Override
public String value8() {
return getWorksheets();
}
@Override
public String value9() {
return getBibleverse();
}
@Override
public String value10() {
return getSubjectNotes();
}
@Override
public String value11() {
return getLessonNotes();
}
@Override
public String value12() {
return getSlotNotes();
}
@Override
public VCalendarRecord value1(LocalDate value) {
setSlotDay(value);
return this;
}
@Override
public VCalendarRecord value2(String value) {
setFullname(value);
return this;
}
@Override
public VCalendarRecord value3(String value) {
setAbbreviation(value);
return this;
}
@Override
public VCalendarRecord value4(String value) {
setSourceName(value);
return this;
}
@Override
public VCalendarRecord value5(String value) {
setTheme(value);
return this;
}
@Override
public VCalendarRecord value6(String value) {
setSubtheme(value);
return this;
}
@Override
public VCalendarRecord value7(String value) {
setBookPages(value);
return this;
}
@Override
public VCalendarRecord value8(String value) {
setWorksheets(value);
return this;
}
@Override
public VCalendarRecord value9(String value) {
setBibleverse(value);
return this;
}
@Override
public VCalendarRecord value10(String value) {
setSubjectNotes(value);
return this;
}
@Override
public VCalendarRecord value11(String value) {
setLessonNotes(value);
return this;
}
@Override
public VCalendarRecord value12(String value) {
setSlotNotes(value);
return this;
}
@Override
public VCalendarRecord values(LocalDate value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, String value11, String value12) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
value9(value9);
value10(value10);
value11(value11);
value12(value12);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached VCalendarRecord
*/
public VCalendarRecord() {
super(VCalendar.V_CALENDAR);
}
/**
* Create a detached, initialised VCalendarRecord
*/
public VCalendarRecord(LocalDate slotDay, String fullname, String abbreviation, String sourceName, String theme, String subtheme, String bookPages, String worksheets, String bibleverse, String subjectNotes, String lessonNotes, String slotNotes) {
super(VCalendar.V_CALENDAR);
setSlotDay(slotDay);
setFullname(fullname);
setAbbreviation(abbreviation);
setSourceName(sourceName);
setTheme(theme);
setSubtheme(subtheme);
setBookPages(bookPages);
setWorksheets(worksheets);
setBibleverse(bibleverse);
setSubjectNotes(subjectNotes);
setLessonNotes(lessonNotes);
setSlotNotes(slotNotes);
}
/**
* Create a detached, initialised VCalendarRecord
*/
public VCalendarRecord(de.jottyfan.bico.db.tables.pojos.VCalendar value) {
super(VCalendar.V_CALENDAR);
if (value != null) {
setSlotDay(value.getSlotDay());
setFullname(value.getFullname());
setAbbreviation(value.getAbbreviation());
setSourceName(value.getSourceName());
setTheme(value.getTheme());
setSubtheme(value.getSubtheme());
setBookPages(value.getBookPages());
setWorksheets(value.getWorksheets());
setBibleverse(value.getBibleverse());
setSubjectNotes(value.getSubjectNotes());
setLessonNotes(value.getLessonNotes());
setSlotNotes(value.getSlotNotes());
}
}
}

View File

@ -0,0 +1,226 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.VLessonMissing;
import org.jooq.Field;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLessonMissingRecord extends TableRecordImpl<VLessonMissingRecord> implements Record4<String, String, String, Integer> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.v_lesson_missing.source_name</code>.
*/
public VLessonMissingRecord setSourceName(String value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.v_lesson_missing.source_name</code>.
*/
public String getSourceName() {
return (String) get(0);
}
/**
* Setter for <code>public.v_lesson_missing.theme</code>.
*/
public VLessonMissingRecord setTheme(String value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.v_lesson_missing.theme</code>.
*/
public String getTheme() {
return (String) get(1);
}
/**
* Setter for <code>public.v_lesson_missing.subtheme</code>.
*/
public VLessonMissingRecord setSubtheme(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.v_lesson_missing.subtheme</code>.
*/
public String getSubtheme() {
return (String) get(2);
}
/**
* Setter for <code>public.v_lesson_missing.order_nr</code>.
*/
public VLessonMissingRecord setOrderNr(Integer value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.v_lesson_missing.order_nr</code>.
*/
public Integer getOrderNr() {
return (Integer) get(3);
}
// -------------------------------------------------------------------------
// Record4 type implementation
// -------------------------------------------------------------------------
@Override
public Row4<String, String, String, Integer> fieldsRow() {
return (Row4) super.fieldsRow();
}
@Override
public Row4<String, String, String, Integer> valuesRow() {
return (Row4) super.valuesRow();
}
@Override
public Field<String> field1() {
return VLessonMissing.V_LESSON_MISSING.SOURCE_NAME;
}
@Override
public Field<String> field2() {
return VLessonMissing.V_LESSON_MISSING.THEME;
}
@Override
public Field<String> field3() {
return VLessonMissing.V_LESSON_MISSING.SUBTHEME;
}
@Override
public Field<Integer> field4() {
return VLessonMissing.V_LESSON_MISSING.ORDER_NR;
}
@Override
public String component1() {
return getSourceName();
}
@Override
public String component2() {
return getTheme();
}
@Override
public String component3() {
return getSubtheme();
}
@Override
public Integer component4() {
return getOrderNr();
}
@Override
public String value1() {
return getSourceName();
}
@Override
public String value2() {
return getTheme();
}
@Override
public String value3() {
return getSubtheme();
}
@Override
public Integer value4() {
return getOrderNr();
}
@Override
public VLessonMissingRecord value1(String value) {
setSourceName(value);
return this;
}
@Override
public VLessonMissingRecord value2(String value) {
setTheme(value);
return this;
}
@Override
public VLessonMissingRecord value3(String value) {
setSubtheme(value);
return this;
}
@Override
public VLessonMissingRecord value4(Integer value) {
setOrderNr(value);
return this;
}
@Override
public VLessonMissingRecord values(String value1, String value2, String value3, Integer value4) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached VLessonMissingRecord
*/
public VLessonMissingRecord() {
super(VLessonMissing.V_LESSON_MISSING);
}
/**
* Create a detached, initialised VLessonMissingRecord
*/
public VLessonMissingRecord(String sourceName, String theme, String subtheme, Integer orderNr) {
super(VLessonMissing.V_LESSON_MISSING);
setSourceName(sourceName);
setTheme(theme);
setSubtheme(subtheme);
setOrderNr(orderNr);
}
/**
* Create a detached, initialised VLessonMissingRecord
*/
public VLessonMissingRecord(de.jottyfan.bico.db.tables.pojos.VLessonMissing value) {
super(VLessonMissing.V_LESSON_MISSING);
if (value != null) {
setSourceName(value.getSourceName());
setTheme(value.getTheme());
setSubtheme(value.getSubtheme());
setOrderNr(value.getOrderNr());
}
}
}

View File

@ -0,0 +1,267 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
import de.jottyfan.bico.db.tables.VLesson;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.Record5;
import org.jooq.Row5;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLessonRecord extends TableRecordImpl<VLessonRecord> implements Record5<String, String, String, LocalDate[], Integer> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.v_lesson.source_name</code>.
*/
public VLessonRecord setSourceName(String value) {
set(0, value);
return this;
}
/**
* Getter for <code>public.v_lesson.source_name</code>.
*/
public String getSourceName() {
return (String) get(0);
}
/**
* Setter for <code>public.v_lesson.theme</code>.
*/
public VLessonRecord setTheme(String value) {
set(1, value);
return this;
}
/**
* Getter for <code>public.v_lesson.theme</code>.
*/
public String getTheme() {
return (String) get(1);
}
/**
* Setter for <code>public.v_lesson.subtheme</code>.
*/
public VLessonRecord setSubtheme(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>public.v_lesson.subtheme</code>.
*/
public String getSubtheme() {
return (String) get(2);
}
/**
* Setter for <code>public.v_lesson.slots</code>.
*/
public VLessonRecord setSlots(LocalDate[] value) {
set(3, value);
return this;
}
/**
* Getter for <code>public.v_lesson.slots</code>.
*/
public LocalDate[] getSlots() {
return (LocalDate[]) get(3);
}
/**
* Setter for <code>public.v_lesson.order_nr</code>.
*/
public VLessonRecord setOrderNr(Integer value) {
set(4, value);
return this;
}
/**
* Getter for <code>public.v_lesson.order_nr</code>.
*/
public Integer getOrderNr() {
return (Integer) get(4);
}
// -------------------------------------------------------------------------
// Record5 type implementation
// -------------------------------------------------------------------------
@Override
public Row5<String, String, String, LocalDate[], Integer> fieldsRow() {
return (Row5) super.fieldsRow();
}
@Override
public Row5<String, String, String, LocalDate[], Integer> valuesRow() {
return (Row5) super.valuesRow();
}
@Override
public Field<String> field1() {
return VLesson.V_LESSON.SOURCE_NAME;
}
@Override
public Field<String> field2() {
return VLesson.V_LESSON.THEME;
}
@Override
public Field<String> field3() {
return VLesson.V_LESSON.SUBTHEME;
}
@Override
public Field<LocalDate[]> field4() {
return VLesson.V_LESSON.SLOTS;
}
@Override
public Field<Integer> field5() {
return VLesson.V_LESSON.ORDER_NR;
}
@Override
public String component1() {
return getSourceName();
}
@Override
public String component2() {
return getTheme();
}
@Override
public String component3() {
return getSubtheme();
}
@Override
public LocalDate[] component4() {
return getSlots();
}
@Override
public Integer component5() {
return getOrderNr();
}
@Override
public String value1() {
return getSourceName();
}
@Override
public String value2() {
return getTheme();
}
@Override
public String value3() {
return getSubtheme();
}
@Override
public LocalDate[] value4() {
return getSlots();
}
@Override
public Integer value5() {
return getOrderNr();
}
@Override
public VLessonRecord value1(String value) {
setSourceName(value);
return this;
}
@Override
public VLessonRecord value2(String value) {
setTheme(value);
return this;
}
@Override
public VLessonRecord value3(String value) {
setSubtheme(value);
return this;
}
@Override
public VLessonRecord value4(LocalDate[] value) {
setSlots(value);
return this;
}
@Override
public VLessonRecord value5(Integer value) {
setOrderNr(value);
return this;
}
@Override
public VLessonRecord values(String value1, String value2, String value3, LocalDate[] value4, Integer value5) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached VLessonRecord
*/
public VLessonRecord() {
super(VLesson.V_LESSON);
}
/**
* Create a detached, initialised VLessonRecord
*/
public VLessonRecord(String sourceName, String theme, String subtheme, LocalDate[] slots, Integer orderNr) {
super(VLesson.V_LESSON);
setSourceName(sourceName);
setTheme(theme);
setSubtheme(subtheme);
setSlots(slots);
setOrderNr(orderNr);
}
/**
* Create a detached, initialised VLessonRecord
*/
public VLessonRecord(de.jottyfan.bico.db.tables.pojos.VLesson value) {
super(VLesson.V_LESSON);
if (value != null) {
setSourceName(value.getSourceName());
setTheme(value.getTheme());
setSubtheme(value.getSubtheme());
setSlots(value.getSlots());
setOrderNr(value.getOrderNr());
}
}
}

395
src/main/resources/init.sql Normal file
View File

@ -0,0 +1,395 @@
--
-- PostgreSQL database dump
--
-- Dumped from database version 15.4 (Debian 15.4-1.pgdg120+1)
-- Dumped by pg_dump version 15.4 (Debian 15.4-1.pgdg120+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: t_lesson; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_lesson (
pk_lesson integer NOT NULL,
fk_slot integer NOT NULL,
fk_person integer,
notes text
);
ALTER TABLE public.t_lesson OWNER TO jotty;
--
-- Name: t_lesson_pk_lesson_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_lesson ALTER COLUMN pk_lesson ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_lesson_pk_lesson_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: t_lesson_subject; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_lesson_subject (
pk_lesson_subject integer NOT NULL,
fk_lesson integer NOT NULL,
fk_subject integer NOT NULL
);
ALTER TABLE public.t_lesson_subject OWNER TO jotty;
--
-- Name: t_lesson_subject_pk_lesson_subject_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_lesson_subject ALTER COLUMN pk_lesson_subject ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_lesson_subject_pk_lesson_subject_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: t_slot; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_slot (
pk_slot integer NOT NULL,
slot_day date NOT NULL,
note text
);
ALTER TABLE public.t_slot OWNER TO jotty;
--
-- Name: t_lessonday_pk_lessonday_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_slot ALTER COLUMN pk_slot ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_lessonday_pk_lessonday_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: t_person; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_person (
pk_person integer NOT NULL,
forename text NOT NULL,
surname text NOT NULL,
abbreviation text
);
ALTER TABLE public.t_person OWNER TO jotty;
--
-- Name: t_person_pk_person_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_person ALTER COLUMN pk_person ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_person_pk_person_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: t_source; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_source (
pk_source integer NOT NULL,
name text NOT NULL
);
ALTER TABLE public.t_source OWNER TO jotty;
--
-- Name: t_source_pk_source_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_source ALTER COLUMN pk_source ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_source_pk_source_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: t_subject; Type: TABLE; Schema: public; Owner: jotty
--
CREATE TABLE public.t_subject (
pk_subject integer NOT NULL,
fk_source integer NOT NULL,
theme text NOT NULL,
subtheme text,
book_pages text,
worksheets text,
bibleverse text,
notes text,
order_nr integer
);
ALTER TABLE public.t_subject OWNER TO jotty;
--
-- Name: t_subject_pk_subject_seq; Type: SEQUENCE; Schema: public; Owner: jotty
--
ALTER TABLE public.t_subject ALTER COLUMN pk_subject ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.t_subject_pk_subject_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: v_calendar; Type: VIEW; Schema: public; Owner: jotty
--
CREATE VIEW public.v_calendar AS
SELECT d.slot_day,
((p.forename || ' '::text) || p.surname) AS fullname,
p.abbreviation,
o.name AS source_name,
s.theme,
s.subtheme,
s.book_pages,
s.worksheets,
s.bibleverse,
s.notes AS subject_notes,
l.notes AS lesson_notes,
d.note AS slot_notes
FROM (((((public.t_slot d
LEFT JOIN public.t_lesson l ON ((l.fk_slot = d.pk_slot)))
LEFT JOIN public.t_lesson_subject ls ON ((ls.fk_lesson = l.pk_lesson)))
LEFT JOIN public.t_person p ON ((p.pk_person = l.fk_person)))
LEFT JOIN public.t_subject s ON ((s.pk_subject = ls.fk_subject)))
LEFT JOIN public.t_source o ON ((o.pk_source = s.fk_source)));
ALTER TABLE public.v_calendar OWNER TO jotty;
--
-- Name: v_lesson; Type: VIEW; Schema: public; Owner: jotty
--
CREATE VIEW public.v_lesson AS
SELECT s.name AS source_name,
su.theme,
su.subtheme,
array_agg(d.slot_day) AS slots,
su.order_nr
FROM ((((public.t_subject su
LEFT JOIN public.t_source s ON ((s.pk_source = su.fk_source)))
LEFT JOIN public.t_lesson_subject ls ON ((ls.fk_subject = su.pk_subject)))
LEFT JOIN public.t_lesson l ON ((l.pk_lesson = ls.fk_lesson)))
LEFT JOIN public.t_slot d ON ((d.pk_slot = l.fk_slot)))
GROUP BY s.name, su.theme, su.subtheme, su.order_nr;
ALTER TABLE public.v_lesson OWNER TO jotty;
--
-- Name: v_lesson_missing; Type: VIEW; Schema: public; Owner: jotty
--
CREATE VIEW public.v_lesson_missing AS
SELECT s.name AS source_name,
su.theme,
su.subtheme,
su.order_nr
FROM (public.t_subject su
LEFT JOIN public.t_source s ON ((s.pk_source = su.fk_source)))
WHERE (NOT (su.pk_subject IN ( SELECT t_lesson_subject.fk_subject
FROM public.t_lesson_subject)));
ALTER TABLE public.v_lesson_missing OWNER TO jotty;
--
-- Name: t_lesson t_lesson_fk_lessonday_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson
ADD CONSTRAINT t_lesson_fk_lessonday_key UNIQUE (fk_slot);
--
-- Name: t_lesson t_lesson_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson
ADD CONSTRAINT t_lesson_pkey PRIMARY KEY (pk_lesson);
--
-- Name: t_lesson_subject t_lesson_subject_fk_lesson_fk_subject_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson_subject
ADD CONSTRAINT t_lesson_subject_fk_lesson_fk_subject_key UNIQUE (fk_lesson, fk_subject);
--
-- Name: t_lesson_subject t_lesson_subject_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson_subject
ADD CONSTRAINT t_lesson_subject_pkey PRIMARY KEY (pk_lesson_subject);
--
-- Name: t_slot t_lessonday_lesson_day_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_slot
ADD CONSTRAINT t_lessonday_lesson_day_key UNIQUE (slot_day);
--
-- Name: t_slot t_lessonday_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_slot
ADD CONSTRAINT t_lessonday_pkey PRIMARY KEY (pk_slot);
--
-- Name: t_person t_person_abbreviation_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_person
ADD CONSTRAINT t_person_abbreviation_key UNIQUE (abbreviation);
--
-- Name: t_person t_person_forename_surname_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_person
ADD CONSTRAINT t_person_forename_surname_key UNIQUE (forename, surname);
--
-- Name: t_person t_person_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_person
ADD CONSTRAINT t_person_pkey PRIMARY KEY (pk_person);
--
-- Name: t_source t_source_name_key; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_source
ADD CONSTRAINT t_source_name_key UNIQUE (name);
--
-- Name: t_source t_source_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_source
ADD CONSTRAINT t_source_pkey PRIMARY KEY (pk_source);
--
-- Name: t_subject t_subject_pkey; Type: CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_subject
ADD CONSTRAINT t_subject_pkey PRIMARY KEY (pk_subject);
--
-- Name: t_lesson t_lesson_fk_lessonday_fkey; Type: FK CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson
ADD CONSTRAINT t_lesson_fk_lessonday_fkey FOREIGN KEY (fk_slot) REFERENCES public.t_slot(pk_slot);
--
-- Name: t_lesson t_lesson_fk_person_fkey; Type: FK CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson
ADD CONSTRAINT t_lesson_fk_person_fkey FOREIGN KEY (fk_person) REFERENCES public.t_person(pk_person);
--
-- Name: t_lesson_subject t_lesson_subject_fk_lesson_fkey; Type: FK CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson_subject
ADD CONSTRAINT t_lesson_subject_fk_lesson_fkey FOREIGN KEY (fk_lesson) REFERENCES public.t_lesson(pk_lesson);
--
-- Name: t_lesson_subject t_lesson_subject_fk_subject_fkey; Type: FK CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_lesson_subject
ADD CONSTRAINT t_lesson_subject_fk_subject_fkey FOREIGN KEY (fk_subject) REFERENCES public.t_subject(pk_subject);
--
-- Name: t_subject t_subject_fk_source_fkey; Type: FK CONSTRAINT; Schema: public; Owner: jotty
--
ALTER TABLE ONLY public.t_subject
ADD CONSTRAINT t_subject_fk_source_fkey FOREIGN KEY (fk_source) REFERENCES public.t_source(pk_source);
--
-- PostgreSQL database dump complete
--