public class ContextSql
extends java.lang.Object
Constructor and Description |
---|
ContextSql(MTContext context,
java.lang.String sql) |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<ContextSql> |
createContexts(java.util.Collection<MTContext> contexts,
java.lang.String sql)
Build multiple ContextSql with the same SQL.
|
MTContext |
getContext() |
java.lang.String |
getSql() |
java.sql.Statement |
getStatement() |
int |
getSubParamIndex(int parameterIndex)
Get the parameter number.
|
void |
setIndexRenumbering(int[] renumberIndex)
Give the renumbering array.
|
void |
setStatement(java.sql.Statement statement) |
java.lang.String |
toString() |
public ContextSql(MTContext context, java.lang.String sql)
public void setStatement(java.sql.Statement statement)
public MTContext getContext()
public java.lang.String getSql()
public java.sql.Statement getStatement()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Collection<ContextSql> createContexts(java.util.Collection<MTContext> contexts, java.lang.String sql)
contexts
- sql
- public void setIndexRenumbering(int[] renumberIndex)
renumberIndex
- public int getSubParamIndex(int parameterIndex)
parameterIndex
-