📄 idgenerator.java
字号:
package cn.edu.nju.software.sd.torm.util;
import java.sql.Connection;
import cn.edu.nju.software.sd.torm.PersistenceException;
/**
* The IDGenerator is a interface. It has only one method nextID to
* generate the next unique id for the object. The IDGenerator can be
* specified by the user in configure file.
*
* @author YinfeiXU
*
*/
public interface IDGenerator {
/**
* Generate the next unique id for the object.
*
* @param con The database connection.
* @param tableName The name of the target table.
* @param columnName The name of the target column.
* @return The next unique id.
* @throws PersistenceException
*/
public int nextID(Connection con, String tableName, String columnName)throws PersistenceException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -