Package cn.org.rapid_framework.freemarker

Examples of cn.org.rapid_framework.freemarker.FreemarkerTemplateException


            }else if(obj instanceof InputStream) {
              return new InputStreamReader((InputStream)obj,encoding);
            }else if(obj instanceof Blob) {
              return new InputStreamReader(rs.getBinaryStream(templateContentColumn),encoding);
            }else {
              throw new FreemarkerTemplateException("error sql type of templateContentColumn:"+templateContentColumn);
            }
          } catch (UnsupportedEncodingException e) {
            throw new FreemarkerTemplateException("load template from dataSource with templateName:"+templateName+" occer UnsupportedEncodingException",e);
          }
        }
        throw new FreemarkerTemplateException("not found template from dataSource with templateName:"+templateName);
      }
    });
  }
View Full Code Here


        if(timestamp instanceof Number) {
          return ((Number)timestamp).longValue();
        }else if(timestamp instanceof Date) {
          return ((Date)timestamp).getTime();
        }else {
          throw new FreemarkerTemplateException("error template timestamp column type,must be Date or Number type");
        }
    }
    return -1;
  }
View Full Code Here

TOP

Related Classes of cn.org.rapid_framework.freemarker.FreemarkerTemplateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.