/** * Returns the Code Object for the given code name * * @param PCSession session, the PCSession object for the database to use. * @param String sName, the name of the code to return * @return a Code object for the given code name * @exception java.sql.SQLException */ public Code getCodeForName(PCSession session, String sName) throws SQLException { DBConnection dbcon = getDatabaseManager().requestConnection(session.getModelName()); Code code = DBCode.getCodeForName(dbcon, sName); getDatabaseManager().releaseConnection(session.getModelName(), dbcon); return code; }