|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.archive.server.ProductTable
This class creates the product metadata and reference tables based on Archive Service policy.
| Constructor Summary | |
ProductTable(java.util.Properties props,
boolean isOverwrite)
Constructor given properties and an overwrite flag. |
|
ProductTable(java.util.Properties props,
boolean isOverwrite,
java.lang.String datasetName)
Constructor given properties, an overwrite flag and a dataset name. |
|
| Method Summary | |
boolean |
checkProductTables(Dataset dataset)
Check to see if the product tables for the given dataset exist. |
void |
createForAllDatasets(boolean isOverwrite)
Initialize creation of the product tables for all of the datasets. |
void |
createForTheDataset(boolean isOverwrite,
java.lang.String datasetName)
Initialize creation of the product tables for the given dataset. |
void |
createMetadataTable(Dataset dataset)
Create the product metadata table for the given dataset. |
void |
createReferenceTable(Dataset dataset)
Create the product reference table for the given dataset. |
void |
determineDbms()
Determine the DBMS for the database connection. |
void |
dropMetadataTable(Dataset dataset)
Drop the product metadata table. |
void |
dropReferenceTable(Dataset dataset)
Drop the product reference table. |
static void |
main(java.lang.String[] argv)
Execute the product table application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProductTable(java.util.Properties props,
boolean isOverwrite)
throws ProductTableException
props - The system properties.isOverwrite - The flag to determine whether existing tables
will be overwritten.
ProductTableException - If the product tables cannot be created.
public ProductTable(java.util.Properties props,
boolean isOverwrite,
java.lang.String datasetName)
throws ProductTableException
props - The system properties.isOverwrite - The flag to determine whether existing tables
will be overwritten.datasetName - The name of the dataset for which the product
tables will be created.
ProductTableException - If the product tables cannot be created.| Method Detail |
public void determineDbms()
throws ProductTableException
ProductTableException - If the DBMS cannot be determined.
public void createForAllDatasets(boolean isOverwrite)
throws ProductTableException
isOverwrite - The flag to determine whether existing tables
will be overwritten.
ProductTableException - If the product tables cannot be created.
public void createForTheDataset(boolean isOverwrite,
java.lang.String datasetName)
throws ProductTableException
isOverwrite - The flag to determine whether existing tables
will be overwritten.datasetName - The name of the dataset for which the product
tables will be created.
ProductTableException - If the product tables cannot be created.
public boolean checkProductTables(Dataset dataset)
throws ProductTableException
dataset - The dataset information.
ProductTableException - If the information cannot be retrieved
the database.
public void createMetadataTable(Dataset dataset)
throws ProductTableException
dataset - The dataset information.
ProductTableException - If the product metadata table cannot
be created.public void dropMetadataTable(Dataset dataset)
public void createReferenceTable(Dataset dataset)
throws ProductTableException
dataset - The dataset information.
ProductTableException - If the product reference table
cannot be created.public void dropReferenceTable(Dataset dataset)
public static void main(java.lang.String[] argv)
Execute the product table application.
The command line arguments are: datasetName overwriteFlag
The program exits with status 0 on success, 1 on failure.
argv - Command-line arguments.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||