Line | |
---|
1 | package com.ether.dao; |
---|
2 | |
---|
3 | import com.ether.PersistenceException; |
---|
4 | import com.ether.tapas.Observatory; |
---|
5 | import org.jetbrains.annotations.NotNull; |
---|
6 | import org.jetbrains.annotations.Nullable; |
---|
7 | |
---|
8 | import java.util.List; |
---|
9 | |
---|
10 | /** |
---|
11 | * @author vmipsl |
---|
12 | * @date may 2011 |
---|
13 | * Example for a DAO |
---|
14 | */ |
---|
15 | public interface ObservatoryDAO |
---|
16 | extends DomainAccessObject<Observatory, Integer> |
---|
17 | { |
---|
18 | |
---|
19 | @NotNull |
---|
20 | List<Observatory> getAllObservatories() throws PersistenceException; |
---|
21 | |
---|
22 | @Nullable |
---|
23 | Observatory getObservatoryById(@NotNull final long id) throws PersistenceException; |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.