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

8
LINES

< > BotCompany Repo | #1008622 // indexConceptField - add index to a field of a concept class - idempotent

JavaX fragment (include)

1  
static void indexConceptField(Class<? extends Concept> c, S field) {
2  
  indexConceptField(db_mainConcepts(), c, field);
3  
}
4  
5  
static void indexConceptField(Concepts concepts, Class<? extends Concept> c, S field) {
6  
  if (!isConceptFieldIndexed(concepts, c, field))
7  
    new ConceptFieldIndex(concepts, c, field);
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008622
Snippet name: indexConceptField - add index to a field of a concept class - idempotent
Eternal ID of this version: #1008622/3
Text MD5: 8a21aaceb42def4f38fb81eac98249d4
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-29 20:51:18
Source code size: 315 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 711 / 745
Version history: 2 change(s)
Referenced in: [show references]