public class TestRoutines
extends java.lang.Object
Constructor and Description |
---|
TestRoutines() |
Modifier and Type | Method and Description |
---|---|
static int |
hasSecurityManager()
TESTROUTINE.HAS_SECURITY_MANAGER()
|
static void |
installRoutines()
A single procedure to create all the routines in this file.
|
static void |
installRoutines(java.sql.Connection conn)
Easy way to install all the routines from a Java test program.
|
static java.lang.String |
readFile(java.lang.String fileName,
java.lang.String encoding)
TESTROUTINE.READ_FILE(FILE_NAME VARCHAR(60), ENCODING VARCHAR(60)) RETURNS VARCHAR(32000)
Read a file using the passed in encoding display its contents
as ASCII with unicode esacpes..
|
static void |
setSystemProperty(java.lang.String key,
java.lang.String value)
TESTROUTINE.SET_SYSTEM_PROPERTY(IN PROPERTY_KEY VARCHAR(32000), IN PROPERTY_VALUE VARCHAR(32000))
Set a system property
|
static void |
sleep(long ms)
TESTROUTINE.SLEEP(IN TIME_MS BIGINT)
Sleep for a number of milli-seconds.
|
public static void installRoutines() throws java.sql.SQLException
java.sql.SQLException
public static void installRoutines(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public static void setSystemProperty(java.lang.String key, java.lang.String value)
public static void sleep(long ms) throws java.lang.InterruptedException
java.lang.InterruptedException
public static int hasSecurityManager()
public static java.lang.String readFile(java.lang.String fileName, java.lang.String encoding) throws java.security.PrivilegedActionException, java.io.IOException
java.security.PrivilegedActionException
java.io.IOException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.