⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 twmsectiondao.java

📁 外买系统struts2
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -