bean之后创建dao

简介: package com.sxt.dao;import java.util.List;import com.

package com.sxt.dao;

import java.util.List;

import com.sxt.bean.Goods;
import com.sxt.util.PageBean;

/**
* 商品dao
*
* @author Administrator
*
*/
public interface GoodsDao {
/**
* 综合查询
*
* @param gname
* @param pStart
* @param pEnd
* @param dStart
* @param dEnd
* @param gstatus
* @return
* @throws Exception
*/
public PageBean findGoods(String gname, String pStart, String pEnd,
String dStart, String dEnd, String gstatus,int page,int rows) throws Exception;

/**
 * 
 * @param gid
 * @return
 * @throws Exception
 */
public boolean delGoods(String gid) throws Exception;

/**
 * 保存物品信息
 * @param g
 * @return
 * @throws Exception
 */
public boolean saveGoods(Goods g) throws Exception;

/**
 * 通过商品id查询商品信息
 * @param gid
 * @return
 * @throws Exception
 */
public Goods findGoodsById(String gid) throws Exception;

}

相关文章
|
11月前
|
XML Java 数据格式
基于注解管理bean~
基于注解管理bean~
|
3月前
|
Java Spring 容器
spring如何进行依赖注入,通过set方法把Dao注入到serves
spring如何进行依赖注入,通过set方法把Dao注入到serves
|
4月前
|
Java Spring 容器
同一接口有多个实现类,怎么来注入一个指定的实现?@Resource、@Autowired、@Qualifier
同一接口有多个实现类,怎么来注入一个指定的实现?@Resource、@Autowired、@Qualifier
|
4月前
|
XML Java 数据格式
Spring Bean的定义(含创建Bean的三种方式)
Spring Bean的定义(含创建Bean的三种方式)
|
4月前
|
Java 容器 Spring
Javaweb之SpringBootWeb案例之 Bean管理的获取Bean详细的解析
Javaweb之SpringBootWeb案例之 Bean管理的获取Bean详细的解析
27 0
|
4月前
|
Java Spring 容器
ServiceLocatorFactoryBean获取Bean方法
在上述示例中,`MyService`是要获取的具体Bean的类型。通过配置 `ServiceLocatorFactoryBean`,定义 `ServiceLocator`接口和实现类,然后通过获取 `MyServiceLocator`实例并调用方法,可以从Spring容器中获取特定类型的Bean。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
73 0
|
4月前
|
Java Spring
使用JDBCTemplate实现与Spring结合,方法公用 ——接口(BaseDao)
使用JDBCTemplate实现与Spring结合,方法公用 ——接口(BaseDao)
|
Java Spring 容器
springboot 静态方法中使用@Autowired注入配置和Bean
springboot 静态方法中使用@Autowired注入配置和Bean
|
XML Java 数据格式
配置bean的4种情况
只有聪明人才能看见的摘要~( ̄▽ ̄~)~
73 2
|
XML 设计模式 Java
什么是bean
什么是bean
392 0