Commit Graph

10483 Commits

Author SHA1 Message Date
Lukas Eder
d6c466de21 [jOOQ/jOOQ#12425] permits may reference qualified types 2021-10-01 14:26:22 +02:00
Lukas Eder
4cddcf45bc [jOOQ/jOOQ#12425] Preserve whitespace when removing permits clause 2021-10-01 14:06:25 +02:00
Lukas Eder
25d6cbd768 [jOOQ/jOOQ#12425] Made some QOM types sealed (WIP) 2021-10-01 11:21:12 +02:00
Lukas Eder
16a1a75379 [jOOQ/jOOQ#12425] Added QOM API tests
Make sure accessors always have the same $ prefix
2021-09-30 17:01:31 +02:00
Lukas Eder
706241241a [jOOQ/jOOQ#12425] Fixed Derby regression in GREATEST, LEAST emulation 2021-09-30 16:45:37 +02:00
Lukas Eder
fc1aa76d5b [jOOQ/jOOQ#12425] Added QOM API tests
Replace 3 valued Boolean types with enums:
- CycleOption
- RestartIdentityOption

Replace 3 valued Boolean types with boolean
- ToPublic (in Grant)
- FromPublic (in Revoke)
- Unique (in CreateIndex)
- Temporary (in DropTable)

Use API generator to generate Keywords / cleanup Keywords class
2021-09-30 14:26:22 +02:00
Lukas Eder
bc21b67fe2 [jOOQ/jOOQ#12425] Added QOM API tests
- Validating visibilities of U, M prefixed types
- Validating nullability of methods
- Fixed some Iterable methods that should be annotated as NotNull
2021-09-30 12:43:54 +02:00
Lukas Eder
ff89ad2f1d [jOOQ/jOOQ#12425] Fixed import 2021-09-30 12:25:13 +02:00
Lukas Eder
32c87800fe [jOOQ/jOOQ#12425] Refactor AbstractCondition.unwrapNot
With the new MQueryPart.replace() functionality, a lot of internal expression tree transformations are no longer required, among which the AbstractCondition.unwrapNot utility that can transform things like NOT NOT P to P as is useful for a Teradata workaround (see [jOOQ/jOOQ#11857])
2021-09-30 11:52:28 +02:00
Lukas Eder
2d98150483 [jOOQ/jOOQ#12425] Various fixes
If a QueryPart has a special DSL constructor (e.g. to prevent unnecessary wrapping of parts, such as ConditionAsField(FieldCondition(x)) or FieldCondition(ConditionAsField(x)), then we should make sure that DSL constructor is used, not the actual constructor, at least in replace()
2021-09-30 10:27:40 +02:00
Lukas Eder
b91e9235b3 [jOOQ/jOOQ#12425] Various fixes
- The MNull statement isn't commercial only
2021-09-29 17:59:01 +02:00
Lukas Eder
e8ee9b1b7b [jOOQ/jOOQ#12425] Various fixes
- Fix wrongly removed QOM imports in OSS edition
2021-09-29 17:18:32 +02:00
Lukas Eder
9de10a8a6b [jOOQ/jOOQ#12425] Various fixes
Revert wrong ConditionProviderImpl fix. join(..).on(..).and(..) depends on the previous behaviour, otherwise we lose the appended condition from the join convenience syntax
2021-09-29 17:02:23 +02:00
Lukas Eder
205757698b [jOOQ/jOOQ#12425] Various fixes
- ConditionProviderImpl shouldn't nest ConditionProviderImpl
- Stick with MFieldAlias, instead of MAliasedField
- Added and implemented MTableAlias
- Add a Param.(T) setter
2021-09-29 16:46:12 +02:00
Lukas Eder
d5e8a36e31 [jOOQ/jOOQ#12425] Fix OSS edition 2021-09-29 15:46:25 +02:00
Lukas Eder
d59c72fa07 [jOOQ/jOOQ#12425] TableFieldImpl should be UEmpty 2021-09-29 14:50:13 +02:00
Lukas Eder
66c1787f71 [jOOQ/jOOQ#12425] Fixed OSS version of QOM class 2021-09-29 14:24:29 +02:00
Lukas Eder
95153b184c [jOOQ/jOOQ#12425] Removed ad-hoc tests 2021-09-29 14:05:44 +02:00
Lukas Eder
6ecb5b5cd8 [jOOQ/jOOQ#12457] Generate some Javadoc on implicit join path navigation methods 2021-09-29 14:03:56 +02:00
Lukas Eder
d2a7e33fdb [jOOQ/jOOQ#12470] Add better Javadoc documentation about what Class<T> literals can be passed to DSL.val(Object, Class), etc. 2021-09-29 13:28:16 +02:00
Lukas Eder
1651e5631a [jOOQ/jOOQ#12425] Initial draft of the new query object model (QOM)
This draft includes:

- A QOM namespace containing the QOM API
- Lots of generated MQueryPart subtypes from our API generator
- Generated implementations of MQueryPart subtypes
- A draft MQueryPart traversal API

The current draft is not stable and will likely undergo heavy changes. Do not use this API yet for any production purposes (the existing DSL API is not affected, though)
2021-09-29 11:11:49 +02:00
Lukas Eder
fbffae86f1 [jOOQ/jOOQ#11864] Remove dates from blog URLs 2021-09-28 17:01:40 +02:00
Lukas Eder
b286fe1abc [jOOQ/jOOQ#12465] [jOOQ/jOOQ#12432] Extract more CompareConditions
Including:
- IN
- NOT_IN
2021-09-24 16:39:04 +02:00
Lukas Eder
2e061133ea [jOOQ/jOOQ#12465] [jOOQ/jOOQ#12432] Extract more CompareConditions
Including:
- LIKE_IGNORE_CASE
- NOT_LIKE_IGNORE_CASE
- NOT_SIMILAR_TO
- SIMILAR_TO
2021-09-24 15:57:57 +02:00
Lukas Eder
e6f3232710 [jOOQ/jOOQ#12465] [jOOQ/jOOQ#12432] Extract LIKE, NOT LIKE 2021-09-24 15:13:33 +02:00
Lukas Eder
db8c811cca [jOOQ/jOOQ#12465] Split RowIsNull into RowIsNull and SelectIsNull 2021-09-23 14:54:23 +02:00
Lukas Eder
b220e67b05 [jOOQ/jOOQ#12465] Move BOOL_AND and BOOL_OR to API generator 2021-09-23 14:54:13 +02:00
Lukas Eder
5761ddd40e [jOOQ/jOOQ#12465] Move ANY_VALUE to API generator 2021-09-23 14:08:35 +02:00
Lukas Eder
efd74633cb [jOOQ/jOOQ#12465] Move PRODUCT to API generator 2021-09-23 13:57:46 +02:00
Lukas Eder
fa286e821f [jOOQ/jOOQ#12465] Move MIN, MAX, COUNT, SUM, AVG to API generator 2021-09-23 11:58:14 +02:00
Lukas Eder
a5533230c5 [jOOQ/jOOQ#12465] DefaultAggregateFunction should be final
DefaultAggregateFunction historically is for simple aggregate
functions without extra functionality, such as MIN, MAX, COUNT, SUM,
AVG. It was then used as a base implementation for various others, which
should be extending AbstractAggregateFunction, instead.

This refactoring will simplify further QOM work
2021-09-23 11:09:29 +02:00
Lukas Eder
3cc898203a [jOOQ/jOOQ#12465] Deprecate IGNITE dialect again 2021-09-23 10:26:15 +02:00
Lukas Eder
a47bc76d70 [jOOQ/jOOQ#12425] Move FieldCondition to API generator 2021-09-22 15:02:16 +02:00
Lukas Eder
6f0da04d3b [jOOQ/jOOQ#12425] Move CONTAINS and related operators to API generator 2021-09-22 14:27:59 +02:00
Lukas Eder
8446afcaff [jOOQ/jOOQ#12425] Move ROWID to API generator 2021-09-21 17:13:13 +02:00
Lukas Eder
bf03f64549 [jOOQ/jOOQ#12425] Move XMLDOCUMENT to API generator 2021-09-21 16:29:26 +02:00
Lukas Eder
ad69ba5481 [jOOQ/jOOQ#12425] Move XMLDOCUMENT to API generator 2021-09-21 16:29:05 +02:00
Lukas Eder
1ed7d8969c [jOOQ/jOOQ#12425] Move XMLCONCAT to API generator 2021-09-21 15:45:06 +02:00
Lukas Eder
8f77562fc8 [jOOQ/jOOQ#12425] Move XMLCONCAT to API generator 2021-09-21 15:44:28 +02:00
Lukas Eder
1918553662 [jOOQ/jOOQ#12425] Move XMLCONCAT to API generator 2021-09-21 15:44:06 +02:00
Lukas Eder
6ca96bcc61 [jOOQ/jOOQ#12425] Move XMLPI to API generator 2021-09-21 15:37:23 +02:00
Lukas Eder
5de375710c [jOOQ/jOOQ#12425] Move XMLPI to API generator 2021-09-21 15:32:11 +02:00
Lukas Eder
fbb720f847 [jOOQ/jOOQ#12425] Move XMLPI to API generator 2021-09-21 15:31:40 +02:00
Lukas Eder
7b689b0a98 [jOOQ/jOOQ#12459] KotlinGenerator setter return type must be Unit also for records 2021-09-21 14:06:33 +02:00
Lukas Eder
729ee4f03a [jOOQ/jOOQ#12327] ImmutablePOJOMapper cannot map more than one nested POJO on the same level 2021-09-21 13:48:04 +02:00
Lukas Eder
9a961c27ce [jOOQ/jOOQ#12425] Fix Firebird regression for BIT_OR / BIT_XOR 2021-09-21 12:10:35 +02:00
Lukas Eder
f31b1a6c8f [jOOQ/jOOQ#12425] Generate acceptJava() also for Statements 2021-09-21 11:11:09 +02:00
Lukas Eder
2ca80b02a6 [jOOQ/jOOQ#12425] Move EXECUTE to API generator 2021-09-21 10:22:20 +02:00
Lukas Eder
6250ad5e55 [jOOQ/jOOQ#12425] Move GOTO to API generator 2021-09-21 09:42:57 +02:00
Lukas Eder
5045782c04 [jOOQ/jOOQ#12425] [jOOQ/jOOQ#12432] Move =, <>, etc to API generator 2021-09-20 17:34:53 +02:00