1 27 package org.objectweb.jonas_rar.deployment.api; 28 29 import java.io.Serializable ; 30 import java.util.List ; 31 32 import org.objectweb.jonas_rar.deployment.xml.JonasConnectionDefinition; 33 34 39 40 public class JonasConnectionDefinitionDesc implements Serializable { 41 42 45 private String id = null; 46 47 50 private List descriptionList = null; 51 52 55 private String jndiName = null; 56 57 60 private String logEnabled = null; 61 62 65 private String logTopic = null; 66 67 70 private PoolParamsDesc poolParamsDesc = null; 71 72 75 private JdbcConnParamsDesc jdbcConnParamsDesc = null; 76 77 80 private List jonasConfigPropertyList = null; 81 82 83 86 public JonasConnectionDefinitionDesc(JonasConnectionDefinition jcd) { 87 if (jcd != null) { 88 id = jcd.getId(); 89 descriptionList = jcd.getDescriptionList(); 90 jndiName = jcd.getJndiName(); 91 logEnabled = jcd.getLogEnabled(); 92 logTopic = jcd.getLogTopic(); 93 poolParamsDesc = new PoolParamsDesc(jcd.getPoolParams()); 94 jdbcConnParamsDesc = new JdbcConnParamsDesc(jcd.getJdbcConnParams()); 95 jonasConfigPropertyList = Utility.jonasConfigProperty(jcd.getJonasConfigPropertyList()); 96 } 97 } 98 99 103 public String getId() { 104 return id; 105 } 106 107 111 public List getDescriptionList() { 112 return descriptionList; 113 } 114 115 119 public String getJndiName() { 120 return jndiName; 121 } 122 123 127 public String getLogEnabled() { 128 return logEnabled; 129 } 130 131 135 public String getLogTopic() { 136 return logTopic; 137 } 138 139 143 public PoolParamsDesc getPoolParamsDesc() { 144 return poolParamsDesc; 145 } 146 147 151 public JdbcConnParamsDesc getJdbcConnParamsDesc() { 152 return jdbcConnParamsDesc; 153 } 154 155 159 public List getJonasConfigPropertyList() { 160 return jonasConfigPropertyList; 161 } 162 163 } 164 | Popular Tags |