org.kuali.common.impex.schema.service.impl
Class DefaultExtractSchemaService

java.lang.Object
  extended by org.kuali.common.impex.schema.service.impl.DefaultExtractSchemaService
All Implemented Interfaces:
ExtractSchemaService

public class DefaultExtractSchemaService
extends Object
implements ExtractSchemaService


Field Summary
protected static int SINGLE_THREAD_COUNT
           
 
Constructor Summary
DefaultExtractSchemaService()
           
 
Method Summary
 List<ForeignKey> extractForeignKeys(List<String> tableNames, ExtractSchemaContext context)
           
protected  Schema extractMultiThreaded(ExtractSchemaContext context)
           
protected  Schema extractSchema(ExtractSchemaContext context)
           
 List<Sequence> extractSequences(ExtractSchemaContext context)
           
protected  Schema extractSingleThreaded(ExtractSchemaContext context)
           
protected  Table extractTable(String tablename, String schemaName, DatabaseMetaData metaData)
           
 List<Table> extractTables(List<String> tableNames, ExtractSchemaContext context)
           
 List<View> extractViews(ExtractSchemaContext context)
           
protected  DatabaseMetaData getMetaDataInstance(ExtractSchemaContext context)
           
 Schema getSchema(ExtractSchemaContext context)
           
protected  List<String> getTableNames(ExtractSchemaContext context)
           
protected  void sortSchemaElements(Schema schema)
          Sort the varous schema elements by name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_THREAD_COUNT

protected static final int SINGLE_THREAD_COUNT
See Also:
Constant Field Values
Constructor Detail

DefaultExtractSchemaService

public DefaultExtractSchemaService()
Method Detail

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.