• λ我爱Aspx >> Asp.Net >> jello框架快速入门
  • jello框架快速入门

  • :aspxer  Դ:csdn  :2007-7-6 2:50:21  ؼ:
  • 继承框架业务支持类Business生成业务类ProductService:

    package com.figcn.simple.biz;

    import java.util.List;

    import com.figcn.jello.biz.Business;

    import java.util.Map;

    import com.figcn.jello.data.Linker;

    import com.figcn.jello.data.Model;

    public class ProductService extends Business {

    public static ProductService getInstance() {

    return new ProductService();

    }

    public List<Map> getList() {

    return getTable("t_product");

    }

    public void save(Map map) {

    Model row = new Model("t_product");

    row.setData(map);

    save(row);

    }

    public Map get(String id) {

    return getRow("t_product", "product_id", Integer.parseInt(id));

    }

    public void delete(String id) {

    delete("t_product", "product_id", Integer.parseInt(id));

    }

    public Object getRowCount()

    Ҷƪл˵?
  • һƪ语法错误,请高人指点 还有些小问题 马上结贴
    һƪjava连接池的问题