• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 26773559161

01 Jun 2026 06:21PM UTC coverage: 63.376% (-0.01%) from 63.389%
26773559161

push

github

web-flow
TRUNK-6429: Create application events for service method calls and entity changes (#6084)

272 of 504 new or added lines in 27 files covered. (53.97%)

5 existing lines in 2 files now uncovered.

23598 of 37235 relevant lines covered (63.38%)

0.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.33
/api/src/main/java/org/openmrs/api/db/event/DeleteDbEvent.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.api.db.event;
11

12
import org.openmrs.event.EntityEvent;
13

14
import java.io.Serializable;
15
import java.util.HashSet;
16
import java.util.Set;
17

18
/**
19
 * DB level event emitted upon deletion of an entity.
20
 *
21
 * @param <T> type of entity
22
 */
23
public class DeleteDbEvent<T> extends EntityEvent<T> {
24
        
25
        private Serializable id;
26
        private Object[] state;
27
        private String[] propertyNames;
28
        
NEW
29
        public DeleteDbEvent() {
×
NEW
30
        }
×
31
        
32
        public DeleteDbEvent(T entity, Serializable id, Object[] state, String[] propertyNames) {
33
                this(entity, id, state, propertyNames, new HashSet<>());
1✔
34
        }
1✔
35

36
        public DeleteDbEvent(T entity, Serializable id, Object[] state, String[] propertyNames, Set<String> tags) {
37
                super(entity, tags);
1✔
38
                this.state = state;
1✔
39
                this.propertyNames = propertyNames;
1✔
40
                this.id = id;
1✔
41
        }
1✔
42

43
        public Serializable getId() {
NEW
44
                return id;
×
45
        }
46

47
        public Object[] getState() {
NEW
48
                return state;
×
49
        }
50

51
        public String[] getPropertyNames() {
NEW
52
                return propertyNames;
×
53
        }
54
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc