System.arraycopy(data, data.length - maxSize, reducedData, 0, maxSize);
_sqlHistory.setData(reducedData);
}
}
XMLBeanWriter wtr = new XMLBeanWriter(_sqlHistory);
wtr.save(new ApplicationFiles().getUserSQLHistoryFile());
}
catch (Exception ex)
{
// i18n[Application.error.savesqlhistory=Unable to write SQL queries to persistant storage.]
s_log.error(s_stringMgr.getString("Application.error.savesqlhistory"), ex);