protected List getData() {
List list = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
Query q = null;
String hql = "from WqDcShujuVpnServiceInfo shuzuvpnservice where 1=1"
q = session.createQuery(hql);
q = setParameter(q);
list = q.list();
tx.commit();
} catch (HibernateException e) {
if (tx != null)
tx.rollback();
throw e;
} finally {
try {
HibernateUtil.closeSession();
} catch (HibernateException e1) {
e1.printStackTrace();
}
}
return list;
}