Class DbExportViews

java.lang.Object
de.bright_side.bdbexport.bl.DbExportViews

public class DbExportViews
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    DbExportViews()  
  • Method Summary

    Modifier and Type Method Description
    void exportViewDdl​(InternalObjectExportRequest exportRequest, java.io.OutputStream outputStream)  
    java.lang.String getViewDdl​(java.sql.Connection connection, DbExporter.DbType dataBaseType, CatalogAndSchema catalogAndSchema, java.lang.String viewName)  
    java.util.List<java.lang.String> getViewNames​(java.sql.Connection connection, CatalogAndSchema catalogAndSchema)  
    java.util.List<java.lang.String> getViewNames​(java.sql.Connection connection, java.lang.String catalog, java.lang.String schema)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getViewNames

      public java.util.List<java.lang.String> getViewNames​(java.sql.Connection connection, java.lang.String catalog, java.lang.String schema) throws java.lang.Exception
      Parameters:
      connection - JDBC connection
      catalog - catalog name
      schema - schema name
      Returns:
      the view names in ordered by (approximated) view dependency
      Throws:
      java.lang.Exception - thrown on errors
    • getViewNames

      public java.util.List<java.lang.String> getViewNames​(java.sql.Connection connection, CatalogAndSchema catalogAndSchema) throws java.lang.Exception
      Parameters:
      connection - JDBC connection
      catalogAndSchema - may not be null. Contains the catalog and the schema.
      Returns:
      the view names in ordered by (approximated) view dependency
      Throws:
      java.lang.Exception - thrown on errors
    • getViewDdl

      public java.lang.String getViewDdl​(java.sql.Connection connection, DbExporter.DbType dataBaseType, CatalogAndSchema catalogAndSchema, java.lang.String viewName) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • exportViewDdl

      public void exportViewDdl​(InternalObjectExportRequest exportRequest, java.io.OutputStream outputStream) throws java.lang.Exception
      Throws:
      java.lang.Exception