2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.dbquery.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * Common constants, which are used across the whole binding.
21 * @author Joan Pujol - Initial contribution
24 public class DBQueryBindingConstants {
26 private static final String BINDING_ID = "dbquery";
28 // List of all Thing Type UIDs
29 public static final ThingTypeUID THING_TYPE_INFLUXDB2_BRIDGE = new ThingTypeUID(BINDING_ID, "influxdb2");
30 public static final ThingTypeUID THING_TYPE_QUERY = new ThingTypeUID(BINDING_ID, "query");
32 // List of all Channel ids
33 public static final String CHANNEL_EXECUTE = "execute";
35 public static final String CHANNEL_PARAMETERS = "parameters";
36 public static final String CHANNEL_CORRECT = "correct";
37 public static final String TRIGGER_CHANNEL_CALCULATE_PARAMETERS = "calculateParameters";
39 public static final String RESULT_STRING_CHANNEL_TYPE = "result-channel-string";
40 public static final String RESULT_NUMBER_CHANNEL_TYPE = "result-channel-number";
41 public static final String RESULT_DATETIME_CHANNEL_TYPE = "result-channel-datetime";
42 public static final String RESULT_CONTACT_CHANNEL_TYPE = "result-channel-contact";
43 public static final String RESULT_SWITCH_CHANNEL_TYPE = "result-channel-switch";
45 private DBQueryBindingConstants() {