org.kuali.common.impex.schema.service.impl
Class DefaultExtractSchemaService
java.lang.Object
org.kuali.common.impex.schema.service.impl.DefaultExtractSchemaService
- All Implemented Interfaces:
- ExtractSchemaService
public class DefaultExtractSchemaService
- extends Object
- implements ExtractSchemaService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SINGLE_THREAD_COUNT
protected static final int SINGLE_THREAD_COUNT
- See Also:
- Constant Field Values
DefaultExtractSchemaService
public DefaultExtractSchemaService()
getSchema
public Schema getSchema(ExtractSchemaContext context)
- Specified by:
getSchema
in interface ExtractSchemaService
extractSchema
protected Schema extractSchema(ExtractSchemaContext context)
extractMultiThreaded
protected Schema extractMultiThreaded(ExtractSchemaContext context)
throws SQLException
- Throws:
SQLException
extractTables
public List<Table> extractTables(List<String> tableNames,
ExtractSchemaContext context)
throws SQLException
- Specified by:
extractTables
in interface ExtractSchemaService
- Throws:
SQLException
extractTable
protected Table extractTable(String tablename,
String schemaName,
DatabaseMetaData metaData)
throws SQLException
- Throws:
SQLException
getTableNames
protected List<String> getTableNames(ExtractSchemaContext context)
throws SQLException
- Throws:
SQLException
extractViews
public List<View> extractViews(ExtractSchemaContext context)
throws SQLException
- Specified by:
extractViews
in interface ExtractSchemaService
- Throws:
SQLException
extractSequences
public List<Sequence> extractSequences(ExtractSchemaContext context)
throws SQLException
- Specified by:
extractSequences
in interface ExtractSchemaService
- Throws:
SQLException
extractForeignKeys
public List<ForeignKey> extractForeignKeys(List<String> tableNames,
ExtractSchemaContext context)
throws SQLException
- Specified by:
extractForeignKeys
in interface ExtractSchemaService
- Throws:
SQLException
sortSchemaElements
protected void sortSchemaElements(Schema schema)
- Sort the varous schema elements by name
getMetaDataInstance
protected DatabaseMetaData getMetaDataInstance(ExtractSchemaContext context)
throws SQLException
- Throws:
SQLException
extractSingleThreaded
protected Schema extractSingleThreaded(ExtractSchemaContext context)
throws SQLException
- Throws:
SQLException
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.