]> git.basschouten.com Git - openhab-addons.git/blob
dfd058578544f4f77ac95523d5da4429e524c54f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.persistence.jdbc.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This class represents status for an {@link ItemTableCheckEntry}.
19  *
20  * @author Jacob Laursen - Initial contribution
21  */
22 @NonNullByDefault
23 public enum ItemTableCheckEntryStatus {
24     /**
25      * Table is consistent.
26      */
27     VALID {
28         @Override
29         public String toString() {
30             return "Valid";
31         }
32     },
33     /**
34      * Table has no corresponding item.
35      */
36     ITEM_MISSING {
37         @Override
38         public String toString() {
39             return "Item missing";
40         }
41     },
42     /**
43      * Referenced table does not exist.
44      */
45     TABLE_MISSING {
46         @Override
47         public String toString() {
48             return "Table missing";
49         }
50     },
51     /**
52      * Referenced table does not exist nor has corresponding item.
53      */
54     ITEM_AND_TABLE_MISSING {
55         @Override
56         public String toString() {
57             return "Item and table missing";
58         }
59     },
60     /**
61      * Mapping for table does not exist in index.
62      */
63     ORPHAN_TABLE {
64         @Override
65         public String toString() {
66             return "Orphan table";
67         }
68     }
69 }