Package net.sf.basedb.core.hibernate
Class SchemaExistsWork
java.lang.Object
net.sf.basedb.core.hibernate.SchemaExistsWork
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(Connection connection) From the Work interface -----------------------
-
Field Details
-
catalog
-
schema
-
-
Constructor Details
-
SchemaExistsWork
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
-
execute
From the Work interface ------------------------ Specified by:
execute
in interfaceReturningWork<Boolean>
- Throws:
SQLException
-