idgenerator.java

来自「Persistence Layer s ebook and source cod」· Java 代码 · 共 27 行

JAVA
27
字号
package pl.sql;

import java.util.*;
import pl.*;

/**
 * Interface for all ID generators.
 *
 * @author: Artem Rudoy
 */
public interface IdGenerator
{
/**
 * Return new ID for the class specified by the classMap parameter.
 *
 * @return new ID for the class specified by the classMap parameter
 * @param classMap class map for which ID is needed
 */
public Object getNewId(pl.map.ClassMap classMap) throws PlException;
/**
 * Init ID generator.
 *
 * @param properties properties for this ID generator
 */
public void init(Properties parameters) throws PlException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?