Commit Graph

750 Commits

Author SHA1 Message Date
Lukas Eder
dfb0ae8717 [#1855] Add Query.cancel() to support for interrupting statements
prematurely
2012-10-19 16:38:55 +02:00
Lukas Eder
675adc205f [#385] Allow for keeping open statements in a Query 2012-10-19 15:31:30 +02:00
Lukas Eder
eb0cfe4a68 [#1857] NPE in org.jooq.impl.TableImpl and org.jooq.SchemaMapping caused
by not threadsafe code in SchemaMapping.
2012-10-12 14:56:29 +02:00
Lukas Eder
86a5fca6ee Merge pull request #1858 from dankosedin/master
Fix for ticket 1857
2012-10-12 05:30:13 -07:00
Lukas Eder
2ee9b459bb [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - After
experimenting with such APIs, Christopher Deckers and I came to the
conclusion that the debugger API is too specialised to be put into the
core. This ticket will be reverted
2012-10-12 14:09:27 +02:00
Lukas Eder
cdccbceb61 [#1710] Add <E> Map<Record, List<E>> ResultQuery.fetchGroups(Field<?>[],
Class<E>) - Aligned API with other fetchGroups() methods
2012-10-12 14:03:15 +02:00
Ivan Dugic
85488a5cee [1710] Add <E> Map<List<?>, List<E>> ResultQuery.fetchGroups(Field<?>[],
Class<E>)
2012-10-08 19:51:23 +02:00
Lukas Eder
0526ac1bc6 [#1854] Add ResultQuery.maxRows(int) to limit the number of actually
fetched records
[#1856] Add Query.queryTimeout(int) to support for JDBC's
Statement.setQueryTimeout()
2012-10-07 12:36:53 +02:00
Denis Bondarenko
661eff4df5 Fixed possible NPE on deserialization 2012-10-03 11:54:47 +03:00
Denis Bondarenko
b862fd8d44 fix for ticket 1857 2012-10-02 13:24:59 +03:00
Lukas Eder
69187ee0ed [#1756] Add RecordMapper<E>, similar to RecordHandler<R>, mapping
records to custom types
2012-09-28 18:36:13 +02:00
Lukas Eder
8712b86f78 [#1850] Record.equals() returns true as soon as both records hold a
"null" value for a given field
2012-09-28 17:50:29 +02:00
Lukas Eder
d82d95ef78 [#1848] Add Record.changed() to indicate whether a Record contains
"dirty" values
2012-09-28 17:41:09 +02:00
Lukas Eder
9f2a848b07 [#1849] Add Record.original() to obtain the originally fetched values
from a Record
2012-09-28 17:16:40 +02:00
Lukas Eder
e976d79243 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core
- Added Debugger.executor(), to re-enable jOOQ Console Editor
functionality
 - Renamed DebuggerFactory to DebuggerAPI (may be improved)
 - Reverted Settings flags to activate the Debugger Server
 - Added explicit API in DebuggerAPI to start / stop the Debugger Server
 - Added DebuggerAPI.debug property for global activation / deactivation
of debugging
2012-09-28 15:57:36 +02:00
Lukas Eder
a15c83fc25 [#1844] Add Table<Record> Table.join(TableLike<?>, JoinType) to allow
for dynamic joining
2012-09-26 22:38:44 +02:00
Lukas Eder
20d9d02cdc [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - Added
QueryExecutor.schemata(), .tables(Schema), .fields(Table) in order to
query for meta data
2012-09-24 23:33:49 +02:00
Lukas Eder
94225e8d5f [#1842] Add Condition Field.compare(Comparator, Field<T>) to allow for
dynamic comparisons
2012-09-24 22:06:08 +02:00
Lukas Eder
8f53755f94 [#1841] Add SortField Field.sort(SortOrder) to allow for dynamic sorting 2012-09-24 21:51:07 +02:00
Lukas Eder
f9f351762c [#1709] Add Map<Record, Result<R>> ResultQuery.fetchGroups(Field<?>[])
- Changed result Map key from List<?> to Record
 - Fixed some debugger-related issues
2012-09-23 12:24:07 +02:00
Lukas Eder
0bf633fc26 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - Minor
improvements
2012-09-22 16:26:15 +02:00
Lukas Eder
b1ff568f41 [#1837] Add support for @java.beans.ConstructorProperties when
fetching into immutable POJOs
2012-09-22 13:44:48 +02:00
Lukas Eder
55e4aaed8d Changed generic type parameter <T> into <E> where reflection is involved 2012-09-22 12:33:11 +02:00
Lukas Eder
05bbb371c7 Wrap execute() call in try {} finally {} 2012-09-22 11:50:55 +02:00
Lukas Eder
dda85af4b4 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core -
Restored match count feature
2012-09-19 16:37:28 +02:00
Lukas Eder
142594e67d [#1472] Move org.jooq.tools.debug API from jOOQ Console to core -
Added instead processor
2012-09-19 16:02:43 +02:00
Lukas Eder
eaf50d8b57 [#1829] Factory.execute(String) may cause errors when plain SQL
returns results
2012-09-19 16:02:06 +02:00
Lukas Eder
30121c3da2 Merge branch 'master' of https://github.com/jOOQ/jOOQ.git 2012-09-18 22:46:48 +02:00
Ivan Dugic
45e6356e4e [#1810 Add <T, E> Map<T, E> ResultQuery.fetchMap(Field<T>, Class<E>) and
Result.intoMap(Field<T>, Class<E>)]
2012-09-18 22:28:03 +02:00
Lukas Eder
3f048d2692 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - added
column count to ResultLog along with row count. Both are performance
relevant.
2012-09-16 23:43:05 +02:00
Lukas Eder
337b158648 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core - Added
QueryOrigin property to QueryLog
2012-09-16 23:37:41 +02:00
Lukas Eder
6cd084e77f [#1830] Allow for passing null or empty arrays to intoMap(Field[]) and
intoGroups(Field[])
2012-09-16 22:46:42 +02:00
Lukas Eder
907b0d45cf Removed unnecessary throws clauses 2012-09-16 22:41:24 +02:00
Lukas Eder
c6a238e9b9 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core 2012-09-16 22:39:08 +02:00
Lukas Eder
d9bf1c5703 [#1472] Move org.jooq.tools.debug API from jOOQ Console to core 2012-09-16 18:10:06 +02:00
Lukas Eder
362bae68e0 [#1828] Reduce log level for Factory deserialisation to TRACE 2012-09-14 11:50:14 +02:00
Lukas Eder
5b40017df6 [#1819] MappingException in Record.into(Class), when POJO setters
have applicable names but non-applicable argument types
2012-09-14 10:33:46 +02:00
Lukas Eder
83f5bf8388 [#1820] Cannot fetch into non-public POJO classes. Their members /
getters / setters should be made accessible
2012-09-14 09:27:39 +02:00
Lukas Eder
1ae5227d9d [#1472] Add a Settings.executeDebugging property, and move server-side
Console logic to core - Added runtime setting
2012-09-13 18:44:45 +02:00
Lukas Eder
dcdceadfb1 Merge pull request #1815 from idugic/master
#1709 update
2012-09-11 12:58:22 -07:00
Ivan Dugic
cd05526a97 [#1709] Add Map<List<?>, Result<R>> ResultQuery.fetchGroups(Field<?>...)
Update
2012-09-11 21:49:28 +02:00
Lukas Eder
a31e00dad1 Fixed warning 2012-09-11 20:49:59 +02:00
Ivan Dugic
e127a11432 [#1709] Add Map<List<?>, Result<R>> ResultQuery.fetchGroups(Field<?>...) 2012-09-10 22:25:49 +02:00
Lukas Eder
921056dba0 [#1708] Add <T, E> Map<T, List<E>> ResultQuery.fetchGroupsInto(Field<T>,
Class<E>) 

 - Renamed "fetchIntoGroups" to "fetchGroups"
 - Replaced usage of LinkedList by ArrayList
2012-09-09 09:54:58 +02:00
Ivan Dugic
d8aac367f5 [#1708] Add <T, E> Map<T, List<E>> ResultQuery.fetchGroupsInto(Field<T>,
Class<E>)
2012-09-07 21:54:01 +02:00
Lukas Eder
eeaa60bee8 [#600] Add support for Oracle / SQL Standard linear regression functions 2012-09-07 16:30:45 +02:00
Lukas Eder
7f3e0fb63d [#1808] Optimise various ResultQuery.fetch(int),
ResultQuery.fetch(String) methods. They don't need to fetch all fields,
only the required ones - Added a comment
2012-09-07 12:38:08 +02:00
Lukas Eder
25996db3f7 [#1719] Make logic from ResultQuery.fetchArray() available in
Result.intoArray()
2012-09-07 12:09:09 +02:00
Lukas Eder
1b7ee88984 [#1807] Result.intoArray() declares "throws MappingException", which
isn't true
2012-09-07 11:35:11 +02:00
Lukas Eder
85cb1067f8 [#1802] Result.into(Table) doesn't work correctly, if the same field
name appears twice in Result - Improve Record.into(Table) Javadoc
2012-09-07 11:02:19 +02:00