Class BaseDBPartitionTestCase

java.lang.Object
com.liferay.portal.db.partition.test.util.BaseDBPartitionTestCase

public abstract class BaseDBPartitionTestCase extends Object
  • Field Details

    • aggregateTestRule

      public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
    • COMPANY_IDS

      protected static final long[] COMPANY_IDS
    • ROLE_NAMES

      protected static final String[] ROLE_NAMES
    • TEST_CONTROL_TABLE_NAME

      protected static final String TEST_CONTROL_TABLE_NAME
      See Also:
    • TEST_CONTROL_TABLE_NEW_COLUMN

      protected static final String TEST_CONTROL_TABLE_NEW_COLUMN
      See Also:
    • TEST_INDEX_NAME

      protected static final String TEST_INDEX_NAME
      See Also:
    • TEST_TABLE_NAME

      protected static final String TEST_TABLE_NAME
      See Also:
    • companyLocalService

      protected static com.liferay.portal.kernel.service.CompanyLocalService companyLocalService
    • connection

      protected static Connection 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

      protected static String defaultPartitionName
    • portal

      protected static com.liferay.portal.kernel.util.Portal portal
  • Constructor Details

    • BaseDBPartitionTestCase

      public BaseDBPartitionTestCase()
  • Method Details

    • assume

      public static void assume()
    • addDBPartitions

      protected static void addDBPartitions() throws Exception
      Throws:
      Exception
    • createControlTable

      protected static void createControlTable(String tableName) throws Exception
      Throws:
      Exception
    • createIndex

      protected static void createIndex(String tableName) throws Exception
      Throws:
      Exception
    • createUniqueIndex

      protected static void createUniqueIndex(String tableName) throws Exception
      Throws:
      Exception
    • deletePartitionRequiredData

      protected static void deletePartitionRequiredData() throws Exception
      Throws:
      Exception
    • dropControlTable

      protected static void dropControlTable(String tableName) throws Exception
      Throws:
      Exception
    • dropIndex

      protected static void dropIndex(String tableName) throws Exception
      Throws:
      Exception
    • dropSchemas

      protected static void dropSchemas() throws Exception
      Throws:
      Exception
    • dropTable

      protected static void dropTable(String tableName) throws Exception
      Throws:
      Exception
    • extractDBPartitions

      protected static void extractDBPartitions() throws Exception
      Throws:
      Exception
    • extractDBPartitions

      protected static void extractDBPartitions(long[] companyIds) throws Exception
      Throws:
      Exception
    • getCreateIndexSQL

      protected static String getCreateIndexSQL(String tableName)
    • getCreateTableSQL

      protected static String getCreateTableSQL(String tableName)
    • getPartitionName

      protected static String getPartitionName(long companyId)
    • insertDBPartitions

      protected static void insertDBPartitions() throws Exception
      Throws:
      Exception
    • insertPartitionData

      protected static void insertPartitionData() throws Exception
      Throws:
      Exception
    • insertPartitionRequiredData

      protected static void insertPartitionRequiredData() throws Exception
      Throws:
      Exception
    • isCopyableQuartzTable

      protected static boolean isCopyableQuartzTable(String tableName)
    • removeDBPartitions

      protected static void removeDBPartitions() throws Exception
      Throws:
      Exception
    • removeDBPartitions

      protected static void removeDBPartitions(long[] companyIds) throws Exception
      Throws:
      Exception
    • setUpClass

      protected static void setUpClass() throws Exception
      Throws:
      Exception
    • setUpDBPartitions

      protected static void setUpDBPartitions() throws Exception
      Throws:
      Exception
    • tearDownDBPartitions

      protected static void tearDownDBPartitions() throws Exception
      Throws:
      Exception
    • createAndPopulateControlTable

      protected void createAndPopulateControlTable(String tableName) throws Exception
      Throws:
      Exception
    • createAndPopulateTable

      protected void createAndPopulateTable(String tableName) throws Exception
      Throws:
      Exception