Esempio n. 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);
    }
Esempio n. 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
    }
Esempio n. 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);
 }