accountinfobizimpl.java

来自「基于Struts+Hibernate+Spring+Ajax技术开发一个简单的影」· Java 代码 · 共 38 行

JAVA
38
字号
package com.accp.biz.impl;


import java.util.List;

import com.accp.biz.AccountinfoBiz;
import com.accp.dao.AccountinfoDao;
import com.accp.entity.Accountinfo;

public class AccountinfoBizImpl implements AccountinfoBiz {
	private AccountinfoDao accountinfoDao;

	public AccountinfoDao getAccountinfoDao() {
		return accountinfoDao;
	}

	public void setAccountinfoDao(AccountinfoDao accountinfoDao) {
		this.accountinfoDao = accountinfoDao;
	}

	@Override
	public Accountinfo getAccountinfo(Accountinfo accountinfo) {
		// TODO Auto-generated method stub
		Accountinfo info = null;
		List list = accountinfoDao.getAccountinfo(accountinfo);
		try {
			if(list.size() != 0) {
				info = (Accountinfo)list.get(0);
			}
		} catch (RuntimeException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return info;
	}
	
}

⌨️ 快捷键说明

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