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)
          To create a database object
 
Method Summary
 String getDescription()
           
 String getLocationUri()
           
 String getName()
           
 void setDescription(String description)
           
 void setLocationUri(String locationUri)
           
 void setName(String name)
           
 
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)
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


Copyright © 2010 The Apache Software Foundation