HibernateUtil dh = new HibernateUtil(Clickstream.class);
Clickstream clickStream = new Clickstream();
try {
dh.setQuery("from clickstream in class " + Clickstream.class.getName() + " where clickstream_id = ?");
dh.setParam(Integer.parseInt(clickstreamId));
clickStream = (Clickstream) dh.load();
} catch (NumberFormatException e) {
Logger.error(ClickstreamFactory.class, e.getMessage(), e);
} catch (DotHibernateException e) {
Logger.error(ClickstreamFactory.class, "getClickstream failed:" + e, e);
}