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 class
AbstractColumnAlternationTest.ColumnDefinitionImpl
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
createQueryTemplateHsql
protected static java.lang.String
createQueryTemplateMySql
protected static java.lang.String
createQueryTemplateOracle
protected static java.lang.String
dropQueryTemplate
protected static java.lang.String
insertQueryTemplate
protected static java.lang.String
TABLE_COLUMN_NAME_SMALL
protected static java.lang.String
TABLE_NAME_SMALL
protected static java.lang.String
tableName
protected 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 boolean
checkDatabaseSupported()
protected void
checkTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, UpdateDataUtil.ColumnDefinition expectedAnyway, java.lang.Object... initdata)
protected void
checkTypeChange(UpdateDataUtil.ColumnDefinition sourceType, UpdateDataUtil.ColumnDefinition targetType, java.lang.Object... initdata)
void
clearingStucture()
static void
clearMassTemporaryTables()
protected void
createAndFillStucture(UpdateDataUtil.ColumnDefinition initType, java.lang.Object... initData)
protected void
dropTestTable(java.sql.Connection con, java.sql.Statement stmt)
protected static java.lang.String
getCatalog(java.sql.Connection con)
protected ChangeColumnStrategy
getChangeColumnStrategy()
protected void
setTableNameSubfix(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.SQLException
UpdateModelException
-
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.SQLException
UpdateModelException
-
checkDatabaseSupported
protected boolean checkDatabaseSupported()
-
getChangeColumnStrategy
protected ChangeColumnStrategy getChangeColumnStrategy()
-
clearMassTemporaryTables
public static void clearMassTemporaryTables() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-