scriptella.jdbc
Interface SqlTokenizer
- All Superinterfaces:
- java.io.Closeable
- All Known Implementing Classes:
- SqlReaderTokenizer
public interface SqlTokenizer
- extends java.io.Closeable
This interface provides a contract to iterate SQL statements.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
|
Method Summary |
int[] |
getInjections()
This method returns list of injections for the last returned statement. |
java.lang.String |
nextStatement()
Parses the following SQL statement from the source. |
| Methods inherited from interface java.io.Closeable |
close |
EMPTY_INJECTIONS_ARRAY
static final int[] EMPTY_INJECTIONS_ARRAY
nextStatement
java.lang.String nextStatement()
throws java.io.IOException
- Parses the following SQL statement from the source.
Use getInjections() to obtain recognized injections, e.g.
binding variables and/or expressions.
- Returns:
- parsed SQL statement or null if EOF.
- Throws:
java.io.IOException - if I/O exception occurs
getInjections
int[] getInjections()
- This method returns list of injections for the last returned statement.
- Returns:
- injections for the last returned statement.
Copyright © Copyright 2006-2009 The Scriptella Project Team.