Tests for user defined functions and aggregates.
| Methods |
| static int |
addRow(Connection conn, int id, String name)
This method is called via reflection from the database.
|
| static int |
addRow(Connection conn, int id, String name) throws SQLException
This method is called via reflection from the database.
Parameters:
conn - the connection
id - the test id
name - the text
Returns:
the count
|
| static Blob |
blob(Blob value)
This method is called via reflection from the database.
|
| static Blob |
blob(Blob value)
This method is called via reflection from the database.
Parameters:
value - the blob
Returns:
the blob
|
| static BufferedInputStream |
blob2stream(Blob value)
This method is called via reflection from the database.
|
| static BufferedInputStream |
blob2stream(Blob value) throws SQLException
This method is called via reflection from the database.
Parameters:
value - the blob
Returns:
the input stream
|
| static Clob |
clob(Clob value)
This method is called via reflection from the database.
|
| static Clob |
clob(Clob value)
This method is called via reflection from the database.
Parameters:
value - the blob
Returns:
the blob
|
| static long |
currentTimestampOverride()
This method is called via reflection from the database.
|
| static long |
currentTimestampOverride()
This method is called via reflection from the database.
Returns:
a fixed number
|
| static Object[] |
dynamic(Object[] args)
This method is called via reflection from the database.
|
| static Object[] |
dynamic(Object[] args)
This method is called via reflection from the database.
Parameters:
args - the argument list
Returns:
an array of one element
|
| static Object[] |
getArray()
This method is called via reflection from the database.
|
| static Object[] |
getArray()
This method is called via reflection from the database.
Returns:
the test array
|
| static int |
getCount()
This method is called via reflection from the database.
|
| static int |
getCount()
This method is called via reflection from the database.
Returns:
the count
|
| static void |
main(String... a)
Run just this test.
|
| static void |
main(String... a) throws Exception
Run just this test.
Parameters:
a - ignored
|
| static double |
mean()
This method is called via reflection from the database.
|
| static double |
mean()
This method is called via reflection from the database.
Returns:
1
|
| static double |
mean(double... values)
This method is called via reflection from the database.
|
| static double |
mean(double... values)
This method is called via reflection from the database.
Parameters:
values - the values
Returns:
the mean value
|
| static double |
mean2(Connection conn, double... values)
This method is called via reflection from the database.
|
| static double |
mean2(Connection conn, double... values)
This method is called via reflection from the database.
Parameters:
conn - the connection
values - the values
Returns:
the mean value
|
| static BigDecimal |
noOp(BigDecimal dec)
This method is called via reflection from the database.
|
| static BigDecimal |
noOp(BigDecimal dec)
This method is called via reflection from the database.
Parameters:
dec - the value
Returns:
the value
|
| static ResultSet |
nullResultSet(Connection conn)
This method is called via reflection from the database.
|
| static ResultSet |
nullResultSet(Connection conn)
This method is called via reflection from the database.
Parameters:
conn - the connection
Returns:
the result set
|
| static String |
printMean(String prefix, double... values)
This method is called via reflection from the database.
|
| static String |
printMean(String prefix, double... values)
This method is called via reflection from the database.
Parameters:
prefix - the print prefix
values - the values
Returns:
the text
|
| static ResultSet |
resultSetWithNull(Connection conn)
This method is called via reflection from the database.
|
| static ResultSet |
resultSetWithNull(Connection conn) throws SQLException
This method is called via reflection from the database.
Parameters:
conn - the connection
Returns:
the result set
|
| static String |
reverse(String s)
This method is called via reflection from the database.
|
| static String |
reverse(String s)
This method is called via reflection from the database.
Parameters:
s - the string
Returns:
the string, reversed
|
| static int |
root(int value)
This method is called via reflection from the database.
|
| static int |
root(int value)
This method is called via reflection from the database.
Parameters:
value - the value
Returns:
the square root
|
| static ResultSet |
select(Connection conn, String sql)
This method is called via reflection from the database.
|
| static ResultSet |
select(Connection conn, String sql) throws SQLException
This method is called via reflection from the database.
Parameters:
conn - the connection
sql - the SQL statement
Returns:
the result set
|
| static ResultSet |
selectMaxId(Connection conn)
This method is called via reflection from the database.
|
| static ResultSet |
selectMaxId(Connection conn) throws SQLException
This method is called via reflection from the database.
Parameters:
conn - the connection
Returns:
the result set
|
| static ResultSet |
simpleFunctionTable(Connection conn)
This method is called via reflection from the database.
|
| static ResultSet |
simpleFunctionTable(Connection conn)
This method is called via reflection from the database.
Parameters:
conn - the connection
Returns:
a result set
|
| static ResultSet |
simpleResultSet(Integer rowCount, int ip, boolean bp, float fp, double dp, long lp, byte byParam, short sp)
Test method to create a simple result set.
|
| static ResultSet |
simpleResultSet(Integer rowCount, int ip, boolean bp, float fp, double dp, long lp, byte byParam, short sp)
Test method to create a simple result set.
Parameters:
rowCount - the number of rows
ip - an int
bp - a boolean
fp - a float
dp - a double
lp - a long
byParam - a byte
sp - a short
Returns:
a result set
|
| static BufferedInputStream |
stream2stream(InputStream value)
This method is called via reflection from the database.
|
| static BufferedInputStream |
stream2stream(InputStream value)
This method is called via reflection from the database.
Parameters:
value - the input stream
Returns:
the buffered input stream
|
| static void |
testDefaultConn()
This method is called via reflection from the database.
|
| static void |
testDefaultConn() throws SQLException
This method is called via reflection from the database.
|
| static Value |
toChar(Value... args)
This method is called via reflection from the database.
|
| static Value |
toChar(Value... args)
This method is called via reflection from the database.
Parameters:
args - the argument list
Returns:
the value
|
| static ResultSet |
varArgsFunctionTable(int... values)
This method is called via reflection from the database.
|
| static ResultSet |
varArgsFunctionTable(int... values) throws SQLException
This method is called via reflection from the database.
Parameters:
values - the value array
Returns:
a result set
|
| static UUID |
xorUUID(UUID a, UUID b)
This method is called via reflection from the database.
|
| static UUID |
xorUUID(UUID a, UUID b)
This method is called via reflection from the database.
Parameters:
a - the first UUID
b - the second UUID
Returns:
a xor b
|
| void |
add(Object value)
|
| void |
add(Object value)
|
| Object |
getResult()
|
| Object |
getResult()
|
| int |
getType(int[] inputTypes)
|
| int |
getType(int[] inputTypes)
|
| void |
init(Connection conn)
|
| void |
init(Connection conn)
|
| void |
test()
|
| void |
test() throws Exception
|