|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbasic.AutoMedInANutshell
public class AutoMedInANutshell
An application to demonstrate how to create schemas in existing models
Field Summary | |
---|---|
static int |
debug
|
Constructor Summary | |
---|---|
AutoMedInANutshell()
|
Method Summary | |
---|---|
static void |
banner(Schema s)
|
static void |
banner(java.lang.String title)
|
static Schema |
changePrimaryKey(Schema s,
SchemaObject table,
SchemaObject[] newKeyColumns)
Change which columns are used to identify a table. |
static Schema |
createAndTransformERSchema()
|
static Schema |
createMDRERSchema(boolean force)
|
static Schema |
deriveTable(Schema s,
java.lang.String newTableName,
java.lang.String newTablePrimaryKeyName,
java.lang.String oldTableForeignKeyName,
SchemaObject[] pkcols,
SchemaObject[] fdcols,
SchemaObject[] delcols)
Derive a new table from the contents of an old table. |
static Schema |
extendIntoNewTable(Schema s,
java.lang.String newTableName,
java.lang.String newTablePrimaryKeyName,
SchemaObject oldTable,
java.util.HashMap limitIQL,
boolean isExact)
|
static void |
halevyExample()
|
static void |
integrateSchemas(Schema s1,
Schema s2)
|
static void |
integrateSchemas(Schema s1,
Schema s2,
java.lang.String iqlFunction)
This should be a fairly standard check in an AutoMed application to see if two schemas can be "integrated" via an ID transformation. |
static void |
main(java.lang.String[] args)
|
static Schema |
normaliseTable(Schema s,
java.lang.String newTableName,
java.lang.String newTablePrimaryKeyName,
java.lang.String oldTableForeignKeyName,
SchemaObject[] pkcols,
SchemaObject[] fdcols)
Convert a table into Third Normal Form (3NF). |
static void |
openEditorPanel(java.lang.String sn)
|
static Schema |
splitTable(Schema s,
SchemaObject oldTable,
java.lang.String newTableName1,
SchemaObject[] newKeyColumns1,
SchemaObject[] newFDColumns1,
java.lang.String newTableName2,
SchemaObject[] newKeyColumns2,
SchemaObject[] newFDColumns2)
Split a table into two tables. |
static void |
testUniversity()
|
static void |
transformUniversity()
|
static Schema |
wrapAnsitest()
|
static Schema |
wrapBankBranch()
|
static Schema |
wrapBankBranchPostgres()
|
static Schema |
wrapBiomapPostgres()
|
static void |
wrapHalevy()
|
static Schema |
wrapMP3DB1Postgres()
|
static Schema |
wrapOracle()
|
static Schema |
wrapPublicSchema(java.lang.String sn)
|
static Schema |
wrapSchema(java.lang.String username,
java.lang.String password,
java.lang.String driver,
java.lang.String urlbase,
SQLWrapperFactory wf,
java.lang.String db,
java.lang.String name)
|
static Schema |
wrapTest()
|
static Schema |
wrapUniversity()
|
static void |
writePathways(java.lang.String sch,
java.io.OutputStream os)
|
static void |
xmlWrapperExample()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int debug
Constructor Detail |
---|
public AutoMedInANutshell()
Method Detail |
---|
public static void integrateSchemas(Schema s1, Schema s2, java.lang.String iqlFunction) throws AutoMedException
AutoMedException
public static void integrateSchemas(Schema s1, Schema s2) throws AutoMedException
AutoMedException
public static void banner(java.lang.String title)
public static void banner(Schema s)
public static Schema wrapSchema(java.lang.String username, java.lang.String password, java.lang.String driver, java.lang.String urlbase, SQLWrapperFactory wf, java.lang.String db, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static Schema createAndTransformERSchema() throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static Schema createMDRERSchema(boolean force) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static void openEditorPanel(java.lang.String sn)
public static Schema wrapPublicSchema(java.lang.String sn) throws IntegrityException, DataSourceException, java.io.IOException
IntegrityException
DataSourceException
java.io.IOException
public static Schema wrapUniversity() throws IntegrityException, DataSourceException
IntegrityException
DataSourceException
public static void testUniversity() throws IntegrityException, DataSourceException, java.lang.Exception
IntegrityException
DataSourceException
java.lang.Exception
public static Schema wrapTest() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapBankBranch() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapMP3DB1Postgres() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapBankBranchPostgres() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapBiomapPostgres() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static void wrapHalevy() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapOracle() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static Schema wrapAnsitest() throws IntegrityException, DataSourceException, NotFoundException
IntegrityException
DataSourceException
NotFoundException
public static void transformUniversity()
public static Schema extendIntoNewTable(Schema s, java.lang.String newTableName, java.lang.String newTablePrimaryKeyName, SchemaObject oldTable, java.util.HashMap limitIQL, boolean isExact) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static Schema changePrimaryKey(Schema s, SchemaObject table, SchemaObject[] newKeyColumns) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static Schema splitTable(Schema s, SchemaObject oldTable, java.lang.String newTableName1, SchemaObject[] newKeyColumns1, SchemaObject[] newFDColumns1, java.lang.String newTableName2, SchemaObject[] newKeyColumns2, SchemaObject[] newFDColumns2) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static Schema normaliseTable(Schema s, java.lang.String newTableName, java.lang.String newTablePrimaryKeyName, java.lang.String oldTableForeignKeyName, SchemaObject[] pkcols, SchemaObject[] fdcols) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static Schema deriveTable(Schema s, java.lang.String newTableName, java.lang.String newTablePrimaryKeyName, java.lang.String oldTableForeignKeyName, SchemaObject[] pkcols, SchemaObject[] fdcols, SchemaObject[] delcols) throws NotFoundException, TypeMismatchException, IntegrityException
NotFoundException
TypeMismatchException
IntegrityException
public static void writePathways(java.lang.String sch, java.io.OutputStream os) throws NotFoundException, IntegrityException, IllegalOperationException
NotFoundException
IntegrityException
IllegalOperationException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void xmlWrapperExample() throws java.lang.Exception
java.lang.Exception
public static void halevyExample() throws java.lang.Exception
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |