KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > common > settings > controllers > CastorSettingsPersister


1 package org.infoglue.common.settings.controllers;
2
3 import java.util.List JavaDoc;
4
5 import org.exolab.castor.jdo.Database;
6 import org.infoglue.cms.entities.management.InfoGlueProperty;
7
8 public interface CastorSettingsPersister
9 {
10     /**
11      * This method returns a Property based on it's primary key inside a transaction
12      * @return Property
13      * @throws Exception
14      */

15
16     public InfoGlueProperty getProperty(Long JavaDoc id, Database database) throws Exception JavaDoc;
17     
18     
19     /**
20      * Gets a list of all events available for a particular day.
21      * @return List of Event
22      * @throws Exception
23      */

24     
25     public InfoGlueProperty getProperty(String JavaDoc nameSpace, String JavaDoc name, Database database) throws Exception JavaDoc;
26
27     
28     /**
29      * This method is used to create a new Property object in the database inside a transaction.
30      */

31     
32     public InfoGlueProperty createProperty(String JavaDoc nameSpace, String JavaDoc name, String JavaDoc value, Database database) throws Exception JavaDoc;
33     
34
35     /**
36      * Updates an property.
37      *
38      * @throws Exception
39      */

40     
41     public void updateProperty(String JavaDoc nameSpace, String JavaDoc name, String JavaDoc value, Database database) throws Exception JavaDoc;
42     
43     
44     /**
45      * Updates an property inside an transaction.
46      *
47      * @throws Exception
48      */

49     
50     public void updateProperty(InfoGlueProperty property, String JavaDoc value, Database database) throws Exception JavaDoc;
51
52 }
53
Popular Tags