public class SchemaExistsWork 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 |
Constructor and Description |
---|
SchemaExistsWork(java.lang.String catalog,
java.lang.String schema)
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
public SchemaExistsWork(java.lang.String catalog, java.lang.String schema)
catalog
- The catalog the schema is located in (required)schema
- The schema to check or null to only check if the catalog existspublic java.lang.Boolean execute(java.sql.Connection connection) throws java.sql.SQLException
execute
in interface ReturningWork<java.lang.Boolean>
java.sql.SQLException