KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > persistence > core > ApplicationResourceDAO


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.persistence.core;
17
18 import com.blandware.atleap.common.util.PartialCollection;
19 import com.blandware.atleap.common.util.QueryInfo;
20 import com.blandware.atleap.model.core.ApplicationResource;
21
22 /**
23  * <p>DAO for application resource</p>
24  * <p><a HREF="ApplicationResourceDAO.java.htm"><i>View Source</i></a></p>
25  *
26  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
27  * @version $Revision: 1.2 $ $Date: 2005/07/29 14:12:16 $
28  */

29 public interface ApplicationResourceDAO extends DAO {
30
31     // ~ CRUD Methods ================================================================
32

33     /**
34      * Creates new application resource
35      *
36      * @param applicationResource Value object that represents what application resource must be created
37      */

38     public void createApplicationResource(ApplicationResource applicationResource);
39
40     /**
41      * Retrieves application resource with specified identifier
42      *
43      * @param id ID of resource
44      * @return Application resource or null if no application resource with specified ID exists in database
45      */

46     public ApplicationResource retrieveApplicationResource(ApplicationResource.ApplicationResourceID id);
47
48     /**
49      * Updates application resource
50      *
51      * @param applicationResource application resource to update
52      */

53     public void updateApplicationResource(ApplicationResource applicationResource);
54
55     /**
56      * Deletes application resource
57      *
58      * @param applicationResource application resource to delete
59      */

60     public void deleteApplicationResource(ApplicationResource applicationResource);
61
62     // ~ Additional methods ================================================================
63

64     /**
65      * Retrieves filtered/sorted collection of application resources.
66      *
67      * @param queryInfo Object that contains information about how to filter and sort data
68      * @return Collection of application resources
69      */

70     public PartialCollection listApplicationResources(QueryInfo queryInfo);
71
72     // ~ Finders ================================================================
73

74
75 }
76
Popular Tags