Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1006274 // getSingleFieldFromSingletonConcept [also remote/from disk]

JavaX fragment (include)

static O getSingleFieldFromSingletonConcept(S progID, S conceptClass, S field) {
  RemoteDB db = new RemoteDB(progID);
  if (db.functional()) {
    L<RC> list = db.xlist(conceptClass);
    if (empty(list)) null;
    ret db.xget(first(list), field);
  }
  Concepts c = new Concepts(progID).safeLoad();
  ret cget(first(c.list(conceptClass)), field);
}

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: 487 / 470
Referenced in: [show references]