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 booleanbulkContainsSchema(String schemaKey)abstract List<CachedRow>bulkFetch()booleanequals(Object expectedValue, Object foundValue)booleanequals(Object expectedValue, Object foundValue, boolean equalIfEitherNull)protected List<CachedRow>executeAndExtract(String sql, Database database)protected List<CachedRow>executeAndExtract(String sql, Database database, boolean informixTrimHint)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()StringgetSchemaKey(CachedRow row)abstract ResultSetCache.RowDatarowKeyParameters(CachedRow row)protected booleanshouldBulkSelect(String schemaKey, ResultSetCache resultSetCache)abstract ResultSetCache.RowDatawantedKeyParameters()
-
-
-
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:
DatabaseExceptionSQLException
-
executeAndExtract
protected List<CachedRow> executeAndExtract(Database database, String sql, Object... parameters) throws DatabaseException, SQLException
- Throws:
DatabaseExceptionSQLException
-
executeAndExtract
protected List<CachedRow> executeAndExtract(String sql, Database database, boolean informixTrimHint) throws DatabaseException, SQLException
- Throws:
DatabaseExceptionSQLException
-
executeAndExtract
protected List<CachedRow> executeAndExtract(Database database, boolean informixTrimHint, String sql, Object... parameters) throws DatabaseException, SQLException
- Throws:
DatabaseExceptionSQLException
-
rowKeyParameters
public abstract ResultSetCache.RowData rowKeyParameters(CachedRow row)
-
wantedKeyParameters
public abstract ResultSetCache.RowData wantedKeyParameters()
-
fastFetch
public abstract List<CachedRow> fastFetch() throws SQLException, DatabaseException
- Throws:
SQLExceptionDatabaseException
-
bulkFetch
public abstract List<CachedRow> bulkFetch() throws SQLException, DatabaseException
- Throws:
SQLExceptionDatabaseException
-
extract
protected List<CachedRow> extract(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
extract
protected List<CachedRow> extract(ResultSet resultSet, boolean informixIndexTrimHint) throws SQLException
- Throws:
SQLException
-
-