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

26
LINES

< > BotCompany Repo | #1031725 // Additions of ExtendedBEAObject [Include] - note: these end up in GazelleBEA too. todo: fix include structures

JavaX fragment (include)

S beaHTMLURL(BEA o) {
  ret o == null ?: o.myURI();
}

S beaHTML(O o) {
  if (o cast BEA) ret beaHTML(o);
  ret htmlEncode2(o);
}

BEA beaGetOpt(long id) {
  ret getConceptOpt BEA(id);
}

static Cl<BEA> beaDeleteType(S type) {
  ret deleteConceptsWhereIC BEA(+type);
}

int beaCount(S type) {
  ret countConceptsWhereCI BEAObject(+type);
}
  
// first param can be type
BEA beaNew(O... _) {
  _ = prependParamIfOddCount("type", _);
  ret cnew BEA(_);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031725
Snippet name: Additions of ExtendedBEAObject [Include] - note: these end up in GazelleBEA too. todo: fix include structures
Eternal ID of this version: #1031725/11
Text MD5: f03aca5b2f8a91ad62ce70e130833144
Author: stefan
Category: javax / gazelle bea
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-13 17:39:35
Source code size: 479 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 978
Version history: 10 change(s)
Referenced in: [show references]