Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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<StringStringparameters;

  
Default construction to keep jpox/jdo happy
 
   public MDatabase() {}

  
To create a database object

Parameters:
name of the database
locationUri Location of the database in the warehouse
description Comment describing the database
 
   public MDatabase(String nameString locationUriString description,
       Map<StringStringparameters) {
     this. = name;
     this. = locationUri;
     this. = description;
     this. = parameters;
   }

  

Returns:
the name
 
   public String getName() {
     return ;
   }

  

Parameters:
name the name to set
 
   public void setName(String name) {
     this. = name;
   }

  

Returns:
the location_uri
 
   public String getLocationUri() {
     return ;
   }

  

Parameters:
locationUri the locationUri to set
 
   public void setLocationUri(String locationUri) {
     this. = locationUri;
   }

  

Returns:
the description
 
   public String getDescription() {
     return ;
   }

  

Parameters:
description the description to set
 
   public void setDescription(String description) {
     this. = description;
   }

  

Returns:
the parameters mapping.
 
  public Map<StringStringgetParameters() {
    return ;
  }

  

Parameters:
parameters the parameters mapping.
  public void setParameters(Map<StringStringparameters) {
    this. = parameters;
  }
New to GrepCode? Check out our FAQ X