Class SchemaExistsWork

java.lang.Object
net.sf.basedb.core.hibernate.SchemaExistsWork
All Implemented Interfaces:
ReturningWork<Boolean>

public class SchemaExistsWork extends Object implements ReturningWork<Boolean>
A work implementation that checks if a given catalog+schema exists in the database or not. There are two variants: if a schema is not given, the check is only if the catalog exists or not.
Since:
3.4
Author:
nicklas
  • Field Details

    • catalog

      private final String catalog
    • schema

      private final String schema
  • Constructor Details

    • SchemaExistsWork

      public SchemaExistsWork(String catalog, String schema)
      Create a new work item.
      Parameters:
      catalog - The catalog the schema is located in (required)
      schema - The schema to check or null to only check if the catalog exists
  • Method Details