Last active
November 28, 2022 22:51
-
-
Save MWhyte/090889197ec81a85c97273464eb83187 to your computer and use it in GitHub Desktop.
JOOQ Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<StaffRecord> staffRecords = context | |
| .select() | |
| .from(STAFF) | |
| .fetchInto(StaffRecord.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Result<Record> fetch = context | |
| .select() | |
| .from(STAFF) | |
| .fetch(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<StaffRecord> staffRecords = context | |
| .select() | |
| .from(STAFF) | |
| .where(STAFF.FIRST_NAME.eq("Mike")) | |
| .and(STAFF.LAST_NAME.eq("Hillyer")) | |
| .fetchInto(StaffRecord.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<StaffRecord> staffRecords = context | |
| .select() | |
| .from(STAFF) | |
| .where(STAFF.FIRST_NAME.eq("Mike")) | |
| .andNot(STAFF.FIRST_NAME.eq("Jon")) | |
| .fetchInto(StaffRecord.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<StaffRecord> staffRecords = context | |
| .select() | |
| .from(STAFF) | |
| .where(STAFF.FIRST_NAME.eq("Mike")) | |
| .or(STAFF.FIRST_NAME.eq("Jon")) | |
| .fetchInto(StaffRecord.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<StaffRecord> staffRecords = context | |
| .select() | |
| .from(STAFF) | |
| .where(STAFF.LAST_NAME.eq("Hillyer")) | |
| .fetchInto(StaffRecord.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment