|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.ScriptReader
public class ScriptReader
This class can split SQL scripts to single SQL statements. Each SQL statement ends with the character ';', however it is ignored in comments and quotes.
Constructor Summary | |
---|---|
ScriptReader(java.io.Reader reader)
Create a new SQL script reader from the given reader |
Method Summary | |
---|---|
void |
close()
Close the underlying reader. |
boolean |
isBlockRemark()
If currently inside a remark, this method tells if it is a block comment (true) or single line comment (false) |
boolean |
isInsideRemark()
Check if this is the last statement, and if the single line or block comment is not finished yet. |
java.lang.String |
readStatement()
Read a statement from the reader. |
void |
setSkipRemarks(boolean skipRemarks)
If comments should be skipped completely by this reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptReader(java.io.Reader reader)
reader
- the readerMethod Detail |
---|
public void close()
public java.lang.String readStatement()
public boolean isInsideRemark()
public boolean isBlockRemark()
public void setSkipRemarks(boolean skipRemarks)
skipRemarks
- true if comments should be skipped
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |