Class ManagedConnectionMetaDataImpl

  • All Implemented Interfaces:
    jakarta.resource.spi.ManagedConnectionMetaData

    public class ManagedConnectionMetaDataImpl
    extends Object
    implements jakarta.resource.spi.ManagedConnectionMetaData
    A ManagedConnectionMetaDataImpl instance provides information related to a managed connection.
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • userName

        private String userName
        Name of the user associated with the managed connection.
    • Constructor Detail

      • ManagedConnectionMetaDataImpl

        public ManagedConnectionMetaDataImpl​(String userName)
        Constructs a ManagedConnectionMetaDataImpl instance.
    • Method Detail

      • getEISProductName

        public String getEISProductName()
                                 throws jakarta.resource.ResourceException
        Returns JORAM's name.
        Specified by:
        getEISProductName in interface jakarta.resource.spi.ManagedConnectionMetaData
        Throws:
        jakarta.resource.ResourceException
      • getEISProductVersion

        public String getEISProductVersion()
                                    throws jakarta.resource.ResourceException
        Returns the current JORAM release number.
        Specified by:
        getEISProductVersion in interface jakarta.resource.spi.ManagedConnectionMetaData
        Throws:
        jakarta.resource.ResourceException
      • getMaxConnections

        public int getMaxConnections()
                              throws jakarta.resource.ResourceException
        Returns 0 as JORAM as no upper limit of active connections.
        Specified by:
        getMaxConnections in interface jakarta.resource.spi.ManagedConnectionMetaData
        Throws:
        jakarta.resource.ResourceException
      • getUserName

        public String getUserName()
                           throws jakarta.resource.ResourceException
        Returns the name of the user associated with the managed connection.
        Specified by:
        getUserName in interface jakarta.resource.spi.ManagedConnectionMetaData
        Throws:
        jakarta.resource.ResourceException