Package com.impossibl.postgres.jdbc
Class SQLText
- java.lang.Object
-
- com.impossibl.postgres.jdbc.SQLText
-
public class SQLText extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SQLText(SQLTextTree.MultiStatementNode copyRoot)
SQLText(java.lang.String sqlText)
SQLText(java.lang.String sqlText, boolean standardConformingStrings)
-
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(java.lang.String sql, boolean standardConformingStrings)
void
process(SQLTextTree.Processor processor, boolean recurse)
java.lang.String
toString()
-
-
-
Constructor Detail
-
SQLText
public SQLText(java.lang.String sqlText) throws java.text.ParseException
- Throws:
java.text.ParseException
-
SQLText
public SQLText(java.lang.String sqlText, boolean standardConformingStrings) throws java.text.ParseException
- Throws:
java.text.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 java.sql.SQLException
- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parse
public static SQLTextTree.MultiStatementNode parse(java.lang.String sql, boolean standardConformingStrings) throws java.text.ParseException
- Throws:
java.text.ParseException
-
-