Available in versions: Dev (3.22) | Latest (3.21) | 3.20 | 3.19 | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12
Simple CRUD
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
If you're using jOOQ's code generator, it will generate org.jooq.UpdatableRecord implementations for every table that has a primary key. When fetching such a record form the database, these records are "attached" to the Configuration that created them. This means that they hold an internal reference to the same database connection that was used to fetch them. This connection is used internally by any of the following methods of the UpdatableRecord:
// Refresh a record from the database. void refresh() throws DataAccessException; // Store (insert or update) a record to the database. int store() throws DataAccessException; // Delete a record from the database int delete() throws DataAccessException;
See the manual's section about serializability for some more insight on "attached" objects.
Table of contents
- 4.12.1.1.
- CRUD: Store
- 4.12.1.2.
- CRUD: Insert
- 4.12.1.3.
- CRUD: Update
- 4.12.1.4.
- CRUD: Delete
- 4.12.1.5.
- CRUD: Merge
- 4.12.1.6.
- CRUD: Refresh
| previous : next |
References to this page
Feedback
Do you have any feedback about this page? We'd love to hear it!