data.indexVolumeId = DbUtil.getUnsignedTinyIntAsShort(rs, 1);
data.indexVolumeId = rs.getShort(1);
    public static void getMailboxVolumeInfo(Connection conn, Mailbox.MailboxData data) throws ServiceException {        PreparedStatement stmt = null;        ResultSet rs = null;        try {            stmt = conn.prepareStatement(                    "SELECT index_volume_id FROM mailbox WHERE id = ?");            stmt.setInt(1, data.id);            rs = stmt.executeQuery();            if (!rs.next())                throw MailServiceException.NO_SUCH_MBOX(data.id);            data.indexVolumeId = DbUtil.getUnsignedTinyIntAsShort(rs, 1);        } catch (SQLException e) {            throw ServiceException.FAILURE("getting mailbox volume info", e);        } finally {            DbPool.closeResults(rs);            DbPool.closeStatement(stmt);        }    }