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

15
LINES

< > BotCompany Repo | #1027613 // deleteConcept_sync - with DB lock

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (12743L/86K).

svoid deleteConcept_sync(long id) {
  deleteConcept_sync(db_mainConcepts(), id);
}

svoid deleteConcept_sync(Concepts concepts, long id) {
  withDBLock(concepts, r { concepts.deleteConcept(id) });
}

static void deleteConcept_sync(Concept c) {
  if (c != null) withDBLock(c._concepts, r { c.delete() });
}

static void deleteConcept_sync(Concept.Ref ref) {
  if (ref != null) deleteConcept_sync(ref.get());
}

Author comment

Began life as a copy of #1006055

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027613
Snippet name: deleteConcept_sync - with DB lock
Eternal ID of this version: #1027613/1
Text MD5: d0ed01d089592517269812ccd27d0d71
Transpilation MD5: 80d85c3f09cc9b218d3b962bfcfd604e
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-26 14:53:23
Source code size: 424 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 326
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)