KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > sql > database > hibernate > service > DefaultConfiguationManager


1 package org.jahia.clipbuilder.sql.database.hibernate.service;
2 import org.jahia.clipbuilder.sql.database.hibernate.dao.*;
3 import org.jahia.clipbuilder.sql.database.hibernate.model.*;
4
5 /**
6  * Service: acces DefaultConfigurationDAO methods
7  *
8  *@author ktlili
9  */

10 public class DefaultConfiguationManager {
11     private DefaultConfigurationDAO dao;
12
13
14     /**
15      * Sets the Dao attribute of the DefaultConfiguationManager object
16      *
17      *@param dao The new Dao value
18      */

19     public void setDao(DefaultConfigurationDAO dao) {
20         this.dao = dao;
21     }
22
23
24     /**
25      * Gets the Dao attribute of the DefaultConfiguationManager object
26      *
27      *@return The Dao value
28      */

29     public DefaultConfigurationDAO getDao() {
30         return dao;
31     }
32
33
34     /**
35      * Gets the DefaultConfiguration attribute of the DefaultConfiguationManager
36      * object
37      *
38      *@return The DefaultConfiguration value
39      */

40     public DatabaseConfiguration getDefaultConfiguration() {
41         return dao.getDefaultConfiguration();
42     }
43
44
45     /**
46      * Save Or update the default configuration
47      *
48      *@param conf Description of Parameter
49      */

50     public void saveOrUpdateDefaultConfiguration(DatabaseConfiguration conf) {
51         dao.saveOrUpdateDefaultConfiguration(conf);
52     }
53
54 }
55
Popular Tags