Package liquibase.snapshot
Class ResultSetCache.ResultSetExtractor
- java.lang.Object
-
- liquibase.snapshot.ResultSetCache.ResultSetExtractor
-
- Direct Known Subclasses:
ResultSetCache.SingleResultSetExtractor
,ResultSetCache.UnionResultSetExtractor
- Enclosing class:
- ResultSetCache
public abstract static class ResultSetCache.ResultSetExtractor extends Object
-
-
Constructor Summary
Constructors Constructor Description ResultSetExtractor(Database database)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
bulkContainsSchema(String schemaKey)
abstract List<CachedRow>
bulkFetch()
boolean
equals(Object expectedValue, Object foundValue)
boolean
equals(Object expectedValue, Object foundValue, boolean equalIfEitherNull)
protected List<CachedRow>
executeAndExtract(String sql, Database database)
protected List<CachedRow>
executeAndExtract(Database database, boolean informixTrimHint, String sql, Object... parameters)
protected List<CachedRow>
executeAndExtract(Database database, String sql, Object... parameters)
protected List<CachedRow>
extract(ResultSet resultSet)
protected List<CachedRow>
extract(ResultSet resultSet, boolean informixIndexTrimHint)
abstract List<CachedRow>
fastFetch()
String
getSchemaKey(CachedRow row)
abstract ResultSetCache.RowData
rowKeyParameters(CachedRow row)
protected boolean
shouldBulkSelect(String schemaKey, ResultSetCache resultSetCache)
abstract ResultSetCache.RowData
wantedKeyParameters()
-
-
-
Constructor Detail
-
ResultSetExtractor
public ResultSetExtractor(Database database)
-
-
Method Detail
-
bulkContainsSchema
public abstract boolean bulkContainsSchema(String schemaKey)
-
shouldBulkSelect
protected boolean shouldBulkSelect(String schemaKey, ResultSetCache resultSetCache)
-
executeAndExtract
protected List<CachedRow> executeAndExtract(String sql, Database database) throws DatabaseException, SQLException
- Throws:
DatabaseException
SQLException
-
executeAndExtract
protected List<CachedRow> executeAndExtract(Database database, String sql, Object... parameters) throws DatabaseException, SQLException
- Throws:
DatabaseException
SQLException
-
executeAndExtract
protected List<CachedRow> executeAndExtract(Database database, boolean informixTrimHint, String sql, Object... parameters) throws DatabaseException, SQLException
- Throws:
DatabaseException
SQLException
-
rowKeyParameters
public abstract ResultSetCache.RowData rowKeyParameters(CachedRow row)
-
wantedKeyParameters
public abstract ResultSetCache.RowData wantedKeyParameters()
-
fastFetch
public abstract List<CachedRow> fastFetch() throws SQLException, DatabaseException
- Throws:
SQLException
DatabaseException
-
bulkFetch
public abstract List<CachedRow> bulkFetch() throws SQLException, DatabaseException
- Throws:
SQLException
DatabaseException
-
extract
protected List<CachedRow> extract(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
extract
protected List<CachedRow> extract(ResultSet resultSet, boolean informixIndexTrimHint) throws SQLException
- Throws:
SQLException
-
-