4748495051525354
public void close() throws DBException { try { getNativeConnection().close(); } catch (ORMException e) { throw new DBException(e); } }
979899100101102103104105
getPersistence().update(entity, false); obj.setNew(false); updateManyReference(obj); calcFunctionField(obj); } catch (SystemException e) { throw new DBException(e); } return obj; }
110111112113114115116117118
setEntityAttributes(entity, obj); getPersistence().update(entity, true); updateManyReference(obj); calcFunctionField(obj); } catch (SystemException e) { throw new DBException(e); } return obj; }
119120121122123124125126
public void remove(Model obj) throws DBException { try { getPersistence().remove(obj.getPrimaryKey()); } catch (Exception e) { throw new DBException(e); } }
1213141516171819
public DBConnection getConnection() throws DBException { try { return new LiferayConnection(getSessionFactory().openSession()); } catch (Exception e) { throw new DBException(e); } }
57585960616263646566
qpos.add(item); } log.debug(sql + "\n" + params); query.executeUpdate(); } catch (Exception e) { throw new DBException(e); } finally { closeConnection(dbConnection); } }
8788899091929394959697
// } // } // } // System.out.println(); } catch (Exception e) { throw new DBException(e); } finally { closeConnection(dbConnection); } return items;
676869707172737475767778
try { obj = cls.newInstance(); obj.setModelClass(this); } catch (InstantiationException e) { e.printStackTrace(); throw new DBException(e.getMessage()); } catch (IllegalAccessException e) { e.printStackTrace(); throw new DBException(e.getMessage()); } return (T) obj; }
5960616263646566
public Object getValue(Model obj) throws DBException { try { Method method = obj.getClass().getMethod(methodName); return method.invoke(obj); } catch (Exception e) { throw new DBException(e); } }