Interface DBPartitionDB
- All Known Implementing Classes:
DBPartitionMySQLDB
,DBPartitionPostgreSQLDB
public interface DBPartitionDB
- Author:
- Alberto Chaparro
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getCatalog
(Connection connection, String partitionName) getCreatePartitionSQL
(Connection connection, String partitionName) getCreateRulesSQL
(String partitionName) default String
getCreateTableSQL
(Connection connection, String fromPartitionName, String toPartitionName, String tableName) getCreateTableSQL
(Connection connection, String fromPartitionName, String toPartitionName, String toTableName, String fromTableName) default String
getCreateViewSQL
(String fromPartitionName, String toPartitionName, String viewName) getDefaultPartitionName
(Connection connection) getDropPartitionSQL
(String partitionName) default String
getDropTableSQL
(String partitionName, String tableName) default String
getDropViewSQL
(String partitionName, String viewName) default String
getSafeAlterTable
(String alterTableSQL) default String
getSchema
(Connection connection, String partitionName) boolean
void
setPartition
(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
-