Rev 1538 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1538 | Rev 1791 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | import org.hibernate.criterion.Order; |
5 | import org.hibernate.criterion.Order; |
6 | import pt.estgp.estgweb.domain.JobServiceTaskScheduler; |
6 | import pt.estgp.estgweb.domain.JobServiceTaskScheduler; |
7 | 7 | ||
8 | import java.util.List; |
8 | import java.util.List; |
9 | 9 | ||
- | 10 | import static org.hibernate.criterion.Restrictions.eq; |
|
- | 11 | ||
10 | /** |
12 | /** |
11 | * @author Jorge Machado |
13 | * @author Jorge Machado |
12 | * @date 28/Fev/2008 |
14 | * @date 28/Fev/2008 |
13 | * @time 2:51:06 |
15 | * @time 2:51:06 |
14 | * @see pt.estgp.estgweb.domain.dao.impl |
16 | * @see pt.estgp.estgweb.domain.dao.impl |
Line 31... | Line 33... | ||
31 | } |
33 | } |
32 | catch (HibernateException e) |
34 | catch (HibernateException e) |
33 | { |
35 | { |
34 | throw new DaoException(e); |
36 | throw new DaoException(e); |
35 | } |
37 | } |
- | 38 | } |
|
- | 39 | ||
- | 40 | public List<JobServiceTaskScheduler> findFilteredByClassService(1.5.0/docs/api/java/lang/String.html">String classTarget) |
|
- | 41 | { |
|
- | 42 | try |
|
- | 43 | { |
|
- | 44 | return createCriteria(). |
|
- | 45 | add(eq("targetService",classTarget)) |
|
- | 46 | .addOrder(Order.asc("description")).list(); |
|
- | 47 | } |
|
- | 48 | catch (HibernateException e) |
|
- | 49 | { |
|
- | 50 | throw new DaoException(e); |
|
- | 51 | } |
|
36 | } |
52 | } |
37 | 53 | ||
38 | 54 | ||
39 | 55 | ||
40 | } |
56 | } |