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