001 /* 002 @license.text@ 003 */ 004 package biz.hammurapi.sql; 005 006 import java.sql.Connection; 007 import java.sql.SQLException; 008 009 /** 010 * @author Pavel Vlasov 011 * @revision $Revision$ 012 */ 013 public interface IdentityGenerator extends IdentityManager { 014 015 /** 016 * Generates next identity for given object name. 017 * @param con 018 * @param name 019 * @return 020 */ 021 int generate(Connection con, String name) throws SQLException; 022 }