Class AbstractColumnAlternationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.testframework.HybrisJUnit4TransactionalTest
-
- de.hybris.platform.persistence.type.update.AbstractColumnAlternationTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
RawToBlobChangeStrategyIntegrationTest,SimpleTypeColumnAlternationTest
public abstract class AbstractColumnAlternationTest extends HybrisJUnit4TransactionalTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractColumnAlternationTest.ColumnDefinitionImpl
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringcreateQueryTemplateHsqlprotected static java.lang.StringcreateQueryTemplateMySqlprotected static java.lang.StringcreateQueryTemplateOracleprotected static java.lang.StringdropQueryTemplateprotected static java.lang.StringinsertQueryTemplateprotected static java.lang.StringTABLE_COLUMN_NAME_SMALLprotected static java.lang.StringTABLE_NAME_SMALLprotected static java.lang.StringtableNameprotected static java.util.Set<java.lang.String>tempTablesNames-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AbstractColumnAlternationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckDatabaseSupported()protected voidcheckTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, UpdateDataUtil.ColumnDefinition expectedAnyway, java.lang.Object... initdata)protected voidcheckTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, java.lang.Object... initdata)voidclearingStucture()static voidclearMassTemporaryTables()protected voidcreateAndFillStucture(UpdateDataUtil.ColumnDefinition initType, java.lang.Object... initData)protected voiddropTestTable(java.sql.Connection con, java.sql.Statement stmt)protected static java.lang.StringgetCatalog(java.sql.Connection con)protected ChangeColumnStrategygetChangeColumnStrategy()protected voidsetTableNameSubfix(java.lang.String subfix)-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
TABLE_NAME_SMALL
protected static final java.lang.String TABLE_NAME_SMALL
- See Also:
- Constant Field Values
-
tableName
protected static java.lang.String tableName
-
tempTablesNames
protected static java.util.Set<java.lang.String> tempTablesNames
-
TABLE_COLUMN_NAME_SMALL
protected static final java.lang.String TABLE_COLUMN_NAME_SMALL
- See Also:
- Constant Field Values
-
dropQueryTemplate
protected static final java.lang.String dropQueryTemplate
- See Also:
- Constant Field Values
-
createQueryTemplateMySql
protected static final java.lang.String createQueryTemplateMySql
- See Also:
- Constant Field Values
-
createQueryTemplateHsql
protected static final java.lang.String createQueryTemplateHsql
- See Also:
- Constant Field Values
-
createQueryTemplateOracle
protected static final java.lang.String createQueryTemplateOracle
- See Also:
- Constant Field Values
-
insertQueryTemplate
protected static final java.lang.String insertQueryTemplate
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTableNameSubfix
protected void setTableNameSubfix(java.lang.String subfix)
-
getCatalog
protected static java.lang.String getCatalog(java.sql.Connection con) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
dropTestTable
protected void dropTestTable(java.sql.Connection con, java.sql.Statement stmt)
-
createAndFillStucture
protected void createAndFillStucture(UpdateDataUtil.ColumnDefinition initType, java.lang.Object... initData) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
clearingStucture
public void clearingStucture() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
checkTypeChange
protected void checkTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, java.lang.Object... initdata) throws java.sql.SQLException, UpdateModelException
- Throws:
java.sql.SQLExceptionUpdateModelException
-
checkTypeChange
protected void checkTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, UpdateDataUtil.ColumnDefinition expectedAnyway, java.lang.Object... initdata) throws java.sql.SQLException, UpdateModelException
- Throws:
java.sql.SQLExceptionUpdateModelException
-
checkDatabaseSupported
protected boolean checkDatabaseSupported()
-
getChangeColumnStrategy
protected ChangeColumnStrategy getChangeColumnStrategy()
-
clearMassTemporaryTables
public static void clearMassTemporaryTables() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-