public abstract class BaseDBPartitionTestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.liferay.portal.kernel.test.rule.AggregateTestRule |
aggregateTestRule |
protected static long[] |
COMPANY_IDS |
protected static com.liferay.portal.kernel.service.CompanyLocalService |
companyLocalService |
protected static java.sql.Connection |
connection |
protected static com.liferay.portal.kernel.dao.db.DB |
db |
protected static com.liferay.portal.kernel.dao.db.DBInspector |
dbInspector |
protected static com.liferay.portal.db.partition.db.DBPartitionDB |
dbPartitionDB |
protected static java.lang.String |
defaultPartitionName |
protected static com.liferay.portal.kernel.util.Portal |
portal |
protected static java.lang.String[] |
ROLE_NAMES |
protected static java.lang.String |
TEST_CONTROL_TABLE_NAME |
protected static java.lang.String |
TEST_CONTROL_TABLE_NEW_COLUMN |
protected static java.lang.String |
TEST_INDEX_NAME |
protected static java.lang.String |
TEST_TABLE_NAME |
Constructor and Description |
---|
BaseDBPartitionTestCase() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addDBPartitions() |
static void |
assume() |
protected void |
createAndPopulateControlTable(java.lang.String tableName) |
protected void |
createAndPopulateTable(java.lang.String tableName) |
protected static void |
createControlTable(java.lang.String tableName) |
protected static void |
createIndex(java.lang.String tableName) |
protected static void |
createUniqueIndex(java.lang.String tableName) |
protected static void |
deletePartitionRequiredData() |
protected static void |
dropControlTable(java.lang.String tableName) |
protected static void |
dropIndex(java.lang.String tableName) |
protected static void |
dropSchemas() |
protected static void |
dropTable(java.lang.String tableName) |
protected static void |
extractDBPartitions() |
protected static void |
extractDBPartitions(long[] companyIds) |
protected static java.lang.String |
getCreateIndexSQL(java.lang.String tableName) |
protected static java.lang.String |
getCreateTableSQL(java.lang.String tableName) |
protected static java.lang.String |
getPartitionName(long companyId) |
protected static void |
insertDBPartitions() |
protected static void |
insertPartitionData() |
protected static void |
insertPartitionRequiredData() |
protected static boolean |
isCopyableQuartzTable(java.lang.String tableName) |
protected static void |
removeDBPartitions() |
protected static void |
removeDBPartitions(long[] companyIds) |
protected static void |
setUpClass() |
protected static void |
setUpDBPartitions() |
protected static void |
tearDownDBPartitions() |
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
protected static final long[] COMPANY_IDS
protected static final java.lang.String[] ROLE_NAMES
protected static final java.lang.String TEST_CONTROL_TABLE_NAME
protected static final java.lang.String TEST_CONTROL_TABLE_NEW_COLUMN
protected static final java.lang.String TEST_INDEX_NAME
protected static final java.lang.String TEST_TABLE_NAME
protected static com.liferay.portal.kernel.service.CompanyLocalService companyLocalService
protected static java.sql.Connection connection
protected static com.liferay.portal.kernel.dao.db.DB db
protected static com.liferay.portal.kernel.dao.db.DBInspector dbInspector
protected static com.liferay.portal.db.partition.db.DBPartitionDB dbPartitionDB
protected static java.lang.String defaultPartitionName
protected static com.liferay.portal.kernel.util.Portal portal
public static void assume()
protected static void addDBPartitions() throws java.lang.Exception
java.lang.Exception
protected static void createControlTable(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void createIndex(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void createUniqueIndex(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void deletePartitionRequiredData() throws java.lang.Exception
java.lang.Exception
protected static void dropControlTable(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void dropIndex(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void dropSchemas() throws java.lang.Exception
java.lang.Exception
protected static void dropTable(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected static void extractDBPartitions() throws java.lang.Exception
java.lang.Exception
protected static void extractDBPartitions(long[] companyIds) throws java.lang.Exception
java.lang.Exception
protected static java.lang.String getCreateIndexSQL(java.lang.String tableName)
protected static java.lang.String getCreateTableSQL(java.lang.String tableName)
protected static java.lang.String getPartitionName(long companyId)
protected static void insertDBPartitions() throws java.lang.Exception
java.lang.Exception
protected static void insertPartitionData() throws java.lang.Exception
java.lang.Exception
protected static void insertPartitionRequiredData() throws java.lang.Exception
java.lang.Exception
protected static boolean isCopyableQuartzTable(java.lang.String tableName)
protected static void removeDBPartitions() throws java.lang.Exception
java.lang.Exception
protected static void removeDBPartitions(long[] companyIds) throws java.lang.Exception
java.lang.Exception
protected static void setUpClass() throws java.lang.Exception
java.lang.Exception
protected static void setUpDBPartitions() throws java.lang.Exception
java.lang.Exception
protected static void tearDownDBPartitions() throws java.lang.Exception
java.lang.Exception
protected void createAndPopulateControlTable(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception
protected void createAndPopulateTable(java.lang.String tableName) throws java.lang.Exception
java.lang.Exception