public class DBPartitionPostgreSQLDB extends Object implements DBPartitionDB
| Constructor and Description |
|---|
DBPartitionPostgreSQLDB() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCreatePartitionSQL(Connection connection,
String partitionName) |
List<String> |
getCreateRulesSQL(String partitionName) |
String |
getCreateTableSQL(Connection connection,
String fromPartitionName,
String toPartitionName,
String fromTableName,
String toTableName) |
String |
getDefaultPartitionName(Connection connection) |
String |
getDropPartitionSQL(String partitionName) |
static String[] |
getRuleTableColumn(String ruleSQL) |
String |
getSafeAlterTable(String alterTableSQL) |
String |
getSchema(Connection connection,
String partitionName) |
boolean |
isDDLTransactional() |
void |
setPartition(Connection connection,
String partitionName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCatalog, getCreateTableSQL, getCreateViewSQL, getDropTableSQL, getDropViewSQLpublic static String[] getRuleTableColumn(String ruleSQL)
public String getCreatePartitionSQL(Connection connection,
String partitionName)
throws SQLException
getCreatePartitionSQL in interface DBPartitionDBSQLExceptionpublic List<String> getCreateRulesSQL(String partitionName)
throws SQLException
getCreateRulesSQL in interface DBPartitionDBSQLExceptionpublic String getCreateTableSQL(Connection connection,
String fromPartitionName,
String toPartitionName,
String fromTableName,
String toTableName)
throws SQLException
getCreateTableSQL in interface DBPartitionDBSQLExceptionpublic String getDefaultPartitionName(Connection connection)
throws SQLException
getDefaultPartitionName in interface DBPartitionDBSQLExceptionpublic String getDropPartitionSQL(String partitionName)
getDropPartitionSQL in interface DBPartitionDBpublic String getSafeAlterTable(String alterTableSQL)
getSafeAlterTable in interface DBPartitionDBpublic String getSchema(Connection connection,
String partitionName)
getSchema in interface DBPartitionDBpublic boolean isDDLTransactional()
isDDLTransactional in interface DBPartitionDBpublic void setPartition(Connection connection,
String partitionName)
throws SQLException
setPartition in interface DBPartitionDBSQLException