KickJava   Java API By Example, From Geeks To Geeks.

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


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.model.core.GlobalProperty;
19
20 import java.util.List JavaDoc;
21
22 /**
23  * <p>DAO for global properties</p>
24  * <p><a HREF="GlobalPropertyDAO.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.3 $ $Date: 2005/08/02 14:53:33 $
28  */

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

33     /**
34      * Creates new global property
35      *
36      * @param globalProperty Value object that represents what property must be created
37      */

38     public void createGlobalProperty(GlobalProperty globalProperty);
39
40     /**
41      * Retrieves global property with specified name
42      *
43      * @param propertyName Name of property
44      * @return Global property or null if no global property with specified name exists in database
45      */

46     public GlobalProperty retrieveGlobalProperty(String JavaDoc propertyName);
47
48     /**
49      * Updates global property
50      *
51      * @param globalProperty Property to update
52      */

53     public void updateGlobalProperty(GlobalProperty globalProperty);
54
55     /**
56      * Deletes global property
57      *
58      * @param globalProperty Property to delete
59      */

60     public void deleteGlobalProperty(GlobalProperty globalProperty);
61
62     // ~ Additional methods ================================================================
63

64     /**
65      * Retrieves list of dynamic global properties. Dynamic global properties are
66      * those that are stored in a persistent storage.
67      *
68      * @return list of dynamic properties
69      */

70     public List JavaDoc listDynamicProperties();
71 }
72
Popular Tags