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