Package de.bright_side.bdbexport.bl
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 voidexportViewDdl(InternalObjectExportRequest exportRequest, java.io.OutputStream outputStream)java.lang.StringgetViewDdl(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)
-
Constructor Details
-
DbExportViews
public DbExportViews()
-
-
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 connectioncatalog- catalog nameschema- 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 connectioncatalogAndSchema- 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
-