Commit Graph

1625 Commits

Author SHA1 Message Date
Johannes Buehler
9c751d7644 #2829 applied eclipse Code Formatting 2013-11-15 21:47:29 +01:00
Lukas Eder
861d43980a [#2848] Add support for infix-notation for bitwise operations 2013-11-15 18:07:04 +01:00
Johannes Buehler
6e7f1428ce Merge remote-tracking branch 'github/master' 2013-11-14 09:46:21 +01:00
Johannes Buehler
1144224aba added JSON Loader Tests
LoaderImpl now uses same executeSQL method for indeepended of the import format
2013-11-14 09:43:06 +01:00
Lukas Eder
8084bae5d4 [#2842] Sybase CAST(? AS LONG VARCHAR) must not contain a length 2013-11-11 14:30:03 +01:00
Lukas Eder
2caba92084 [#2831] Bad Javadoc formatting on MySQLDSL's and MariaDBDSL's enumType() method 2013-11-11 10:32:07 +01:00
Lukas Eder
e1184ba6a5 [#2829] Removed unneeded nullString() method from the JSON Loader API 2013-11-04 11:08:34 +01:00
Lukas Eder
7158978af2 [#2829] Enhance Loader API to allow for importing JSON data in addition to CSV data - Fixed warnings 2013-11-04 11:05:51 +01:00
Lukas Eder
e79890ede9 [#2492] Add support for the MS Access database - Synchronise jOOQ Professional Edition with jOOQ Open Source Edition 2013-11-04 11:05:15 +01:00
Lukas Eder
4ea1428d8c [#2829] Enhance Loader API to allow for importing JSON data in addition to CSV data - Fixed warnings 2013-11-04 10:44:41 +01:00
Johannes Buehler
b63423a92d Added JSON import Support. 2013-11-03 14:30:18 +01:00
Lukas Eder
d03f34c450 [#2824] Log 500 records on TRACE level, instead of just 5 2013-11-01 17:19:10 +01:00
Lukas Eder
eab6c31dd0 [#2809] Add support for MySQL's MID() function, which is a synonym for SUBSTRING() 2013-10-31 14:34:25 +01:00
Lukas Eder
09a68de5a0 Javadoc Fix 2013-10-31 11:07:20 +01:00
Lukas Eder
edc6baf3ae [#2767] Add support for CUBRID 9.2 features 2013-10-29 14:07:53 +01:00
Lukas Eder
425b71d92a Release 3.3.0-SNAPSHOT 2013-10-29 12:29:01 +01:00
Lukas Eder
e9029277fa [#2805] Add seekAfter() and seekBefore() to allow for paging in both directions 2013-10-29 11:54:31 +01:00
Lukas Eder
f55b482a34 [#2810] Add support for the REVERSE() function, where it is supported 2013-10-29 11:12:02 +01:00
Lukas Eder
311f3299d8 Fixed unit tests after introduction of WINDOW clause 2013-10-28 18:06:09 +01:00
Lukas Eder
267ba0faa9 [#2811] Deprecate ResultQuery.fetchLazy(int) - fetchSize is now passed to ResultQuery.fetchSize() not only for lazy fetching 2013-10-28 17:56:03 +01:00
Lukas Eder
759cab3fc4 [#2806] Add ResultQuery.fetchSize() to influence the JDBC Statement's fetch size 2013-10-28 17:55:48 +01:00
Lukas Eder
5268c59103 Release 3.3.0-SNAPSHOT 2013-10-28 17:13:41 +01:00
Lukas Eder
bd209424aa [#2658] Inefficient emulation of row value expression comparison predicates <, <=, >, >=. Factor out predicates for improved index usage 2013-10-23 17:37:00 +02:00
Lukas Eder
4352c1849d [#2795] Bad Javadoc on DSLContext.fetchOne(String) method 2013-10-23 16:07:04 +02:00
Lukas Eder
a812c03795 [#2246] Add <T> T DSLContext.fetchValue(Select<Record1<T>>) to support more typesafety when fetching single values 2013-10-23 15:17:56 +02:00
Lukas Eder
2c738d5797 [#2792] data(Object, Object) methods do not unset the value if null is passed 2013-10-23 09:53:54 +02:00
Lukas Eder
f479ee2a88 [#531] [#2790] Add a Context data map scoped to the current subquery 2013-10-22 18:09:02 +02:00
Lukas Eder
a02955dddf [#531] Add support for the WINDOW clause - Restrict rendering to PostgreSQL and Sybase 2013-10-22 17:02:38 +02:00
Lukas Eder
be4cf6ec24 [#531] Add support for the WINDOW clause 2013-10-22 16:38:08 +02:00
Lukas Eder
9765edd43a [#2788] Add support for the PostgreSQL "json" data type - Added a json column to the T_EXOTIC_TYPES table 2013-10-18 11:47:53 +02:00
Lukas Eder
6b9e227569 Fixed Javadoc 2013-10-18 11:47:28 +02:00
Lukas Eder
aa87284601 [#2779] Add support for LEFT(), RIGHT() functions 2013-10-17 16:36:57 +02:00
Lukas Eder
58233e5d0f [#2657] Fixed Javadoc Typo 2013-10-17 14:43:18 +02:00
Lukas Eder
372ef3a4eb [#2657] Add support for ORDER BY .. SEEK .. LIMIT to implement the "seek method" for faster offsets 2013-10-17 14:33:47 +02:00
Lukas Eder
fa7bc6942a [#2784] Add DSL.row(Collection<?>) to allow for interacting with collections of values or Fields 2013-10-17 13:43:41 +02:00
Lukas Eder
c23b615a76 [#2780] Add PostgresDSL.oid(Table<?>) to produce table.oid references 2013-10-16 14:28:50 +02:00
Lukas Eder
5d5182fcea Removed query execution limitation from trial version 2013-10-15 15:14:29 +02:00
Lukas Eder
095026dc1d [#2776] Add support for the PostgreSQL ONLY clause 2013-10-15 15:13:37 +02:00
Lukas Eder
5e7f157f52 Converted all \r\n to \n 2013-10-10 10:13:22 +02:00
Lukas Eder
3d7a440df0 Set all Eclipse settings to use Unix-style line separators 2013-10-10 09:53:11 +02:00
Lukas Eder
fc7afb4076 Merged release fixes from pro distribution 2013-10-09 19:28:25 +02:00
Lukas Eder
fb176af7df Release 3.2.0 2013-10-09 19:24:30 +02:00
Lukas Eder
5fdca06dd1 Added remarks about VisitListener being experimental 2013-10-08 13:56:49 +02:00
Lukas Eder
4167a01ce9 [#2770] Add reference to Javadoc with respect to missing feature. 2013-10-08 12:12:35 +02:00
Lukas Eder
ef9080435c OSS / Commercial dual-licensing: Remove some commercial code sections from publicly available GitHub repository. 2013-10-07 15:46:01 +02:00
Lukas Eder
f8dd234cb7 OSS / Commercial dual-licensing: Mask out commercial code sections from publicly available GitHub repository. 2013-10-07 14:52:51 +02:00
Lukas Eder
ba3030d010 [#1644] Add DSL.dual() to explicitly create a DUAL table that works with any dialect 2013-10-07 11:30:43 +02:00
Lukas Eder
5080114610 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ-codegen/src/main/java/org/jooq/util/JavaGenerator.java
2013-10-07 10:45:00 +02:00
Lukas Eder
1d5ae25f2b [#2765] Add support for a database-agnostic GENERATE_SERIES(FROM, TO) table function 2013-10-04 17:59:25 +02:00
Lukas Eder
125cdd858a [#2766] Javadoc typo on DSLContext.batchDelete() 2013-10-04 16:40:53 +02:00
Lukas Eder
7d0ba9607d Fixed license in eclipse .settings for code templates 2013-10-02 16:39:02 +02:00
Lukas Eder
63717b517f Updated licensing link from /eula to /licensing 2013-10-02 16:36:22 +02:00
Lukas Eder
e4b616e8fd Added more source code splitting logic for trial licenses 2013-10-01 13:52:37 +02:00
Lukas Eder
7725787591 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java
	pom.xml
2013-10-01 13:05:28 +02:00
Lukas Eder
39783bb69f Fixed Xtend code generation to match the latest improvements 2013-10-01 12:57:31 +02:00
lukaseder
d3ea56750e [#2764] Let CRUD operations be able to perform UPDATEs on primary keys 2013-09-28 11:35:11 +02:00
Lukas Eder
275b3918e5 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git 2013-09-27 12:47:19 +02:00
Lukas Eder
7677805e25 [#996] Add support for various Postgres ARRAY operations 2013-09-27 12:05:28 +02:00
lukaseder
5bb189f477 [#2580] Bad SQL rendered when combining DISTINCT with LIMIT .. OFFSET in
DB2, SQL Server
2013-09-24 22:31:46 +02:00
Lukas Eder
f753ccd850 [#2597] f1.concat(f2).toString() seems to render unnecessary cast expression 2013-09-24 11:44:45 +02:00
Lukas Eder
180b3a193b Fixed a regression for Oracle 2013-09-24 11:44:16 +02:00
Lukas Eder
170b0aec0f Restored accidental override of license header to jOOU. It should remain ASL 2.0 single-licensed, not dual-licensed OSS / Commercial 2013-09-24 10:25:40 +02:00
Lukas Eder
90b67fef15 [#2712] Field.equalIgnoreCase(String) method broken for SQL Server 2013-09-20 15:03:49 +02:00
Lukas Eder
028dc4503c [#2760] org.jooq.Meta should treat MySQL databases as Schema, not as Catalog 2013-09-20 14:00:02 +02:00
Lukas Eder
232ec19e91 [#2681] "Type NULL is not supported in dialect MYSQL" when calling Meta.getTables() with MySQL or MariaDB JDBC drivers 2013-09-20 13:37:21 +02:00
Lukas Eder
0ef21afc1d [#2534] Correctly handle Oracle BLOB and CLOB data types, when fetched through plain SQL 2013-09-20 13:19:17 +02:00
Lukas Eder
f5f70071af [#2759] DSLContext.fetchCount() fails when argument SELECT statement does not explicitly provide column names in SQL Server 2013-09-20 12:01:52 +02:00
Lukas Eder
dd7292e280 [#2757] Add support for DB2 10.5 - Do not use LONG VARCHAR any more 2013-09-19 17:43:13 +02:00
Lukas Eder
090733dd86 [#2757] Add support for DB2 10.5 - Fixed FieldCondition 2013-09-19 17:33:13 +02:00
Lukas Eder
e80ee1fcd1 [#2757] Add support for DB2 10.5 2013-09-19 17:30:27 +02:00
Lukas Eder
09c3dbfd09 [#2717] DefaultResultSet depends on Java 1.7 / JDBC 4.1 2013-09-18 17:27:07 +02:00
Lukas Eder
210c43f30e [#2755] Incomplete @Support annotations on OrderedAggregateFunction methods 2013-09-18 15:54:48 +02:00
Lukas Eder
ece38d31c3 Remove parts of the Commercial API during splitting 2013-09-18 15:52:42 +02:00
Lukas Eder
6b60fc1dd3 [#2753] DATE_DIFF() with CURRENT_DATE() returns wrong precision in Oracle 2013-09-18 13:39:52 +02:00
Lukas Eder
15d01bc6f1 Renamed [com] to [pro] 2013-09-18 13:19:23 +02:00
Lukas Eder
87e4b5fdd0 Translate commercial code sections to xxx xx xxxxxx to preserve lines of code 2013-09-18 10:42:39 +02:00
Lukas Eder
c8b9b92a0f Added OSS / Commercial code splitting marks to jOOQ-test 2013-09-17 17:14:08 +02:00
Lukas Eder
0de43e50a1 Settle for final multi-licensing model: ASL 2.0 / Commercial 2013-09-17 12:01:08 +02:00
Lukas Eder
7203ae11ec Switched unit test dialect from Oracle to MySQL 2013-09-16 18:05:43 +02:00
Lukas Eder
7e133b8b94 Added OSS / Commercial code splitting marks 2013-09-16 17:57:28 +02:00
Lukas Eder
ca1a8b149c Switched unit tests from Oracle to MySQL dialect 2013-09-16 17:43:39 +02:00
Lukas Eder
58811ae3e7 [#2643] Routine.execute(Configuration) should restore the original
routine state after execution
2013-09-16 10:13:12 +02:00
Lukas Eder
bd5154e660 [#2726] Add Attachable.detach() 2013-09-16 10:13:08 +02:00
Lukas Eder
bf57f2fd3c [#2722] Add DSLContext.newRecord(Field<?>...) to support the creation of
custom record types
2013-09-16 10:13:07 +02:00
Lukas Eder
f3b6458707 [#2724] The default logger should log the number of affected records, if
applicable
2013-09-16 10:13:06 +02:00
Lukas Eder
2832947913 [#2725] Add ExecuteContext.rows() to indicate the number of affected
rows in the last executed statement
2013-09-16 10:13:04 +02:00
Lukas Eder
fceabb80ce [#2719] Change various method(Collection<SortField<?>>) into
method(Collection<? extends SortField<?>>)
2013-09-16 10:12:57 +02:00
Lukas Eder
9675da7d2b New Licensor: Data Geekery GmbH
- Reverted previous license change (which was too restrictive)
- Changed license to
  - ASL 2.0  + Commercial for use with Open Source databases
  - AGPL 3.0 + Commercial for use with commercial databases
2013-09-16 10:12:56 +02:00
Lukas Eder
34c8ff98ed New Licensor: Data Geekery GmbH
- Transferred license from Lukas Eder to Data Geekery GmbH
- Changed license from ASL 2.0 to
  - LGPL + Commercial for jOOQ
  - AGPL + Commercial for jOOQ-codegen, jOOQ-meta, jOOQ-scala and others
2013-09-16 10:12:45 +02:00
Lukas Eder
cfeb170783 Update pom.xml 2013-09-16 10:11:43 +02:00
Lukas Eder
a27d6063c4 Update Utils.java 2013-09-16 09:46:24 +02:00
Lukas Eder
04043ee4a5 Reverted removal of "unused" method 2013-09-16 09:43:57 +02:00
lukaseder
ba0ce384e7 Removed unused internal method 2013-09-14 11:52:33 +02:00
lukaseder
d1c0d45f66 [#2729] Emulate IS DISTINCT FROM through IS / IS NOT in SQLite 2013-09-08 11:29:49 +02:00
Lukas Eder
695d32c86e Fixed module name 2013-08-27 11:32:49 +02:00
Lukas Eder
bbc390f4f9 Release 3.2.0-SNAPSHOT 2013-08-26 16:45:55 +02:00
Lukas Eder
634be94da7 Release 3.2.0-alpha-01 2013-08-26 13:58:24 +02:00
Lukas Eder
c2c838bf86 [#2708] Wrong SQL rendered for CAST(x AS DECIMAL(y, z)). Precision and
scale are lost.
2013-08-23 17:55:43 +02:00
Lukas Eder
43c27cddff [#2708] Wrong SQL rendered for CAST(x AS DECIMAL(y, z)). Precision and
scale are lost. - Added a failing test case
2013-08-23 17:21:46 +02:00
Lukas Eder
f2aa2b0b5f [#2492] MS Access support will be implemented in a later version than
3.2
2013-08-23 17:18:16 +02:00
Lukas Eder
f69c085ea0 Fall through to default datediff implementation for INGRES 2013-08-20 11:46:01 +02:00
Lukas Eder
6461ce5b87 [#2703] SQLDialect.getNameLC() and getNameUC() are not NPE-safe 2013-08-19 18:03:13 +02:00
Lukas Eder
9ec89ff33b [#2702] Add DataType.defaulted() and DataType.nullable() 2013-08-19 14:46:25 +02:00
Lukas Eder
8d685897be Fixed Javadoc 2013-08-19 14:37:36 +02:00
Lukas Eder
2eb4fcd8f2 [#2591] Result.intoGroups() and similar methods create key Records with
changed=true
2013-08-19 14:31:32 +02:00
Lukas Eder
09eb2de5f0 [#2628] Add missing Javadoc to DefaultDSLContext 2013-08-19 13:52:40 +02:00
lukaseder
7227e1b313 Merge branch 'master' of https://github.com/jOOQ/jOOQ.git 2013-08-18 20:59:37 +02:00
lukaseder
f298c4addc [#2701] Document the fact that jOOQ sets changed flags to true, even if
Record.setValue() sets the value already present in the record
2013-08-18 20:58:31 +02:00
Lukas Eder
66301d6574 [#2665] Added example for INSERT query transformation
* Added example integration test for INSERT query transformation
 * Enhanced VisitContext to enable patching of QueryParts while
traversing the tree
2013-08-16 14:00:23 +02:00
Lukas Eder
7e49dc6c26 [#2696] Provide default implementation for CustomQueryPart.bind() (for
all Custom QueryParts)
2013-08-16 13:03:13 +02:00
Lukas Eder
36d017a1b4 Fixed broken test 2013-08-16 11:28:19 +02:00
Lukas Eder
c17b1ce738 [#2665] Fixed Oracle MERGE regressions 2013-08-15 18:26:17 +02:00
Lukas Eder
55922a354b [#2665] Added support for the MERGE clause 2013-08-15 17:55:14 +02:00
Lukas Eder
5bf3422c9b Added some Javadoc 2013-08-15 17:26:26 +02:00
Lukas Eder
1166e2e183 [#2665] Added support for the TRUNCATE statement clause 2013-08-15 15:09:59 +02:00
Lukas Eder
5a492625c9 [#2665] [#2694] [#2695] BindContext traversal is not yet supported 2013-08-15 14:56:03 +02:00
Lukas Eder
01831122ac [#2665] Added support for the DELETE statement's clauses 2013-08-15 14:55:14 +02:00
Lukas Eder
a3afd79816 [#2592] Qualified names created using DSL.name(String...) should not
render null or empty string parts
2013-08-15 13:38:16 +02:00
Lukas Eder
43a9c1215f [#2665] Fixed TABLE_ALIAS emission by TableImpl, if it is an aliased
table
2013-08-15 11:35:54 +02:00
Lukas Eder
446d49d767 [#2665] Added more Javadocs 2013-08-15 11:12:51 +02:00
Lukas Eder
4d9604fb33 Fixed excess rendered whitespace 2013-08-15 10:02:40 +02:00
Lukas Eder
a207faef0a [#2689] Expose a DAO's internal RecordMapper through DAO.mapper() 2013-08-14 09:13:43 +02:00
Lukas Eder
268ca49173 [#2665] Removed sample listener 2013-08-13 11:38:36 +02:00
Lukas Eder
ef08665ab5 [#2665] Removed DUMMY clause 2013-08-13 11:24:58 +02:00
Lukas Eder
d0a9d76a05 [#2665] Added support for alias and values constructor clause events 2013-08-13 11:18:07 +02:00
Lukas Eder
14fcc1994b [#2665] Added some more Javadocs to Clause 2013-08-12 17:00:11 +02:00
Lukas Eder
70771db510 [#2665] Added support for INSERT .. ON DUPLICATE KEY UPDATE 2013-08-12 16:53:31 +02:00
Lukas Eder
7736d8f043 [#2665] Added test case for INSERT .. RETURNING 2013-08-12 16:34:55 +02:00
Lukas Eder
38f2ef3060 [#2665] Added proper clause events for INSERT .. SELECT 2013-08-12 16:27:19 +02:00
Lukas Eder
094be3cdfb [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * INSERT statement refactoring to correctly implement clause events.
2013-08-12 16:10:53 +02:00
Lukas Eder
86b0fe1e1d Improved SQL rendering - cleanly separate keyword() and sql() calls. 2013-08-12 14:52:42 +02:00
Lukas Eder
988979c172 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added INSERT clause implementation draft.
2013-08-12 11:26:51 +02:00
Lukas Eder
e156ccd529 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Fixed various DUMMY references.
2013-08-12 08:53:02 +02:00
Lukas Eder
7ef726a570 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Fixed various DUMMY references.
2013-08-08 18:25:52 +02:00
Lukas Eder
4a279450d5 Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ/src/main/java/org/jooq/Clause.java
2013-08-08 17:54:10 +02:00
Lukas Eder
7d7083ada0 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added tests for NOT predicate
2013-08-08 17:53:10 +02:00
Lukas Eder
a79b7bfeb0 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added tests for IN predicate
 * Added tests for EXISTS predicate
2013-08-08 17:47:46 +02:00
Lukas Eder
1a5d8e13c3 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Fixed failing unit test for CONDITION_BETWEEN_SYMMETRIC
 * Changed clauses() method to accept Context argument
2013-08-08 17:23:13 +02:00
Lukas Eder
dd2040093a [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added unit tests for CONDITION clauses
 * Added failing unit test for CONDITION_BETWEEN_SYMMETRIC
2013-08-08 17:10:00 +02:00
Lukas Eder
ca106a5dfa Merge branch 'master' of git@github.com:jOOQ/jOOQ.git
Conflicts:
	jOOQ/src/test/java/org/jooq/test/VisitContextTest.java
2013-08-08 16:49:23 +02:00
Lukas Eder
c8f2ac0b14 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Fixed semantics of UPDATE clauses
 * Added an UPDATE WHERE test case
2013-08-08 16:46:17 +02:00
Lukas Eder
c2473cd0ec [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added clauses for FIELD_REFERENCE, TABLE_REFERENCE, etc.
 * Implemented UPDATE clauses
 * Changed QueryPartInternal to allow for specifying a Clause[] array
per QueryPart
 * Added a mechanism to omit clause event emission
2013-08-08 16:36:53 +02:00
Lukas Eder
6823c070e2 [#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

* Added integration test for query manipulation
2013-08-05 17:04:42 +02:00
Lukas Eder
5b4cf0924c [#2010] Added support for DELETE event. Slightly changed STORE event
semantics
2013-08-05 16:06:42 +02:00
Lukas Eder
1595f09690 [#2010] Implemented INSERT, UPDATE, STORE lifecycle events 2013-08-05 15:53:37 +02:00
Lukas Eder
6f4c232de9 [#2010] Add listener API to Record / UpdatableRecord
* Fixed bad RecordContext content
2013-08-05 15:39:09 +02:00
Lukas Eder
290601afce [#2010] Add listener API to Record / UpdatableRecord
* Added support for REFRESH event
2013-08-05 15:30:10 +02:00
Lukas Eder
ee9f1fed76 [#2010] Add listener API to Record / UpdatableRecord
* Implemented record loading lifecycle events
2013-08-05 15:00:55 +02:00
Lukas Eder
8cb6475d42 Fixed Javadoc 2013-08-05 13:40:34 +02:00
Lukas Eder
21df9be71f Removed unused method 2013-08-05 13:30:32 +02:00