Package liquibase.executor.jvm
Class RowMapperNotNullConstraintsResultSetExtractor
- java.lang.Object
-
- liquibase.executor.jvm.RowMapperResultSetExtractor
-
- liquibase.executor.jvm.RowMapperNotNullConstraintsResultSetExtractor
-
public class RowMapperNotNullConstraintsResultSetExtractor extends RowMapperResultSetExtractor
Adapter implementation of the ResultSetExtractor interface that delegates to a RowMapper which is supposed to create a not null constraint object for each row.Special mapper needed because sys table ALL_CONSTRAINTS provides info about not null constraints that have type 'C' and SEARCH_CONDITION(Text of search condition for a check constraint) field with 'is not null' string of data type: 'LONG' But type 'LONG' limits us to do any text operations (match, contains, etc.) on DB level Only one way to do this on backend side
- See Also:
RowMapper
,RowMapperResultSetExtractor
,Executor
-
-
Field Summary
-
Fields inherited from class liquibase.executor.jvm.RowMapperResultSetExtractor
rowMapper, rowsExpected
-
-
Constructor Summary
Constructors Constructor Description RowMapperNotNullConstraintsResultSetExtractor(RowMapper rowMapper)
-
-
-
Constructor Detail
-
RowMapperNotNullConstraintsResultSetExtractor
public RowMapperNotNullConstraintsResultSetExtractor(RowMapper rowMapper)
-
-
Method Detail
-
extractData
public Object extractData(ResultSet resultSet) throws SQLException
- Overrides:
extractData
in classRowMapperResultSetExtractor
- Throws:
SQLException
-
-