twmsectiondao.java

来自「外买系统struts2」· Java 代码 · 共 71 行

JAVA
71
字号
package com.waimai.dao;

import java.util.List;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.waimai.domain.TWmSection;

/**
 * Data access object (DAO) for domain model class TWmSection.
 * @see com.waimai.domain.TWmSection
 * @author MyEclipse - Hibernate Tools
 */
public class TWmSectionDAO extends AbstractDao {

    private static final Log log = LogFactory.getLog(TWmSectionDAO.class);

	//property constants
	public static final String FPROVINCE = "fprovince";
	public static final String FCITY = "fcity";
	public static final String FSECTION = "fsection";
	public static final String FROAD = "froad";
	public static final String FDETAIL = "fdetail";
	public static final String FBUS_LINE = "fbusLine";
	public static final String FPILOTING = "fpiloting";
	public static final String FCROSS_SECTION_ID = "fcrossSectionId";

	protected void initDao() {
		//do nothing
	}

	public List findByFprovince(Object fprovince) {
		return findByProperty(FPROVINCE, fprovince);
	}
	
	public List findByFcity(Object fcity) {
		return findByProperty(FCITY, fcity);
	}
	
	public List findByFsection(Object fsection) {
		return findByProperty(FSECTION, fsection);
	}
	
	public List findByFroad(Object froad) {
		return findByProperty(FROAD, froad);
	}
	
	public List findByFdetail(Object fdetail) {
		return findByProperty(FDETAIL, fdetail);
	}
	
	public List findByFbusLine(Object fbusLine) {
		return findByProperty(FBUS_LINE, fbusLine);
	}
	
	public List findByFpiloting(Object fpiloting) {
		return findByProperty(FPILOTING, fpiloting);
	}
	
	public List findByFcrossSectionId(Object fcrossSectionId) {
		return findByProperty(FCROSS_SECTION_ID, fcrossSectionId);
	}

	public Dao getFromApplicationContext(ApplicationContext ctx) {
    	return (TWmSectionDAO) ctx.getBean("TWmSectionDAO");
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?