Class BaseDBPartitionTestCase
java.lang.Object
com.liferay.portal.db.partition.test.util.BaseDBPartitionTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.liferay.portal.kernel.test.rule.AggregateTestRuleprotected static final long[]protected static com.liferay.portal.kernel.service.CompanyLocalServiceprotected static Connectionprotected static com.liferay.portal.kernel.dao.db.DBprotected static com.liferay.portal.kernel.dao.db.DBInspectorprotected static com.liferay.portal.db.partition.db.DBPartitionDBprotected static Stringprotected static com.liferay.portal.kernel.util.Portalprotected static final String[]protected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidstatic voidassume()protected voidcreateAndPopulateControlTable(String tableName) protected voidcreateAndPopulateTable(String tableName) protected static voidcreateControlTable(String tableName) protected static voidcreateIndex(String tableName) protected static voidcreateUniqueIndex(String tableName) protected static voidprotected static voiddropControlTable(String tableName) protected static voidprotected static voidprotected static voidprotected static voidprotected static voidextractDBPartitions(long[] companyIds) protected static StringgetCreateIndexSQL(String tableName) protected static StringgetCreateTableSQL(String tableName) protected static StringgetPartitionName(long companyId) protected static voidprotected static voidprotected static voidprotected static booleanisCopyableQuartzTable(String tableName) protected static voidprotected static voidremoveDBPartitions(long[] companyIds) protected static voidprotected static voidprotected static void
-
Field Details
-
aggregateTestRule
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule -
COMPANY_IDS
protected static final long[] COMPANY_IDS -
ROLE_NAMES
-
TEST_CONTROL_TABLE_NAME
- See Also:
-
TEST_CONTROL_TABLE_NEW_COLUMN
- See Also:
-
TEST_INDEX_NAME
- See Also:
-
TEST_TABLE_NAME
- See Also:
-
companyLocalService
protected static com.liferay.portal.kernel.service.CompanyLocalService companyLocalService -
connection
-
db
protected static com.liferay.portal.kernel.dao.db.DB db -
dbInspector
protected static com.liferay.portal.kernel.dao.db.DBInspector dbInspector -
dbPartitionDB
protected static com.liferay.portal.db.partition.db.DBPartitionDB dbPartitionDB -
defaultPartitionName
-
portal
protected static com.liferay.portal.kernel.util.Portal portal
-
-
Constructor Details
-
BaseDBPartitionTestCase
public BaseDBPartitionTestCase()
-
-
Method Details
-
assume
public static void assume() -
addDBPartitions
- Throws:
Exception
-
createControlTable
- Throws:
Exception
-
createIndex
- Throws:
Exception
-
createUniqueIndex
- Throws:
Exception
-
deletePartitionRequiredData
- Throws:
Exception
-
dropControlTable
- Throws:
Exception
-
dropIndex
- Throws:
Exception
-
dropSchemas
- Throws:
Exception
-
dropTable
- Throws:
Exception
-
extractDBPartitions
- Throws:
Exception
-
extractDBPartitions
- Throws:
Exception
-
getCreateIndexSQL
-
getCreateTableSQL
-
getPartitionName
-
insertDBPartitions
- Throws:
Exception
-
insertPartitionData
- Throws:
Exception
-
insertPartitionRequiredData
- Throws:
Exception
-
isCopyableQuartzTable
-
removeDBPartitions
- Throws:
Exception
-
removeDBPartitions
- Throws:
Exception
-
setUpClass
- Throws:
Exception
-
setUpDBPartitions
- Throws:
Exception
-
tearDownDBPartitions
- Throws:
Exception
-
createAndPopulateControlTable
- Throws:
Exception
-
createAndPopulateTable
- Throws:
Exception
-