org.apache.hadoop.hive.metastore.model.MDatabase Maven / Gradle / Ivy
/*
* 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.hadoop.hive.metastore.model;
import java.util.Map;
/**
* Storage Class representing the Hive MDatabase in a rdbms
*
*/
public class MDatabase {
private String name;
private String locationUri;
private String description;
private Map parameters;
private String ownerName;
private String ownerType;
private String catalogName;
/**
* Default construction to keep jpox/jdo happy
*/
public MDatabase() {}
/**
* To create a database object
* @param name of the database
* @param locationUri Location of the database in the warehouse
* @param description Comment describing the database
*/
public MDatabase(String catalogName, String name, String locationUri, String description,
Map parameters) {
this.name = name;
this.locationUri = locationUri;
this.description = description;
this.parameters = parameters;
this.catalogName = catalogName;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the location_uri
*/
public String getLocationUri() {
return locationUri;
}
/**
* @param locationUri the locationUri to set
*/
public void setLocationUri(String locationUri) {
this.locationUri = locationUri;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the parameters mapping.
*/
public Map getParameters() {
return parameters;
}
/**
* @param parameters the parameters mapping.
*/
public void setParameters(Map parameters) {
this.parameters = parameters;
}
public String getOwnerName() {
return ownerName;
}
public void setOwnerName(String ownerName) {
this.ownerName = ownerName;
}
public String getOwnerType() {
return ownerType;
}
public void setOwnerType(String ownerType) {
this.ownerType = ownerType;
}
public String getCatalogName() {
return catalogName;
}
public void setCatalogName(String catalogName) {
this.catalogName = catalogName;
}
}