Package com.impossibl.postgres.jdbc
Class SQLText
- java.lang.Object
-
- com.impossibl.postgres.jdbc.SQLText
-
public class SQLText extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStatements(SQLText sqlText)
SQLText
copy()
SQLTextTree.StatementNode
getFirstStatement()
SQLTextTree.StatementNode
getLastStatement()
int
getStatementCount()
static SQLTextTree.MultiStatementNode
parse(String sql, boolean standardConformingStrings)
void
process(SQLTextTree.Processor processor, boolean recurse)
String
toString()
-
-
-
Constructor Detail
-
SQLText
public SQLText(String sqlText) throws ParseException
- Throws:
ParseException
-
SQLText
public SQLText(String sqlText, boolean standardConformingStrings) throws ParseException
- Throws:
ParseException
-
SQLText
public SQLText(SQLTextTree.MultiStatementNode copyRoot)
-
-
Method Detail
-
copy
public SQLText copy()
-
getStatementCount
public int getStatementCount()
-
getFirstStatement
public SQLTextTree.StatementNode getFirstStatement()
-
getLastStatement
public SQLTextTree.StatementNode getLastStatement()
-
addStatements
public void addStatements(SQLText sqlText)
-
process
public void process(SQLTextTree.Processor processor, boolean recurse) throws SQLException
- Throws:
SQLException
-
parse
public static SQLTextTree.MultiStatementNode parse(String sql, boolean standardConformingStrings) throws ParseException
- Throws:
ParseException
-
-