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.persistence.jdbc.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Represents an INFORMATON_SCHEMA.COLUMNS table row.
21 * @author Jacob Laursen - Initial contribution
26 private @Nullable String columnName;
27 private boolean isNullable;
28 private @Nullable String columnType;
30 public String getColumnName() {
31 String columnName = this.columnName;
32 return columnName != null ? columnName : "";
35 public String getColumnType() {
36 String columnType = this.columnType;
37 return columnType != null ? columnType : "";
40 public boolean getIsNullable() {
44 public void setColumnName(String columnName) {
45 this.columnName = columnName;
48 public void setColumnType(String columnType) {
49 this.columnType = columnType;
52 public void setIsNullable(boolean isNullable) {
53 this.isNullable = isNullable;