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 IdentityRetriever extends IdentityManager {
014            
015            /**
016             * Retrieves last identiry generated by given connection.
017             * @param con
018             * @return
019             */
020            int retrieve(Connection con) throws SQLException;
021    }