org.apache.oozie.store
Class OozieSchema

java.lang.Object
  extended by org.apache.oozie.store.OozieSchema

public class OozieSchema
extends Object


Nested Class Summary
static class OozieSchema.OozieColumn
           
static class OozieSchema.OozieIndex
           
static class OozieSchema.OozieTable
           
 
Field Summary
static Map<Schema.Table,List<Schema.Column>> TABLE_COLUMNS
           
 
Constructor Summary
OozieSchema()
           
 
Method Summary
static String generateCreateTableScript(Schema.Table table, Schema.DBType dbType)
          Generates the create table SQL Statement
static String generateInsertVersionScript(String dbName)
          Generates the Insert statement to insert the OOZIE_VERSION to table
static String getOozieVersion()
          Gets the Oozie Schema Version
static String getValidationQuery(String dbName)
          Gets the query that will be used to validate the connection
static void setOozieDbName(String dbName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_COLUMNS

public static final Map<Schema.Table,List<Schema.Column>> TABLE_COLUMNS
Constructor Detail

OozieSchema

public OozieSchema()
Method Detail

setOozieDbName

public static void setOozieDbName(String dbName)

generateCreateTableScript

public static String generateCreateTableScript(Schema.Table table,
                                               Schema.DBType dbType)
Generates the create table SQL Statement

Parameters:
table -
dbType -
Returns:
SQL Statement to create the table

getValidationQuery

public static String getValidationQuery(String dbName)
Gets the query that will be used to validate the connection

Parameters:
dbName -
Returns:

generateInsertVersionScript

public static String generateInsertVersionScript(String dbName)
Generates the Insert statement to insert the OOZIE_VERSION to table

Parameters:
dbName -
Returns:

getOozieVersion

public static String getOozieVersion()
Gets the Oozie Schema Version

Returns:


Copyright © 2013 Apache Software Foundation. All Rights Reserved.