Package net.sf.basedb.core.hibernate
Class TableExistsWork
- java.lang.Object
-
- net.sf.basedb.core.hibernate.TableExistsWork
-
- All Implemented Interfaces:
ReturningWork<Boolean>
public class TableExistsWork extends Object implements ReturningWork<Boolean>
A work implementation that checks if a given table exists in the database or not.- Version:
- 2.9
- Author:
- nicklas
- Last modified
- $Date: 2018-11-05 15:01:50 +0100 (må, 05 nov 2018) $
-
-
Constructor Summary
Constructors Constructor Description TableExistsWork(String catalog, String schema, String table)
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 -----------------------
-
-
-
Constructor Detail
-
TableExistsWork
public TableExistsWork(String catalog, String schema, String table)
Create a new work item.- Parameters:
catalog
- The catalog the table is located in or null to ignore any catalog informationschema
- The schema the table is located in or null to ignore any schema informationtable
- The table to check
-
-
Method Detail
-
execute
public Boolean execute(Connection connection) throws SQLException
From the Work interface ------------------------ Specified by:
execute
in interfaceReturningWork<Boolean>
- Throws:
SQLException
-
-