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 voidaddStatements(SQLText sqlText)SQLTextcopy()SQLTextTree.StatementNodegetFirstStatement()SQLTextTree.StatementNodegetLastStatement()intgetStatementCount()static SQLTextTree.MultiStatementNodeparse(String sql, boolean standardConformingStrings)voidprocess(SQLTextTree.Processor processor, boolean recurse)StringtoString()
-
-
-
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
-
-