blob: b5db74f63d24be5218fe2f171da6a05d6ade5ffd [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.knox.gateway.shell;
import com.fasterxml.jackson.annotation.JsonProperty;
public class KnoxDataSource {
private String name;
private String connectStr;
private String driver;
private String authnType;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getConnectStr() {
return connectStr;
}
public void setConnectStr(String connectStr) {
this.connectStr = connectStr;
}
public String getDriver() {
return driver;
}
public void setDriver(String driver) {
this.driver = driver;
}
public String getAuthnType() {
return authnType;
}
public void setAuthnType(String authnType) {
this.authnType = authnType;
}
public KnoxDataSource(@JsonProperty("name") String name,
@JsonProperty("contectStr") String connectStr,
@JsonProperty("driver") String driver,
@JsonProperty("authnType") String authnType) {
this.name = name;
this.connectStr = connectStr;
this.driver = driver;
this.authnType = authnType;
}
public KnoxDataSource(String name, String connectStr, String driver) {
this(name, connectStr, driver, "none");
}
}