abstract class InListMultiProbeTest.QueryStrategy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
conn |
private java.util.Random |
random |
(package private) java.util.Comparator<java.lang.String[]> |
rowComparator |
Constructor and Description |
---|
QueryStrategy(java.sql.Connection conn,
java.util.Random random)
Constructor: just take the received objects and save them
locally.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
fetchDataRows(java.lang.String[] ids)
Execute whatever query is associated with this QueryStrategy,
using the received ids as the values for the IN list.
|
protected abstract java.lang.String |
getName()
Return the name of this query strategy (used for reporting
failures).
|
int |
testSize(int size)
Build a list of ids to be used as the IN values for the query.
|
protected int |
validate(java.lang.String[] foreignIds,
java.sql.ResultSet results)
Take a list of foreign_key_ids that correlate to the IN
list for the most recently-executed query and verify that
the received query results are correct.
|
private java.util.Random random
protected java.sql.Connection conn
java.util.Comparator<java.lang.String[]> rowComparator
public QueryStrategy(java.sql.Connection conn, java.util.Random random)
public final int testSize(int size) throws java.sql.SQLException
size
- The size of the IN list that we want to build.java.sql.SQLException
protected int validate(java.lang.String[] foreignIds, java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
protected abstract int fetchDataRows(java.lang.String[] ids) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.String getName()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.