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 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.kernel.util.Portal |
portal |
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 |
createTable(java.lang.String tableName) |
protected static void |
createUniqueIndex(java.lang.String tableName) |
protected static void |
deletePartitionRequiredData() |
protected static void |
disableDBPartition() |
protected static void |
dropIndex(java.lang.String tableName) |
protected static void |
dropSchemas() |
protected static void |
dropTable(java.lang.String tableName) |
protected static void |
enableDBPartition() |
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 |
getSchemaName(long companyId) |
protected static void |
insertPartitionRequiredData() |
protected static void |
removeDBPartitions(boolean migrate) |
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
protected static final long[] COMPANY_IDS
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 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.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 createTable(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 disableDBPartition()
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 enableDBPartition() 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 getSchemaName(long companyId)
protected static void insertPartitionRequiredData() throws java.lang.Exception
java.lang.Exception
protected static void removeDBPartitions(boolean migrate) 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