Class DBPartitionPostgreSQLDB
Object
com.liferay.portal.db.partition.db.DBPartitionPostgreSQLDB
- All Implemented Interfaces:
DBPartitionDB
- Author:
- Alberto Chaparro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCreatePartitionSQL
(Connection connection, String partitionName) getCreateRulesSQL
(String partitionName) getCreateTableSQL
(Connection connection, String fromPartitionName, String toPartitionName, String fromTableName, String toTableName) getDefaultPartitionName
(Connection connection) getDropPartitionSQL
(String partitionName) static String[]
getRuleTableColumn
(String ruleSQL) getSafeAlterTable
(String alterTableSQL) getSchema
(Connection connection, String partitionName) boolean
void
setPartition
(Connection connection, String partitionName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.db.partition.db.DBPartitionDB
getCatalog, getCreateTableSQL, getCreateViewSQL, getDropTableSQL, getDropViewSQL
-
Constructor Details
-
DBPartitionPostgreSQLDB
public DBPartitionPostgreSQLDB()
-
-
Method Details
-
getRuleTableColumn
-
getCreatePartitionSQL
public String getCreatePartitionSQL(Connection connection, String partitionName) throws SQLException - Specified by:
getCreatePartitionSQL
in interfaceDBPartitionDB
- Throws:
SQLException
-
getCreateRulesSQL
- Specified by:
getCreateRulesSQL
in interfaceDBPartitionDB
- Throws:
SQLException
-
getCreateTableSQL
public String getCreateTableSQL(Connection connection, String fromPartitionName, String toPartitionName, String fromTableName, String toTableName) throws SQLException - Specified by:
getCreateTableSQL
in interfaceDBPartitionDB
- Throws:
SQLException
-
getDefaultPartitionName
- Specified by:
getDefaultPartitionName
in interfaceDBPartitionDB
- Throws:
SQLException
-
getDropPartitionSQL
- Specified by:
getDropPartitionSQL
in interfaceDBPartitionDB
-
getSafeAlterTable
- Specified by:
getSafeAlterTable
in interfaceDBPartitionDB
-
getSchema
- Specified by:
getSchema
in interfaceDBPartitionDB
-
isDDLTransactional
public boolean isDDLTransactional()- Specified by:
isDDLTransactional
in interfaceDBPartitionDB
-
setPartition
- Specified by:
setPartition
in interfaceDBPartitionDB
- Throws:
SQLException
-