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

9
LINES

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

JavaX fragment (include)

svoid indexConceptFieldDesc(Class<? extends Concept> c, S field) {
  indexConceptFieldDesc(db_mainConcepts(), c, field);
}

// if there is a non-ordered index, it keeps that one
svoid indexConceptFieldDesc(Concepts concepts, Class<? extends Concept> c, S field) {
  if (!isConceptFieldIndexed(concepts, c, field))
    new ConceptFieldIndexDesc(concepts, c, field);
}

Author comment

Began life as a copy of #1008622

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026157
Snippet name: indexConceptFieldDesc - add index to a field of a concept class - idempotent
Eternal ID of this version: #1026157/1
Text MD5: aef11da2d6def13ef113fe0c35b6edd0
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 13:27:32
Source code size: 374 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 311
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032779 - indexConceptFieldDesc_v2 - add index to a field of a concept class - idempotent - return index