Package net.sf.basedb.core.hibernate
Class SchemaExistsWork
- java.lang.Object
-
- net.sf.basedb.core.hibernate.SchemaExistsWork
-
- All Implemented Interfaces:
org.hibernate.jdbc.ReturningWork<Boolean>
public class SchemaExistsWork extends Object implements org.hibernate.jdbc.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
-
-
Constructor Summary
Constructors Constructor Description SchemaExistsWork(String catalog, String schema)
Create a new work item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
execute(Connection connection)
From the Work interface -----------------------
-
-
-
Method Detail
-
execute
public Boolean execute(Connection connection) throws SQLException
From the Work interface ------------------------ Specified by:
execute
in interfaceorg.hibernate.jdbc.ReturningWork<Boolean>
- Throws:
SQLException
-
-