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