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.AggregateTestRule
protected static final long[]
protected static com.liferay.portal.kernel.service.CompanyLocalService
protected static Connection
protected static com.liferay.portal.kernel.dao.db.DB
protected static com.liferay.portal.kernel.dao.db.DBInspector
protected static com.liferay.portal.db.partition.db.DBPartitionDB
protected static String
protected static com.liferay.portal.kernel.util.Portal
protected static final String[]
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
static void
assume()
protected void
createAndPopulateControlTable
(String tableName) protected void
createAndPopulateTable
(String tableName) protected static void
createControlTable
(String tableName) protected static void
createIndex
(String tableName) protected static void
createUniqueIndex
(String tableName) protected static void
protected static void
dropControlTable
(String tableName) protected static void
protected static void
protected static void
protected static void
protected static void
extractDBPartitions
(long[] companyIds) protected static String
getCreateIndexSQL
(String tableName) protected static String
getCreateTableSQL
(String tableName) protected static String
getPartitionName
(long companyId) protected static void
protected static void
protected static void
protected static boolean
isCopyableQuartzTable
(String tableName) protected static void
protected static void
removeDBPartitions
(long[] companyIds) protected static void
protected static void
protected 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
-