jOOQ 用于 CRUD
适用于 ✅ 开源版 ✅ 专业版 ✅ 企业版
除了 jOOQ 用于查询构建的流畅 API,jOOQ 还可以帮助您执行日常 CRUD 操作。 这里给出一个例子
// Fetch an author AuthorRecord author = create.fetchOne(AUTHOR, AUTHOR.ID.eq(1)); // Create a new author, if it doesn't exist yet if (author == null) { author = create.newRecord(AUTHOR); author.setId(1); author.setFirstName("Dan"); author.setLastName("Brown"); } // Mark the author as a "distinguished" author and store it author.setDistinguished(1); // Executes an update on existing authors, or insert on new ones author.store();
如果您希望使用 jOOQ 的所有功能,手册的以下部分将对您有帮助(包括所有子章节)
反馈
您对此页面有任何反馈吗? 我们很乐意听取您的意见!