1 | static O getSingleFieldFromSingletonConcept(S progID, S conceptClass, S field) { |
2 | RemoteDB db = new RemoteDB(progID); |
3 | if (db.functional()) { |
4 | L<RC> list = db.xlist(conceptClass); |
5 | if (empty(list)) null; |
6 | ret db.xget(first(list), field); |
7 | } |
8 | Concepts c = new Concepts(progID).safeLoad(); |
9 | ret cget(first(c.list(conceptClass)), field); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006274 |
Snippet name: | getSingleFieldFromSingletonConcept [also remote/from disk] |
Eternal ID of this version: | #1006274/1 |
Text MD5: | 3fc437aeb5242090489386dc77987da6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-26 16:38:24 |
Source code size: | 359 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 490 / 475 |
Referenced in: | [show references] |