How to select a single record or a group of records using the SQLMap api
19 views
Skip to first unread message
Rubén V
unread,
Oct 14, 2020, 12:13:46 AM10/14/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi,
I am trying to use the SQLMap api and I cannot find a way to select a single record or a group of records as is done by applying a filter with the "where" condition.
I appreciate an example of how to do it.
Thanks
Shai Almog
unread,
Oct 14, 2020, 11:25:20 PM10/14/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi,
you would do a regular select and pass an object with the primary key field set to the value you're looking for. This would always return one result.
This isn't elegant though. We should probably add a "findByPrimaryKey()" API.
Rubén V
unread,
Oct 14, 2020, 11:46:00 PM10/14/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message