dataaccess.java
来自「《Developing Applications with Java and U」· Java 代码 · 共 26 行
JAVA
26 行
package com.jacksonreed;/** * This interface is implemented by all data access objects (DAO) * in support of the basic CRUD services of the system. In Remulak, * the primary key will always be a single integer field (surrogate keys) * and findByName is a single string. * * @author Paul Reed, Jackson-Reed, Inc. <prreed@jacksonreed.com> * @version 1.0 */public interface DataAccess { public void insertObject(Object model) throws DAOAppException, DAODBUpdateException, DAOSysException; public void updateObject(Object model) throws DAOAppException, DAODBUpdateException, DAOSysException; public void deleteObject(Integer id) throws DAOSysException, DAODBUpdateException; public Object findByPrimaryKey(Integer id) throws DAOSysException, DAOFinderException; public Object findByName(String name) throws DAOSysException, DAOFinderException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?