1 22 package org.jboss.resource.metadata; 23 24 30 public class ConnectionDefinitionMetaData extends ConfigPropertyMetaDataContainer 31 { 32 private static final long serialVersionUID = -138227135002730221L; 33 34 35 private ConnectorMetaData cmd; 36 37 38 private String managedConnectionFactoryClass; 39 40 41 private String connectionFactoryInterfaceClass; 42 43 44 private String connectionFactoryImplementationClass; 45 46 47 private String connectionInterfaceClass; 48 49 50 private String connectionImplementationClass; 51 52 public ConnectionDefinitionMetaData(ConnectorMetaData cmd) 53 { 54 this.cmd = cmd; 55 } 56 57 62 public ConnectorMetaData getConnector() 63 { 64 return cmd; 65 } 66 67 72 public String getManagedConnectionFactoryClass() 73 { 74 return managedConnectionFactoryClass; 75 } 76 77 82 public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass) 83 { 84 this.managedConnectionFactoryClass = managedConnectionFactoryClass; 85 } 86 87 92 public String getConnectionFactoryInterfaceClass() 93 { 94 return connectionFactoryInterfaceClass; 95 } 96 97 102 public void setConnectionFactoryInterfaceClass(String connectionFactoryInterfaceClass) 103 { 104 this.connectionFactoryInterfaceClass = connectionFactoryInterfaceClass; 105 } 106 107 112 public String getConnectionFactoryImplementationClass() 113 { 114 return connectionFactoryImplementationClass; 115 } 116 117 122 public void setConnectionFactoryImplementationClass(String connectionFactoryImplementationClass) 123 { 124 this.connectionFactoryImplementationClass = connectionFactoryImplementationClass; 125 } 126 127 132 public String getConnectionInterfaceClass() 133 { 134 return connectionInterfaceClass; 135 } 136 137 142 public void setConnectionInterfaceClass(String connectionInterfaceClass) 143 { 144 this.connectionInterfaceClass = connectionInterfaceClass; 145 } 146 147 152 public String getConnectionImplementationClass() 153 { 154 return connectionImplementationClass; 155 } 156 157 162 public void setConnectionImplementationClass(String connectionImplementationClass) 163 { 164 this.connectionImplementationClass = connectionImplementationClass; 165 } 166 167 public String toString() 168 { 169 StringBuffer buffer = new StringBuffer (); 170 buffer.append("ConnectionDefinitionMetaData").append('@'); 171 buffer.append(Integer.toHexString(System.identityHashCode(this))); 172 buffer.append("[managedConnectionFactoryClass=").append(managedConnectionFactoryClass); 173 buffer.append(" connectionFactoryInterfaceClass=").append(connectionFactoryInterfaceClass); 174 buffer.append(" connectionFactoryImplementationClass=").append(connectionFactoryImplementationClass); 175 buffer.append(" connectionInterfaceClass=").append(connectionInterfaceClass); 176 buffer.append(" connectionImplementationClass=").append(connectionImplementationClass); 177 buffer.append(" properties=").append(getProperties()); 178 buffer.append(']'); 179 return buffer.toString(); 180 } 181 } 182 | Popular Tags |