Пример #1
0
    protected void generatePostDelegateCode(
        Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException {
      if ("setClientInfo".equals(method.getName())) {
        super.generatePostDelegateCode(intfcl, genclass, method, iw);

        iw.downIndent();
        iw.println("}");
        iw.println("catch (Exception e)");
        iw.println("{ throw SqlUtils.toSQLClientInfoException( e ); }");
      } else super.generatePostDelegateCode(intfcl, genclass, method, iw);
    }
Пример #2
0
    protected void generatePostDelegateCode(
        Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException {
      super.generatePostDelegateCode(intfcl, genclass, method, iw);

      // concurrent-access-debug only
      if (CONCURRENT_ACCESS_DEBUG) {
        iw.println("finally");
        iw.println("{");
        iw.upIndent();
        iw.println("concurrentAccessRecorder.remove( record );");
        iw.downIndent();
        iw.println("}");
      }
      // end concurrent-access-debug only
    }
Пример #3
0
 protected void generatePostDelegateCode(
     Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException {
   if (method.getExceptionTypes().length > 0)
     super.generatePostDelegateCode(intfcl, genclass, method, iw);
 }