public class DBPartitionPostgreSQLDB extends Object implements DBPartitionDB
Constructor and Description |
---|
DBPartitionPostgreSQLDB() |
Modifier and Type | Method and Description |
---|---|
String |
getCreatePartitionSQL(Connection connection,
String partitionName) |
String |
getCreateTableSQL(String fromPartitionName,
String toPartitionName,
String fromTableName,
String toTableName) |
String |
getDefaultPartitionName(Connection connection) |
String |
getDropPartitionSQL(String partitionName) |
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, wait
getCatalog, getCreateTableSQL, getCreateViewSQL, getDropTableSQL, getDropViewSQL
public String getCreatePartitionSQL(Connection connection, String partitionName) throws SQLException
getCreatePartitionSQL
in interface DBPartitionDB
SQLException
public String getCreateTableSQL(String fromPartitionName, String toPartitionName, String fromTableName, String toTableName)
getCreateTableSQL
in interface DBPartitionDB
public String getDefaultPartitionName(Connection connection) throws SQLException
getDefaultPartitionName
in interface DBPartitionDB
SQLException
public String getDropPartitionSQL(String partitionName)
getDropPartitionSQL
in interface DBPartitionDB
public String getSafeAlterTable(String alterTableSQL)
getSafeAlterTable
in interface DBPartitionDB
public String getSchema(Connection connection, String partitionName)
getSchema
in interface DBPartitionDB
public boolean isDDLTransactional()
isDDLTransactional
in interface DBPartitionDB
public void setPartition(Connection connection, String partitionName) throws SQLException
setPartition
in interface DBPartitionDB
SQLException