public class TableExistsWork extends Object implements ReturningWork<Boolean>
Modifier and Type | Field and Description |
---|---|
private String |
catalog |
private String |
schema |
private String |
table |
Constructor and Description |
---|
TableExistsWork(String catalog,
String schema,
String table)
Create a new work item.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
execute(Connection connection)
From the Work interface
-----------------------
|
private final String catalog
private final String schema
private final String table
public TableExistsWork(String catalog, String schema, String table)
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 checkpublic Boolean execute(Connection connection) throws SQLException
execute
in interface ReturningWork<Boolean>
SQLException