@Component public class SchemaManagerImpl extends java.lang.Object implements SchemaManager
| Constructor and Description |
|---|
SchemaManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(SdkDataSourceType datasource,
java.lang.String tableName)
Creates a single table.
|
void |
dropTable(SdkDataSourceType datasource,
java.lang.String tableName)
Drops a single table.
|
boolean |
exists(SdkDataSourceType datasource,
java.lang.String tableName)
Returns whether the specified table exists in the database
|
public void createTable(SdkDataSourceType datasource, java.lang.String tableName) throws AlreadyExistsException
SchemaManagercreateTable in interface SchemaManagerdatasource - Specifies the database of interest.tableName - Table to create.AlreadyExistsException - tableName already exists in the specified data sourcepublic boolean exists(SdkDataSourceType datasource, java.lang.String tableName)
SchemaManagerexists in interface SchemaManagerdatasource - Specifies the database of interest.tableName - Table of interestpublic void dropTable(SdkDataSourceType datasource, java.lang.String tableName) throws NotFoundException
SchemaManagerdropTable in interface SchemaManagerdatasource - Specifies the database of interest.tableName - Table to drop.NotFoundException - tableName not found in the specified data source