📄 task.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package ActiveObject.core;import ActiveObject.exception.ObjectAnalysisException;import ActiveObject.exception.ObjectNotActive;import java.lang.reflect.InvocationTargetException;import java.sql.SQLException;/** * * @author tanjiazhang */public class Task { Object delete(ActiveRecord record) throws ObjectAnalysisException, ObjectNotActive, SQLException { return null; } /** * 保存一个对象,但不会令该对象成为持久化对象 * @param record * @return * @throws java.lang.IllegalAccessException * @throws java.lang.IllegalArgumentException * @throws java.lang.reflect.InvocationTargetException * @throws java.sql.SQLException */ Object save(ActiveRecord record) throws ObjectAnalysisException, SQLException { return null; } Object update(ActiveRecord record) throws ObjectAnalysisException, ObjectNotActive, SQLException { return null; } /** * 构造Delete PreparedStatement映射的键名 * @param record * @return */ protected static final String createDeleteKey(ActiveRecord record) { return "d"+record.getClass().getSimpleName(); } /** * 构造Save PreparedStatement映射的键名 * @param record * @return */ protected static final String createSaveKey(ActiveRecord record) { return "s"+record.getClass().getSimpleName(); } /** * 构造Update PreparedStatement映射的键名 * @param record * @return */ protected static final String createUpdateKey(ActiveRecord record) { return "u"+record.getClass().getSimpleName(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -