1 19 20 package org.netbeans.modules.j2ee.persistence.provider; 21 22 import java.util.Collections ; 23 import java.util.Map ; 24 import org.openide.util.NbBundle; 25 26 31 class ToplinkProvider extends Provider{ 32 33 protected ToplinkProvider(){ 34 super("oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider"); 35 } 36 37 public String getDisplayName() { 38 return NbBundle.getMessage(ToplinkProvider.class, "LBL_TopLink"); } 40 41 public String getJdbcUrl() { 42 return "toplink.jdbc.url"; 43 } 44 45 public String getJdbcDriver() { 46 return "toplink.jdbc.driver"; 47 } 48 49 public String getJdbcUsername() { 50 return "toplink.jdbc.user"; 51 } 52 53 public String getJdbcPassword() { 54 return "toplink.jdbc.password"; 55 } 56 57 public String getTableGenerationPropertyName() { 58 return "toplink.ddl-generation"; 59 } 60 61 public String getTableGenerationDropCreateValue() { 62 return "drop-and-create-tables"; 63 } 64 65 public String getTableGenerationCreateValue() { 66 return "create-tables"; 67 } 68 69 public Map getUnresolvedVendorSpecificProperties() { 70 return Collections.EMPTY_MAP; 71 } 72 73 public Map getDefaultVendorSpecificProperties() { 74 return Collections.EMPTY_MAP; 75 } 76 77 78 } 79 | Popular Tags |