userdao.java
来自「webwork in action 下载。」· Java 代码 · 共 33 行
JAVA
33 行
package org.hibernate.auction.dao;import org.hibernate.auction.model.User;import org.hibernate.auction.exceptions.InfrastructureException;import java.util.Collection;/** * UserDAO * * @author Jason Carreira <jcarreira@eplus.com> */public interface UserDAO { User getUserById(Long userId, boolean lock) throws InfrastructureException; Collection findAll() throws InfrastructureException; Collection findByExample(User exampleUser) throws InfrastructureException; User findByCredentials(String username, String password); User findByUsername(String username); void makePersistent(User user) throws InfrastructureException; void makeTransient(User user) throws InfrastructureException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?