- 浏览: 52269 次
- 性别:
- 来自: 广州
最新评论
-
jlmak:
你应该再写一篇你的2012~
关于一些自己的2011 -
wuguoyong:
我从事工作一年来,来来去去用过了Spring mvc觉得Spr ...
关于一些自己的2011 -
wuguoyong:
维C说的不错!赞!
关于一些自己的2011
文章列表
这个是js声明部分
<script type="text/javascript" language="javascript">
var count = 0 ; //商品总数
var tc=0; //倒计时间累加
function setCount(c){
count = c;
}
function getTimeString(time, i) {
t ...
package com.jme.help.gwt;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import com.google.gwt.user.client.rpc.Incompatibl ...
<script type="text/javascript" language="javascript">
function checkLoginForm() {
var userName = $("#loginId").val();
var userPassword = $("#password").val();
var orgId = $("#orgId").val();
...
<script type="text/javascript">
function sendReturnedPurchaseApply(){
var orderNm = $("#orderNm").val();
var messageCont = $("#messageCont").val();
var userId = $("#sysUserId").val();
if(orderNm ...
import cn.org.rapid_framework.beanutils.BeanUtils;
import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;
import com.iloosen.imall.commons.util.ConvertRegisterHelper;
import com.iloosen.imall.commons.util.PageRequestFactory;
import org.springframework.ui.ModelMa ...
Service基本功能封装
- 博客分类:
- Spring
import com.iloosen.imall.commons.util.BusinessException;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.List;
@Transactional(readOnly = true)
public abstract class BaseEntityManager <E,PK extends Serializable>{
// privat ...
import org.apache.log4j.Logger;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.security.AccessController;
import java.security.PrivilegedAction;
public class ObjectCopyUtils {
private static Logger logger = Logger.getLogger(ObjectCopyUtils.class.getName ...
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.security.MessageDigest;
/**
*
*/
public final class MD5 {
private static Logger logger = LoggerFactory.getLogger(MD5.class);
private MD5(){}
public static String convert(String s){
char hexChars[] = { ...
自定义列外连接查询语句
- 博客分类:
- sql
select t.name, minNum as '800-2000', maxNum as '2001-5000' from
(select test.name,count(*) as minNum from test where category_id between 800 and 2000 group by test.name) t
join
(select test.name,count(*) as maxNum from test where category_id between 2001 and 5000 group by test.name) t1
on t.name ...
import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageUtils;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Example;
import org.hibernate.criterion.Order;
import org.hibernate. ...
MATT在他的博客中发表了一篇介绍动态创建SQL语句的博文
。
在文中,他讲到了自己在使用IN操作符进行数据库查询的时候遇到的问题:根据外部传入的集合个数决定IN操作符中占位符“?”的个数。
MATT给出了他的解决办法:
import java.sql.Connection
import java.sql.DriverManager
import java.sql.SQLException
def list = getResult()
Connection connection = DriverManager.getConnection ...