}
private void setupFields() {
this.statementName = method.getName();
this.delegate = ((ExtendedSqlMapClient) client).getDelegate();
GeneralStatement statement = (GeneralStatement) delegate.getMappedStatement(statementName);
this.parameterClass = statement.getParameterClass();
this.resultClass = statement.getResultMap() == null ? null : statement.getResultMap().getResultClass();
this.type = statement.getStatementType();
this.argCount = method.getParameterTypes().length;
}