public class org.apache.ibatis.executor.statement.SimpleStatementHandler extends org.apache.ibatis.executor.statement.BaseStatementHandler
{
public void <init>(org.apache.ibatis.executor.Executor, org.apache.ibatis.mapping.MappedStatement, java.lang.Object, org.apache.ibatis.session.RowBounds, org.apache.ibatis.session.ResultHandler, org.apache.ibatis.mapping.BoundSql)
{
org.apache.ibatis.mapping.BoundSql v;
org.apache.ibatis.executor.Executor v;
org.apache.ibatis.mapping.MappedStatement v;
java.lang.Object v;
org.apache.ibatis.session.ResultHandler v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
org.apache.ibatis.session.RowBounds v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: org.apache.ibatis.executor.Executor;
v := @parameter: org.apache.ibatis.mapping.MappedStatement;
v := @parameter: java.lang.Object;
v := @parameter: org.apache.ibatis.session.RowBounds;
v := @parameter: org.apache.ibatis.session.ResultHandler;
v := @parameter: org.apache.ibatis.mapping.BoundSql;
specialinvoke v.<org.apache.ibatis.executor.statement.BaseStatementHandler: void <init>(org.apache.ibatis.executor.Executor,org.apache.ibatis.mapping.MappedStatement,java.lang.Object,org.apache.ibatis.session.RowBounds,org.apache.ibatis.session.ResultHandler,org.apache.ibatis.mapping.BoundSql)>(v, v, v, v, v, v);
return;
}
public int update(java.sql.Statement) throws java.sql.SQLException
{
org.apache.ibatis.executor.Executor v, v;
org.apache.ibatis.executor.keygen.KeyGenerator v;
org.apache.ibatis.mapping.BoundSql v, v;
org.apache.ibatis.mapping.MappedStatement v, v, v;
int v;
java.sql.Statement v;
java.lang.Object v;
java.lang.String v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
boolean v, v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Statement;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.BoundSql boundSql>;
v = virtualinvoke v.<org.apache.ibatis.mapping.BoundSql: java.lang.String getSql()>();
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.BoundSql boundSql>;
v = virtualinvoke v.<org.apache.ibatis.mapping.BoundSql: java.lang.Object getParameterObject()>();
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.MappedStatement mappedStatement>;
v = virtualinvoke v.<org.apache.ibatis.mapping.MappedStatement: org.apache.ibatis.executor.keygen.KeyGenerator getKeyGenerator()>();
v = v instanceof org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator;
if v == 0 goto label;
interfaceinvoke v.<java.sql.Statement: boolean execute(java.lang.String,int)>(v, 1);
v = interfaceinvoke v.<java.sql.Statement: int getUpdateCount()>();
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.executor.Executor executor>;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.MappedStatement mappedStatement>;
interfaceinvoke v.<org.apache.ibatis.executor.keygen.KeyGenerator: void processAfter(org.apache.ibatis.executor.Executor,org.apache.ibatis.mapping.MappedStatement,java.sql.Statement,java.lang.Object)>(v, v, v, v);
goto label;
label:
v = v instanceof org.apache.ibatis.executor.keygen.SelectKeyGenerator;
if v == 0 goto label;
interfaceinvoke v.<java.sql.Statement: boolean execute(java.lang.String)>(v);
v = interfaceinvoke v.<java.sql.Statement: int getUpdateCount()>();
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.executor.Executor executor>;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.MappedStatement mappedStatement>;
interfaceinvoke v.<org.apache.ibatis.executor.keygen.KeyGenerator: void processAfter(org.apache.ibatis.executor.Executor,org.apache.ibatis.mapping.MappedStatement,java.sql.Statement,java.lang.Object)>(v, v, v, v);
goto label;
label:
interfaceinvoke v.<java.sql.Statement: boolean execute(java.lang.String)>(v);
v = interfaceinvoke v.<java.sql.Statement: int getUpdateCount()>();
label:
return v;
}
public void batch(java.sql.Statement) throws java.sql.SQLException
{
org.apache.ibatis.mapping.BoundSql v;
java.sql.Statement v;
java.lang.String v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Statement;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.BoundSql boundSql>;
v = virtualinvoke v.<org.apache.ibatis.mapping.BoundSql: java.lang.String getSql()>();
interfaceinvoke v.<java.sql.Statement: void addBatch(java.lang.String)>(v);
return;
}
public java.util.List query(java.sql.Statement, org.apache.ibatis.session.ResultHandler) throws java.sql.SQLException
{
java.util.List v;
org.apache.ibatis.mapping.BoundSql v;
java.sql.Statement v;
org.apache.ibatis.executor.resultset.ResultSetHandler v;
org.apache.ibatis.session.ResultHandler v;
java.lang.String v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Statement;
v := @parameter: org.apache.ibatis.session.ResultHandler;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.BoundSql boundSql>;
v = virtualinvoke v.<org.apache.ibatis.mapping.BoundSql: java.lang.String getSql()>();
interfaceinvoke v.<java.sql.Statement: boolean execute(java.lang.String)>(v);
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.executor.resultset.ResultSetHandler resultSetHandler>;
v = interfaceinvoke v.<org.apache.ibatis.executor.resultset.ResultSetHandler: java.util.List handleResultSets(java.sql.Statement)>(v);
return v;
}
public org.apache.ibatis.cursor.Cursor queryCursor(java.sql.Statement) throws java.sql.SQLException
{
org.apache.ibatis.mapping.BoundSql v;
java.sql.Statement v;
org.apache.ibatis.cursor.Cursor v;
org.apache.ibatis.executor.resultset.ResultSetHandler v;
java.lang.String v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Statement;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.BoundSql boundSql>;
v = virtualinvoke v.<org.apache.ibatis.mapping.BoundSql: java.lang.String getSql()>();
interfaceinvoke v.<java.sql.Statement: boolean execute(java.lang.String)>(v);
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.executor.resultset.ResultSetHandler resultSetHandler>;
v = interfaceinvoke v.<org.apache.ibatis.executor.resultset.ResultSetHandler: org.apache.ibatis.cursor.Cursor handleCursorResultSets(java.sql.Statement)>(v);
return v;
}
protected java.sql.Statement instantiateStatement(java.sql.Connection) throws java.sql.SQLException
{
java.sql.Connection v;
org.apache.ibatis.mapping.ResultSetType v, v, v;
org.apache.ibatis.mapping.MappedStatement v, v;
int v;
java.sql.Statement v, v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Connection;
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.MappedStatement mappedStatement>;
v = virtualinvoke v.<org.apache.ibatis.mapping.MappedStatement: org.apache.ibatis.mapping.ResultSetType getResultSetType()>();
v = <org.apache.ibatis.mapping.ResultSetType: org.apache.ibatis.mapping.ResultSetType DEFAULT>;
if v != v goto label;
v = interfaceinvoke v.<java.sql.Connection: java.sql.Statement createStatement()>();
return v;
label:
v = v.<org.apache.ibatis.executor.statement.SimpleStatementHandler: org.apache.ibatis.mapping.MappedStatement mappedStatement>;
v = virtualinvoke v.<org.apache.ibatis.mapping.MappedStatement: org.apache.ibatis.mapping.ResultSetType getResultSetType()>();
v = virtualinvoke v.<org.apache.ibatis.mapping.ResultSetType: int getValue()>();
v = interfaceinvoke v.<java.sql.Connection: java.sql.Statement createStatement(int,int)>(v, 1007);
return v;
}
public void parameterize(java.sql.Statement)
{
java.sql.Statement v;
org.apache.ibatis.executor.statement.SimpleStatementHandler v;
v := @this: org.apache.ibatis.executor.statement.SimpleStatementHandler;
v := @parameter: java.sql.Statement;
return;
}
}