1314151617181920212223
PartakeConnection con = dbService.getConnection(); try { return doExecute(con, dbService.getDAOs()); } finally { con.invalidate(); } } protected abstract T doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException; }
2425262728293031323334
} finally { try { if (con.isInTransaction()) con.rollback(); } finally { con.invalidate(); } } } protected abstract T doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException;