KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > snapper > business > LanguageImpl


1 /*
2  * snapper
3  *
4  * Enhydra super-servlet business object
5  *
6  */

7
8 package org.enhydra.snapper.business;
9
10 // Enhydra SuperServlet specification imports
11
import org.enhydra.snapper.spec.*;
12 import org.enhydra.snapper.data.*;
13
14 import com.lutris.appserver.server.sql.DatabaseManagerException;
15 import com.lutris.dods.builder.generator.query.DataObjectException;
16
17
18
19
20 // Standard imports
21
//import java.text.DateFormat;
22

23 public class LanguageImpl implements Language {
24     protected LanguageDO languageDO = null;
25     
26     public LanguageImpl(){
27     }
28     
29     protected LanguageImpl(LanguageDO language) throws Exception JavaDoc {
30         this.languageDO = language;
31     }
32     
33     public String JavaDoc getName()
34         throws Exception JavaDoc {
35             try {
36                 return languageDO.getNAME();
37             } catch(DataObjectException ex) {
38                 throw new Exception JavaDoc("Error getting language's name", ex);
39             }
40         
41     }
42     
43     public String JavaDoc getHandle() throws Exception JavaDoc {
44     try {
45         return languageDO.get_Handle();
46     } catch(DatabaseManagerException ex) {
47         throw new Exception JavaDoc("Error getting language's handle", ex);
48     }
49 }
50     
51 }
52
Popular Tags