src/com/pure/domain/logic/impl/MemberFacadeImpl.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.pure.domain.logic.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.pure.dao.MemberDAO;
import com.pure.domain.Member;
import com.pure.domain.logic.MemberFacade;
import com.pure.page.Page;

public class MemberFacadeImpl implements MemberFacade {
	private MemberDAO memberDao;

	public void insertMember(Member member) throws DataAccessException {
		this.getMemberDao().insertMember(member);
	}

	public List getMemberList(Page page) {
		return this.getMemberDao().getMemberList(page);
	}

	public Member getMember(int id) {
		return this.getMemberDao().getMember(id);
	}

	/**
	 * 为解决DWR方法不能重载的问题 Warning: overloaded methods are not recommended
	 * Javascript does not support overloaded methods, so the javascript file
	 * generated from this class will contain two methods the second of which
	 * will replace the first. This is probably not what you wanted.
	 * 
	 * It is best to avoid overloaded methods when using DWR.
	 * 
	 * Java 5 presents an interesting challenge for finding overloaded methods
	 * and an issue to be aware of when using generics. From Java 5 on,
	 * co-variant return types are allowed, but the Class.getMethods() function
	 * will return 2 methods, if you are making use of this feature, which can
	 * lead to false positives when detecting overloaded methods.
	 * 
	 * It will be obvious to you if you really do have overloaded methods, but
	 * it is worth being aware of this small limitation in DWR 1.1 with Java 5.
	 * Calling the method will work just fine, but this page may incorrectly
	 * report an overloaded method.
	 * 
	 */
	public Member getMemberForName(String username) {
		return this.getMemberDao().getMember(username);
	}

	public int getTotal(String hql) {
		return this.getMemberDao().getTotal(hql);
	}

	public void delMember(int id) {
		this.getMemberDao().delMember(id);

	}

	public void updateMember(Member member) throws DataAccessException {
后面还有 16 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。