KickJava   Java API By Example, From Geeks To Geeks.

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


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.ContentLocale;
21
22 /**
23  * <p>DAO for content locale</p>
24  * <p><a HREF="ContentLocaleDAO.java.htm"><i>View Source</i></a></p>
25  *
26  * @author Andrey Grebnev <a HREF="mailto:andrey.grebnev@blandware.com">&lt;andrey.grebnev@blandware.com&gt;</a>
27  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
28  * @version $Revision: 1.11 $ $Date: 2005/07/29 14:12:17 $
29  */

30 public interface ContentLocaleDAO extends DAO {
31
32     // ~ CRUD Methods ================================================================
33

34     /**
35      * Creates new content locale
36      *
37      * @param contentLocale Object that represents what locale must be created
38      */

39     public void createContentLocale(ContentLocale contentLocale);
40
41     /**
42      * Retrieves locale with specified identifier
43      *
44      * @param localeIdentifier Identifier to search by
45      * @return Content locale or null if no content locale with specified ID exists in database
46      */

47     public ContentLocale retrieveContentLocale(String JavaDoc localeIdentifier);
48
49     /**
50      * Updates content locale
51      *
52      * @param contentLocale Content locale to update
53      */

54     public void updateContentLocale(ContentLocale contentLocale);
55
56     /**
57      * Deletes content locale
58      *
59      * @param contentLocale Content locale to delete
60      */

61     public void deleteContentLocale(ContentLocale contentLocale);
62
63     // ~ Additional methods ================================================================
64

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

71     public PartialCollection listContentLocales(QueryInfo queryInfo);
72
73     // ~ Finders ================================================================
74

75     /**
76      * Finds default content locale
77      *
78      * @return Default content locale or null if nothing was found
79      */

80     public ContentLocale findDefaultContentLocale();
81
82 }
83
Popular Tags