随笔分类 -  java 多线程

摘要:package com.unicom.ucloud.eom.common.util; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.sql.Timestamp; import java.text.DateFormat; import java.text.SimpleDate. 阅读全文
posted @ 2013-03-14 11:48 程序员闫帆 阅读(257) 评论(0) 推荐(0)
摘要:package com.unicom.ucloud.eom.fastProcess.util; import java.beans.BeanInfo; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; im. 阅读全文
posted @ 2013-03-05 10:29 程序员闫帆 阅读(261) 评论(0) 推荐(0)
摘要:Linux启动java程序的通用处理工具#!/bin/bashJAVA_HOME=/usr2/exec_dir/java/jdk1.6.0_27APPHOME=/usr2/exec_dir/manager/newIchk/ExecutionMAIN=com.metarnet.Execution.ExecutionMainCLASSPATH=$APPHOME/binfor i in $APPHOME/LIB/*.jardoCLASSPATH=$CLASSPATH:$idoneecho $CLASSPATH${JAVA_HOME}/bin/java -DOmsExe -cp $CLASSPATH 阅读全文
posted @ 2012-08-31 10:23 程序员闫帆 阅读(176) 评论(0) 推荐(0)
摘要:<!-- 插入一条语句,根据类中存在的数据进行动态解析生成SQL --><select id="select" resultMap="BaseResultMap" parameterType="com.metarnet.Execution.DAO.Model.CeicsExecution"> select <include refid="Base_Column_List" /> from CEICS_EXECUTION <trim prefix="WHERE&qu 阅读全文
posted @ 2012-08-31 10:22 程序员闫帆 阅读(164) 评论(0) 推荐(0)
摘要:package com.metarnet.Execution.util; import java.io.UnsupportedEncodingException; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * String正则表达式匹配 * 闫帆 */ public class StringUtil { /** * 函数名:strToInt 作 用:把字符串转为整型 参 数:s: 字符串型 返回值:整型 **/ public static int strToInt(String s) { int... 阅读全文
posted @ 2012-08-31 10:22 程序员闫帆 阅读(205) 评论(0) 推荐(0)
摘要:/** * 使用方法(传入时间间隔的字符串 如:10:00-14:52,16:30-20:59) */ @SuppressWarnings("deprecation") public static boolean timelag(String FORWARDPERIOD) { Date now=new Date(); ArrayList<Integer> timeTmp; for (String gaptemp: FORWARDPERIOD.split(",")) { timeTmp=new ArrayList<Integer>( 阅读全文
posted @ 2012-08-31 10:21 程序员闫帆 阅读(262) 评论(0) 推荐(0)