Libraryless. Click here for Pure Java version (12743L/86K).
1 | svoid deleteConcept_sync(long id) { |
2 | deleteConcept_sync(db_mainConcepts(), id); |
3 | } |
4 | |
5 | svoid deleteConcept_sync(Concepts concepts, long id) { |
6 | withDBLock(concepts, r { concepts.deleteConcept(id) }); |
7 | } |
8 | |
9 | static void deleteConcept_sync(Concept c) { |
10 | if (c != null) withDBLock(c._concepts, r { c.delete() }); |
11 | } |
12 | |
13 | static void deleteConcept_sync(Concept.Ref ref) { |
14 | if (ref != null) deleteConcept_sync(ref.get()); |
15 | } |
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: | 245 / 326 |
Referenced in: | [show references] |