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
RowMapper, RowMapperResultSetExtractor, liquibase.executor.Executor
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | SEARCH_CONDITION_FIELD
Field describes condition for NotNullConstraint in String format e.g. "ID" IS NOT NULL | name = 'foo' | etc. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | extractData(ResultSet
ResultSet to extract data from. Implementations should
not close this: it will be closed by the calling JdbcTemplate. resultSet)Overrides liquibase. Implements liquibase. Implementations must implement this method to process the entire ResultSet. |
| SEARCH_CONDITION | back to summary |
|---|---|
| private static final String SEARCH_CONDITION | |
| SEARCH_CONDITION_FIELD | back to summary |
|---|---|
| private static final String SEARCH_CONDITION_FIELD Field describes condition for NotNullConstraint in String format e.g. "ID" IS NOT NULL | name = 'foo' | etc. | |
| RowMapperNotNullConstraintsResultSetExtractor | back to summary |
|---|---|
| public RowMapperNotNullConstraintsResultSetExtractor(RowMapper rowMapper) | |
| extractData | back to summary |
|---|---|
| public Object extractData(ResultSet resultSet) throws SQLException Overrides liquibase. Implements liquibase. Doc from liquibase. Implementations must implement this method to process the entire ResultSet.
| |