001    package com.mockrunner.mock.connector.spi;
002    
003    import javax.resource.ResourceException;
004    import javax.resource.spi.ManagedConnectionMetaData;
005    
006    /**
007     * Mock implementation of <code>ManagedConnectionMetaData</code>.
008     */
009    public class MockManagedConnectionMetaData implements ManagedConnectionMetaData 
010    {
011        private String eisProductName = "Mockrunner";
012        private String eisProductVersion = "";
013        private int maxConnections = 1;
014        private String userName = "";
015    
016        public String getEISProductName() throws ResourceException
017        {
018            return eisProductName;
019        }
020    
021        public String getEISProductVersion() throws ResourceException
022        {
023            return eisProductVersion;
024        }
025    
026        public int getMaxConnections() throws ResourceException
027        {
028            return maxConnections;
029        }
030    
031        public String getUserName() throws ResourceException
032        {
033            return userName;
034        }
035    
036        public void setEisProductName(String eisProductName)
037        {
038            this.eisProductName = eisProductName;
039        }
040    
041        public void setEisProductVersion(String eisProductVersion)
042        {
043            this.eisProductVersion = eisProductVersion;
044        }
045    
046        public void setMaxConnections(int maxConnections)
047        {
048            this.maxConnections = maxConnections;
049        }
050    
051        public void setUserName(String userName)
052        {
053            this.userName = userName;
054        }
055    }