org.apache.oozie.store
Class OozieSchema

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

public class OozieSchema
extends java.lang.Object


Nested Class Summary
static class OozieSchema.OozieColumn
           
static class OozieSchema.OozieIndex
           
static class OozieSchema.OozieTable
           
 
Field Summary
static java.util.Map<Schema.Table,java.util.List<Schema.Column>> TABLE_COLUMNS
           
 
Constructor Summary
OozieSchema()
           
 
Method Summary
static java.lang.String generateCreateTableScript(Schema.Table table, Schema.DBType dbType)
          Generates the create table SQL Statement
static java.lang.String generateInsertVersionScript(java.lang.String dbName)
          Generates the Insert statement to insert the OOZIE_VERSION to table
static java.lang.String getOozieVersion()
          Gets the Oozie Schema Version
static java.lang.String getValidationQuery(java.lang.String dbName)
          Gets the query that will be used to validate the connection
static void setOozieDbName(java.lang.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 java.util.Map<Schema.Table,java.util.List<Schema.Column>> TABLE_COLUMNS
Constructor Detail

OozieSchema

public OozieSchema()
Method Detail

setOozieDbName

public static void setOozieDbName(java.lang.String dbName)

generateCreateTableScript

public static java.lang.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 java.lang.String getValidationQuery(java.lang.String dbName)
Gets the query that will be used to validate the connection

Parameters:
dbName -
Returns:

generateInsertVersionScript

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

Parameters:
dbName -
Returns:

getOozieVersion

public static java.lang.String getOozieVersion()
Gets the Oozie Schema Version

Returns:


Copyright © 2010 Yahoo. All Rights Reserved.