public class Tables extends Object
Constructor and Description |
---|
Tables() |
Modifier and Type | Method and Description |
---|---|
static <R extends Table.Row,T extends Table<R>> |
convertRows(Context context,
T table,
ResultBatch results) |
static String |
getSQL(Object[] sqlData,
Version currentVersion)
Helper function for matching a SQL query with a version.
|
public static String getSQL(Object[] sqlData, Version currentVersion)
sqlData
- An array of [Version, String] pairs to select fromcurrentVersion
- The requested version of SQL to retrieveUnsupportedServerVersion
- if no match can be foundIllegalStateException
- if the sqlData pairs are ill formedpublic static <R extends Table.Row,T extends Table<R>> List<R> convertRows(Context context, T table, ResultBatch results) throws IOException
IOException