org.apache.hadoop.hive.metastore.model
Class MDatabase

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.model.MDatabase

public class MDatabase
extends Object

Storage Class representing the Hive MDatabase in a rdbms


Constructor Summary
MDatabase()
          Default construction to keep jpox/jdo happy
MDatabase(String name, String locationUri, String description, Map<String,String> parameters)
          To create a database object
 
Method Summary
 String getDescription()
           
 String getLocationUri()
           
 String getName()
           
 Map<String,String> getParameters()
           
 void setDescription(String description)
           
 void setLocationUri(String locationUri)
           
 void setName(String name)
           
 void setParameters(Map<String,String> parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDatabase

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


MDatabase

public MDatabase(String name,
                 String locationUri,
                 String description,
                 Map<String,String> parameters)
To create a database object

Parameters:
name - of the database
locationUri - Location of the database in the warehouse
description - Comment describing the database
Method Detail

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getLocationUri

public String getLocationUri()
Returns:
the location_uri

setLocationUri

public void setLocationUri(String locationUri)
Parameters:
locationUri - the locationUri to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getParameters

public Map<String,String> getParameters()
Returns:
the parameters mapping.

setParameters

public void setParameters(Map<String,String> parameters)
Parameters:
parameters - the parameters mapping.


Copyright © 2011 The Apache Software Foundation