|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.test.FarragoTestUDR
public abstract class FarragoTestUDR
FarragoTestUDR contains definitions for user-defined routines used by tests.
Constructor Summary | |
---|---|
FarragoTestUDR()
|
Method Summary | |
---|---|
static int |
accessSql()
|
private static void |
addOutputColumn(List<Integer> returnColumns,
ResultSet inputSet,
PreparedStatement resultInserter,
int offset)
|
static int |
atoi(String s)
|
static Integer |
atoiWithNullForErr(String s)
|
static void |
badStringifyColumns1(ResultSet inputSet,
List columns,
String delimiter,
PreparedStatement resultInserter)
|
static void |
badStringifyColumns2(ResultSet inputSet,
List<Integer> columns,
String delimiter,
PreparedStatement resultInserter)
|
static void |
badStringifyColumns3(ResultSet inputSet,
Map<String,Integer> columns,
String delimiter,
PreparedStatement resultInserter)
|
private static void |
buildColumnMap(List<String> columns,
int nInputCols,
ResultSetMetaData metaData,
List<Integer> returnColumns)
|
static void |
combineStringifyColumns(ResultSet inputSet1,
List<String> columns1,
ResultSet inputSet2,
List<String> columns2,
String delimiter,
PreparedStatement resultInserter)
|
static void |
combineStringifyColumnsJumbledArgs(List<String> columns2,
ResultSet inputSet1,
String delimiter,
ResultSet inputSet2,
List<String> columns1,
PreparedStatement resultInserter)
|
static String |
convertUnicodeToEscapedForm(String s)
|
static BigDecimal |
decimalAbs(BigDecimal dec)
|
static String |
decryptPublicKey(byte[] keyBytes)
|
protected static String |
describeInputOutput(ResultSet inputSet,
PreparedStatement resultInserter)
|
static void |
digest(ResultSet inputSet,
PreparedStatement resultInserter)
|
private static void |
emitUdxRow(PreparedStatement resultInserter,
Object[] row)
|
static void |
foreignTime(Timestamp ts,
String tsZoneId,
String foreignZoneId,
PreparedStatement resultInserter)
|
static int |
gargle()
|
static long |
generateRandomNumber(long seed)
|
private static void |
generateRows(ResultSet inputSet,
List<String> columns,
String delimiter,
PreparedStatement resultInserter)
|
static String |
generateUnicodeString()
|
static void |
generateUnicodeStringUdx(PreparedStatement resultInserter)
|
static String |
generateUnicodeSupplementalString()
|
static void |
generateUnicodeTestCsv(String charsetName)
|
static String |
itoa(int i)
|
static String |
itoaWithNulForErr(int i)
|
static void |
longerRamp(int n,
PreparedStatement resultInserter)
|
static String |
noargs()
|
static void |
noiseWithCancel(long n,
long seed,
long cancelDelayMillis,
PreparedStatement resultInserter)
|
static void |
nullableRamp(Integer n,
PreparedStatement resultInserter)
|
static void |
ramp(int n,
PreparedStatement resultInserter)
|
static void |
removeDupsFromPresortedCursor(ResultSet inputSet,
PreparedStatement resultInserter)
|
static String |
repeat(String s,
int n)
|
static void |
returnInput(ResultSet inputSet,
List<String> columns,
PreparedStatement resultInserter)
Returns some subset of the input columns as specified by the columns parameter. |
static void |
returnTwoInputs(ResultSet inputSet1,
ResultSet inputSet2,
List<String> columns1,
List<String> columns2,
PreparedStatement resultInserter)
Returns subsets of columns from two inputs. |
static void |
setFarragoProperty(String name,
String value)
|
static void |
setLabel(String labelName)
Sets a label within a UDR. |
static void |
setSessionVariable(String name,
String value)
|
static void |
setSystemProperty(String name,
String value)
|
static void |
simulateCatalogRecovery()
|
static void |
stringify(ResultSet inputSet,
String delimiter,
PreparedStatement resultInserter)
|
static void |
stringify2ColumnLists(List<String> columns1,
List<String> columns2,
ResultSet inputSet,
String delimiter,
PreparedStatement resultInserter)
|
static void |
stringifyColumns(ResultSet inputSet,
List<String> columns,
String delimiter,
PreparedStatement resultInserter)
|
static String |
substring24(String in)
|
static int |
throwNPE()
|
static int |
throwSQLException()
|
static String |
toHexString(int i)
|
static String |
toHexString(Integer i)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FarragoTestUDR()
Method Detail |
---|
public static String noargs()
public static String substring24(String in)
public static String toHexString(int i)
public static String toHexString(Integer i)
public static BigDecimal decimalAbs(BigDecimal dec)
public static String repeat(String s, int n)
public static int atoi(String s)
public static Integer atoiWithNullForErr(String s)
public static String itoa(int i)
public static String itoaWithNulForErr(int i)
public static void setSystemProperty(String name, String value)
public static void setFarragoProperty(String name, String value)
public static int accessSql()
public static String generateUnicodeString()
public static String generateUnicodeSupplementalString()
public static void generateUnicodeStringUdx(PreparedStatement resultInserter) throws Exception
Exception
public static String convertUnicodeToEscapedForm(String s)
public static void generateUnicodeTestCsv(String charsetName) throws Exception
Exception
public static String decryptPublicKey(byte[] keyBytes)
public static int throwSQLException() throws SQLException
SQLException
public static int throwNPE()
public static long generateRandomNumber(long seed)
public static int gargle()
public static void ramp(int n, PreparedStatement resultInserter) throws SQLException
SQLException
public static void nullableRamp(Integer n, PreparedStatement resultInserter) throws SQLException
SQLException
public static void noiseWithCancel(long n, long seed, long cancelDelayMillis, PreparedStatement resultInserter) throws Exception
Exception
public static void stringify(ResultSet inputSet, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void stringifyColumns(ResultSet inputSet, List<String> columns, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void stringify2ColumnLists(List<String> columns1, List<String> columns2, ResultSet inputSet, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void combineStringifyColumns(ResultSet inputSet1, List<String> columns1, ResultSet inputSet2, List<String> columns2, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void combineStringifyColumnsJumbledArgs(List<String> columns2, ResultSet inputSet1, String delimiter, ResultSet inputSet2, List<String> columns1, PreparedStatement resultInserter) throws SQLException
SQLException
private static void generateRows(ResultSet inputSet, List<String> columns, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void badStringifyColumns1(ResultSet inputSet, List columns, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void badStringifyColumns2(ResultSet inputSet, List<Integer> columns, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void badStringifyColumns3(ResultSet inputSet, Map<String,Integer> columns, String delimiter, PreparedStatement resultInserter) throws SQLException
SQLException
public static void digest(ResultSet inputSet, PreparedStatement resultInserter) throws SQLException
SQLException
protected static String describeInputOutput(ResultSet inputSet, PreparedStatement resultInserter) throws SQLException
SQLException
public static void longerRamp(int n, PreparedStatement resultInserter) throws SQLException
SQLException
public static void removeDupsFromPresortedCursor(ResultSet inputSet, PreparedStatement resultInserter) throws SQLException
SQLException
private static void emitUdxRow(PreparedStatement resultInserter, Object[] row) throws SQLException
SQLException
public static void foreignTime(Timestamp ts, String tsZoneId, String foreignZoneId, PreparedStatement resultInserter) throws SQLException
SQLException
public static void setSessionVariable(String name, String value) throws SQLException
SQLException
public static void simulateCatalogRecovery() throws Exception
Exception
public static void setLabel(String labelName) throws Exception
labelName
- name of the label or null
Exception
public static void returnInput(ResultSet inputSet, List<String> columns, PreparedStatement resultInserter) throws SQLException
inputSet
- the input rowscolumns
- the list of column names that determine which columns from
the input to return, as well as the order of the columnsresultInserter
- used to return the resulting output
SQLException
private static void buildColumnMap(List<String> columns, int nInputCols, ResultSetMetaData metaData, List<Integer> returnColumns) throws SQLException
SQLException
private static void addOutputColumn(List<Integer> returnColumns, ResultSet inputSet, PreparedStatement resultInserter, int offset) throws SQLException
SQLException
public static void returnTwoInputs(ResultSet inputSet1, ResultSet inputSet2, List<String> columns1, List<String> columns2, PreparedStatement resultInserter) throws SQLException
inputSet1
- first set of input rowsinputSet2
- second set of input rowscolumns1
- subset of column names from the first inputcolumns2
- subset of column names from the second inputresultInserter
- used to return the resulting output
SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |