|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.hasor.jdbc.core.util.ParsedSql
public class ParsedSql
Holds information about a parsed SQL statement.
| 构造方法摘要 | |
|---|---|
ParsedSql(String originalSql)
Create a new instance of the ParsedSql class. |
|
| 方法摘要 | |
|---|---|
void |
addNamedParameter(String parameterName,
int startIndex,
int endIndex)
Add a named parameter parsed from this SQL statement. |
int |
getNamedParameterCount()
Return the count of named parameters in the SQL statement. |
String |
getOriginalSql()
Return the SQL statement that is being parsed. |
int[] |
getParameterIndexes(int parameterPosition)
Return the parameter indexes for the specified parameter. |
List<String> |
getParameterNames()
Return all of the parameters (bind variables) in the parsed SQL statement. |
int |
getTotalParameterCount()
Return the total count of all of the parameters in the SQL statement. |
int |
getUnnamedParameterCount()
Return the count of all of the unnamed parameters in the SQL statement. |
void |
setNamedParameterCount(int namedParameterCount)
Set the count of named parameters in the SQL statement. |
void |
setTotalParameterCount(int totalParameterCount)
Set the total count of all of the parameters in the SQL statement. |
void |
setUnnamedParameterCount(int unnamedParameterCount)
Set the count of all of the unnamed parameters in the SQL statement. |
String |
toString()
Exposes the original SQL String. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ParsedSql(String originalSql)
ParsedSql class.
originalSql - the SQL statement that is being (or is to be) parsed| 方法详细信息 |
|---|
public String getOriginalSql()
public void addNamedParameter(String parameterName,
int startIndex,
int endIndex)
parameterName - the name of the parameterstartIndex - the start index in the original SQL StringendIndex - the end index in the original SQL Stringpublic List<String> getParameterNames()
public int[] getParameterIndexes(int parameterPosition)
parameterPosition - the position of the parameter
(as index in the parameter names List)
public void setNamedParameterCount(int namedParameterCount)
public int getNamedParameterCount()
public void setUnnamedParameterCount(int unnamedParameterCount)
public int getUnnamedParameterCount()
public void setTotalParameterCount(int totalParameterCount)
public int getTotalParameterCount()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||