@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
SchemaManager
createTable
in interface SchemaManager
datasource
- 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)
SchemaManager
exists
in interface SchemaManager
datasource
- Specifies the database of interest.tableName
- Table of interestpublic void dropTable(SdkDataSourceType datasource, java.lang.String tableName) throws NotFoundException
SchemaManager
dropTable
in interface SchemaManager
datasource
- Specifies the database of interest.tableName
- Table to drop.NotFoundException
- tableName not found in the specified data source