`
gonglianying
  • 浏览: 197983 次
  • 性别: Icon_minigender_2
  • 来自: xxx
文章分类
社区版块
存档分类
最新评论
文章列表
数据库驱动为10g的驱动,就可以像操作STRING一样操作CLOB了 HIBERNATE配置加一行: <property name="hibernate.connection.SetBigStringTryClob">true</property> HIBERNATE映射CLOB字段写为:         <property name="content" type="text">             <column name="CONTENT" />         ...
public class Dom4jDemo {     public Dom4jDemo() {     }     /**      * 建立一个XML文档,文档名由输入参数决定      * @param filename 需建立的文件名      * @return 返回操作结果, 0表失败, 1表成功      */     public int createXMLFile(String filename){        /** 返回操作结果, 0表失败, 1表成功 */        int returnValue = 0;        /** 建立docu ...
1.二维数组可以看成以数组为元素的数组; 2.Java中二维数组的声明和初始化应按照从高维到低维的顺序进行. 实例: 静态初始化: Array2.java: 程序代码 public class Array2 {     public static void main(String args[]) {         int a[][] = {{1,2},{3,4,5,6},{7,8,9}} ;         for(int i=0 ; i <a.length ; i++) {             for(int j=0 ; j<a[i].length ; j++) { ...
package com.ebb365.beans; /** * @(#)SimpleMoneyFormat.java * *金额转换,阿拉伯数字的金额转换为中国传统的形式输出 * @lpxuan * @version 1.00 2008/7/31 */ import java.text.NumberFormat; import java.util.HashMap; import java.lang.StringBuffer; public class SimpleMoneyFormat {     public static final String EMPTY="& ...
select ... from ... where ....  group by ... having ... order by
1:  List遍历 <html:select property="magazineClassid">           <html:option value="-2" >请选择</html:option>           <c:if test="${magazineClassList!=null}">                 <logic:iterate id="item" name="magazineClassList" ...
package com.bb2c.product.web.action; import java.io.File; import java.util.ArrayList; import java.util.List; public class ReadDirector { private static String dir_name = "E:\\pic"; @SuppressWarnings("unchecked") public static void main(String[] args) { ReadDirector rd = ne ...
1:查询  “+” 的作用,关联表可以为空。 select    bp.pur_id,    sum(nvl(bpd.pur_price, 0) * nvl(bpd.order_num, 0)) coin from    tb_purchasing bp,    tb_purchasing_detail bpd where    bp.pur_id = bpd.pur_id(+) group by bp.pur_id 2:  decode判断是否为空,若为空boollog为0,否则为1 1) select  decode(param.param_name,null,0,1) ...
html:multibox 可以实现自动选中。用于替代checkbox.   <html:multibox property="specialChooes" value="aa" />aa   <html:multibox property="specialChooes" value="bb" />bb   <html:multibox property="specialChooes" value="cc" />cc public cl ...
create tablespace bb2c LOGGING DATAFILE 'D:\InstallFile\oracle\product\10.2.0\oradata\orcl\bb2c.dbf' size 500M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL / create user bb2c identified by bb2c default tablespace bb2c temporary tablespace temp; grant dba to bb2c; imp bb2c/bb2c ...
package com.yyh.jfreechart; import java.awt.Color; import java.awt.Font; import java.io.File; import java.io.FileOutputStream; import java.text.DecimalFormat; import java.text.NumberFormat; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart ...
package com.bb2c.common.util.mail; import java.io.File; import java.util.Date; import java.util.Properties; import javax.activation.DataHandler; import javax.activation.FileDataSource; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.Multipart; import javax.mail.Passwor ...
/** * 前面补零 * @param a * @param b * @return */ public static String front(String str,int lenght){ for(;str.length()<lenght;) { str="0"+str; } return str; } /** * 后面补零 * @param a * @param b * @return */ public static String back(String str,int lenght ...
ehcache.xml <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">         <diskStore path="java.io.tmpdir"/>         <cacheManagerEventListenerFactory class="com.bb2c.common.cache.CacheListener ...
<script language="JavaScript"> var HKEY_Root,HKEY_Path,HKEY_Key; HKEY_Root="HKEY_CURRENT_USER"; HKEY_Path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"; //设置网页打印的页眉页脚为空 function Print() { try { var Wsh=new ActiveXObject("WScript.Shell"); HKEY_K ...
Global site tag (gtag.js) - Google Analytics