Skip to content

Package: DisabledCacheManager

DisabledCacheManager

nameinstructionbranchcomplexitylinemethod
DisabledCacheManager()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
add(Object, Object, Descriptor)
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
close()
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
contains(Class, Object, Descriptor)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evict(Class)
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evict(Class, Object, URI)
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evict(URI)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
evictAll()
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
evictInferredObjects()
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
get(Class, Object, Descriptor)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setInferredClasses(Set)
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright (C) 2023 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.sessions.cache;
16:
17: import cz.cvut.kbss.jopa.model.descriptors.Descriptor;
18: import cz.cvut.kbss.jopa.sessions.CacheManager;
19:
20: import java.net.URI;
21: import java.util.Set;
22:
23: public class DisabledCacheManager implements CacheManager {
24:
25: @Override
26: public void add(Object identifier, Object entity, Descriptor descriptor) {
27: // Do nothing
28: }
29:
30: @Override
31: public <T> T get(Class<T> cls, Object identifier, Descriptor descriptor) {
32: return null;
33: }
34:
35: @Override
36: public void evictInferredObjects() {
37: // Do nothing
38: }
39:
40: @Override
41: public void setInferredClasses(Set<Class<?>> inferredClasses) {
42: // Do nothing
43: }
44:
45: @Override
46: public void close() {
47: // Do nothing
48: }
49:
50: @Override
51: public boolean contains(Class<?> cls, Object identifier, Descriptor descriptor) {
52: return false;
53: }
54:
55: @Override
56: public void evict(Class<?> cls, Object identifier, URI context) {
57: // Do nothing
58: }
59:
60: @Override
61: public void evict(Class<?> cls) {
62: // Do nothing
63: }
64:
65: @Override
66: public void evict(URI contextUri) {
67: // Do nothing
68: }
69:
70: @Override
71: public void evictAll() {
72: // Do nothing
73: }
74: }