Java基础
yangzy666
这个作者很懒,什么都没留下…
展开
-
Birt中的分页显示报表(来源:网络)
方法如下:1、将鼠标停在表格上,选择 明细数据行 (Row Detail) 。2、选择脚本(script)标签,在onPrepare方法中加入:count=0;在onCreate方法中加入:count++;if(count % 10==0){ this.getStyle().pageBreakAfter="always";...原创 2008-10-25 12:07:48 · 186 阅读 · 0 评论 -
字符串编码问题导致SQL异常
最近在做图书馆管理系统时,测试导入许多MARC文件(可把它看成文本文件),没有问题,唯独有一个文件在导入过程中总是报错:[u]java.sql.BatchUpdateException: 批次处理0insert into...org.hibernate.exception.DataException: Could not execute JDBC batch updateERROR: ...2008-04-28 16:07:59 · 384 阅读 · 0 评论 -
JAVA集合使用中出现的一个错误
今天工作时,由于粗心,犯了个错误,特此撰文自我鞭策.且看代码如下:[code="java"]final int REPORT_PAGE_ROWS = 20;//currentGroup 类型为ArrayListif (currentGroup.size() % REPORT_PAGE_ROWS != 0) { for (int i = 0; i < REPORT_PAGE...原创 2009-06-10 19:50:55 · 164 阅读 · 0 评论 -
阿拉伯数字金额转中文大写金额
在工作中因为报表需要,自己写了个简单的金额中文大写转换,权当训练一下思维。当然也有代码优化的空间,欢迎指正。/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.bestway.jptds.client.common;...2010-04-21 12:57:25 · 429 阅读 · 0 评论