Interface DBPartitionDB
- All Known Implementing Classes:
DBPartitionMySQLDB,DBPartitionPostgreSQLDB
public interface DBPartitionDB
- Author:
- Alberto Chaparro
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetCatalog(Connection connection, String partitionName) getCreatePartitionSQL(Connection connection, String partitionName) getCreateRulesSQL(String partitionName) default StringgetCreateTableSQL(Connection connection, String fromPartitionName, String toPartitionName, String tableName) getCreateTableSQL(Connection connection, String fromPartitionName, String toPartitionName, String toTableName, String fromTableName) default StringgetCreateViewSQL(String fromPartitionName, String toPartitionName, String viewName) getDefaultPartitionName(Connection connection) getDropPartitionSQL(String partitionName) default StringgetDropTableSQL(String partitionName, String tableName) default StringgetDropViewSQL(String partitionName, String viewName) default StringgetSafeAlterTable(String alterTableSQL) default StringgetSchema(Connection connection, String partitionName) booleanvoidsetPartition(Connection connection, String partitionName)
-
Method Details
-
getCatalog
- Throws:
SQLException
-
getCreatePartitionSQL
- Throws:
SQLException
-
getCreateRulesSQL
- Throws:
SQLException
-
getCreateTableSQL
default String getCreateTableSQL(Connection connection, String fromPartitionName, String toPartitionName, String tableName) throws SQLException - Throws:
SQLException
-
getCreateTableSQL
String getCreateTableSQL(Connection connection, String fromPartitionName, String toPartitionName, String toTableName, String fromTableName) throws SQLException - Throws:
SQLException
-
getCreateViewSQL
-
getDefaultPartitionName
- Throws:
SQLException
-
getDropPartitionSQL
-
getDropTableSQL
-
getDropViewSQL
-
getSafeAlterTable
-
getSchema
-
isDDLTransactional
boolean isDDLTransactional() -
setPartition
- Throws:
SQLException
-