package org.jboss.resource.metadata;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Locale;
import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap;
public class ConnectionDefinitionMetaData extends ConfigPropertyMetaDataContainer
{
private ConnectorMetaData cmd;
private String managedConnectionFactoryClass;
private String connectionFactoryInterfaceClass;
private String connectionFactoryImplementationClass;
private String connectionInterfaceClass;
private String connectionImplementationClass;
public ConnectionDefinitionMetaData(ConnectorMetaData cmd)
{
this.cmd = cmd;
}
public ConnectorMetaData getConnector()
{
return cmd;
}
public String getManagedConnectionFactoryClass()
{
return managedConnectionFactoryClass;
}
public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
{
this.managedConnectionFactoryClass = managedConnectionFactoryClass;
}
public String getConnectionFactoryInterfaceClass()
{
return connectionFactoryInterfaceClass;
}
public void setConnectionFactoryInterfaceClass(String connectionFactoryInterfaceClass)
{
this.connectionFactoryInterfaceClass = connectionFactoryInterfaceClass;
}
public String getConnectionFactoryImplementationClass()
{
return connectionFactoryImplementationClass;
}
public void setConnectionFactoryImplementationClass(String connectionFactoryImplementationClass)
{
this.connectionFactoryImplementationClass = connectionFactoryImplementationClass;
}
public String getConnectionInterfaceClass()
{
return connectionInterfaceClass;
}
public void setConnectionInterfaceClass(String connectionInterfaceClass)
{
this.connectionInterfaceClass = connectionInterfaceClass;
}
public String getConnectionImplementationClass()
{
return connectionImplementationClass;
}
public void setConnectionImplementationClass(String connectionImplementationClass)
{
this.connectionImplementationClass = connectionImplementationClass;
}
public String toString()
{
StringBuffer buffer = new StringBuffer();
buffer.append("ConnectionDefinitionMetaData").append('@');
buffer.append(Integer.toHexString(System.identityHashCode(this)));
buffer.append("[managedConnectionFactoryClass=").append(managedConnectionFactoryClass);
buffer.append(" connectionFactoryInterfaceClass=").append(connectionFactoryInterfaceClass);
buffer.append(" connectionFactoryImplementationClass=").append(connectionFactoryImplementationClass);
buffer.append(" connectionInterfaceClass=").append(connectionInterfaceClass);
buffer.append(" connectionImplementationClass=").append(connectionImplementationClass);
buffer.append(" properties=").append(getProperties());
buffer.append(']');
return buffer.toString();
}
}