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

17
.classpath Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src/main/java">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/.gradle/
/build/
/bin/

23
.project Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bicolib</name>
<comment>bible class organizer peristance library</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,2 @@
connection.project.dir=
eclipse.preferences.version=1

View File

@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.source=17

661
LICENSE Normal file
View File

@ -0,0 +1,661 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
car
Copyright (C) 2022 Jottyfan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

105
build.gradle Normal file
View File

@ -0,0 +1,105 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.maven.apache.org/maven2" }
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
dependencies {
classpath 'org.jooq:jooq-codegen:3.16.4'
classpath 'org.postgresql:postgresql:42.3.2'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:latest.release'
classpath 'nu.studer.jooq:nu.studer.jooq.gradle.plugin:7.1.1'
}
}
plugins {
id 'nu.studer.jooq' version '7.1.1'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'de.jottyfan'
version = '1'
description = """bicolib"""
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
implementation 'org.jooq:jooq:3.16.4'
implementation 'org.jooq:jooq-codegen:3.16.4'
implementation 'org.postgresql:postgresql:42.3.2'
jooqGenerator 'org.postgresql:postgresql:42.3.2'
}
import org.jooq.meta.jaxb.Logging
jooq {
version = '3.16.4'
edition = nu.studer.gradle.jooq.JooqEdition.OSS
configurations {
bicolib {
generateSchemaSourceOnCompilation = true
generationTool {
logging = Logging.WARN
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://localhost:5432/bibleclass'
user = 'jooq'
password = 'jooq'
properties {
property {
key = 'ssl'
value = 'false'
}
}
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
}
generate {
deprecated = false
relations = true
records = true
immutablePojos = true
fluentSetters = true
}
target {
packageName = 'de.jottyfan.bico.db'
directory = 'src/main/java'
}
strategy.name = 'org.jooq.codegen.DefaultGeneratorStrategy'
}
}
}
}
}
publishing {
publications {
binary(MavenPublication) {
from components.java
}
}
repositories {
maven {
url = layout.buildDirectory.dir("/home/jotty/git/libs/")
}
}
}

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

234
gradlew vendored Executable file
View File

@ -0,0 +1,234 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
rootProject.name = 'bicolib'

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
--