|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.matching.Integrator
uk.ac.ic.doc.automed.matching.SQLIntegrator
public class SQLIntegrator
The Integrator of SQL schemas
| Field Summary |
|---|
| Fields inherited from class uk.ac.ic.doc.automed.matching.Integrator |
|---|
disjoints, equivalents, overlaps, subsumptions |
| Constructor Summary | |
|---|---|
SQLIntegrator()
|
|
| Method Summary | |
|---|---|
protected SchemaObject[] |
getColumnsOfTable(Schema s,
SchemaObject table)
Returns an array of schema objects of the columns of the specified table in the schema. |
protected SchemaElementPair[] |
getRelatedTables(java.util.ArrayList rels)
Returns a SchemaElementPair array of related table pairs in the specified list. |
Schema[] |
getSchemas()
Returns an array of the current schemas. |
protected SchemaObject[] |
getTables(Schema s)
Returns an array of schema objects of tables in the specified schema. |
void |
mergeSchemas()
Merges the schemas after the naming conflicts have been resolved. |
protected SchemaObject[] |
removeSchemaObject(SchemaObject so,
SchemaObject[] objects)
Return a SchemaObject array by removing the specified object from the input array. |
protected void |
resolveDisjoints()
Resolves the structural conflicts of the schemas for disjointness relationships. |
void |
resolveNamingConflicts()
Resolves the naming conflicts of the schemas. |
protected void |
resolveOverlaps()
Resolves the structural conflicts of the schemas for overlapness relationships. |
void |
resolveStructuralConflicts()
Resolves the structural conflicts of the schemas. |
protected void |
resolveSubsumptions()
Resolves the structural conflicts of the schemas for subsumption relationships. |
void |
setSchemas(Schema[] schemas)
Sets the schemas that are going to be integrated. |
| Methods inherited from class uk.ac.ic.doc.automed.matching.Integrator |
|---|
areRelated, contains, contains, existsIn, existsIn, extendToMatch, findRelated, getAllCombinations, getCombinations, getCombinationsOverMultipleArrays, getCommonRelationship, getElements, getRelationship, isRelated, removeDuplicates, selectPairs, selectPairs, setRelationships |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLIntegrator()
| Method Detail |
|---|
public void setSchemas(Schema[] schemas)
throws IntegratorException
setSchemas in class Integratorschemas - the array of the schemas to be integrated
IntegratorException - if length of array different than 2public Schema[] getSchemas()
getSchemas in class Integratorpublic void mergeSchemas()
mergeSchemas in class Integrator
public void resolveNamingConflicts()
throws IntegratorException,
IntegrityException
resolveNamingConflicts in class IntegratorIntegratorException - if something goes wrong in the conflict resolution
IntegrityException
public void resolveStructuralConflicts()
throws IntegratorException,
IntegrityException
resolveStructuralConflicts in class IntegratorIntegratorException - if the schemas aren't merged or something goes wrong in the conflict resolution
IntegrityException
protected void resolveSubsumptions()
throws IntegratorException,
IntegrityException
IntegratorException - if something goes wrong in the conflict resolution
IntegrityException
protected void resolveOverlaps()
throws IntegratorException,
IntegrityException
IntegratorException - if something goes wrong in the conflict resolution
IntegrityException
protected void resolveDisjoints()
throws IntegratorException,
IntegrityException
IntegratorException - if something goes wrong in the conflict resolution
IntegrityExceptionprotected SchemaObject[] getTables(Schema s)
s - the schema
protected SchemaObject[] getColumnsOfTable(Schema s,
SchemaObject table)
s - the schematable - the table whose columns are returned
protected SchemaObject[] removeSchemaObject(SchemaObject so,
SchemaObject[] objects)
SchemaObject array by removing the specified object from the input array.
so - the schema object to be removedobjects - the input array of schema objects
SchemaObject array by removing the specified object from the input arrayprotected SchemaElementPair[] getRelatedTables(java.util.ArrayList rels)
SchemaElementPair array of related table pairs in the specified list.
rels is a list of SchemaElementPairRelationship objects.
rels - the list of related pairs
SchemaElementPair array of related table pairs in the specified list
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||