⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idgenerator.java

📁 软件设计课做的一个类似Hibernate的O/R Mapping的框架
💻 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 + -