Package scriptella.jdbc
Interface SqlTokenizer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
SqlReaderTokenizer
This interface provides a contract to iterate SQL statements.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint[]This method returns list of injections for the last returned statement.Parses the following SQL statement from the source.
-
Field Details
-
EMPTY_INJECTIONS_ARRAY
static final int[] EMPTY_INJECTIONS_ARRAY
-
-
Method Details
-
nextStatement
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:
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.
-