|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.test.jdbc.JdbcTestUtils
public class JdbcTestUtils
JdbcTestUtils is a collection of JDBC related utility methods for use in unit and integration testing scenarios.
Constructor Summary | |
---|---|
JdbcTestUtils()
|
Method Summary | |
---|---|
static boolean |
containsSqlScriptDelimiters(java.lang.String script,
char delim)
Does the provided SQL script contain the specified delimiter? |
static java.lang.String |
readScript(java.io.LineNumberReader lineNumberReader)
Read a script from the LineNumberReader and build a String containing the lines. |
static void |
splitSqlScript(java.lang.String script,
char delim,
java.util.List<java.lang.String> statements)
Split an SQL script into separate statements delimited with the provided delimiter character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcTestUtils()
Method Detail |
---|
public static java.lang.String readScript(java.io.LineNumberReader lineNumberReader) throws java.io.IOException
lineNumberReader
- the LineNumberReader
containing the
script to be processed
String
containing the script lines
java.io.IOException
public static boolean containsSqlScriptDelimiters(java.lang.String script, char delim)
script
- the SQL scriptdelim
- character delimiting each statement - typically a ';'
characterpublic static void splitSqlScript(java.lang.String script, char delim, java.util.List<java.lang.String> statements)
List
.
script
- the SQL scriptdelim
- character delimiting each statement - typically a ';'
characterstatements
- the List that will contain the individual statements
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |