public class TreeFormatterUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
TreeFormatterUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Map<java.lang.Integer,PreparedExpression> |
buildPreparedParameters(Query query) |
|
static java.lang.String |
buildPreparedSQL(Query query) |
|
static java.sql.PreparedStatement |
buildPreparedStatement(AbstractSyntaxTree tree,
java.sql.Connection conn) |
Builds a prepared statement and binds attributes of tree to it.
|
public static java.sql.PreparedStatement buildPreparedStatement(AbstractSyntaxTree tree, java.sql.Connection conn) throws java.sql.SQLException
tree - abstract syntax treeconn - connection is used in creation a prepared statementjava.sql.SQLException - may be thrown during creation a prepared statementpublic static java.lang.String buildPreparedSQL(Query query)
public static java.util.Map<java.lang.Integer,PreparedExpression> buildPreparedParameters(Query query)