Class BasicManagedConnectionFactory

    • Constructor Detail

      • BasicManagedConnectionFactory

        public BasicManagedConnectionFactory()
    • Method Detail

      • createConnectionFactory

        public abstract BasicConnectionFactory createConnectionFactory()
                                                                throws javax.resource.ResourceException
        Specified by:
        createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • createConnectionFactory

        public Object createConnectionFactory​(javax.resource.spi.ConnectionManager cm)
                                       throws javax.resource.ResourceException
        Specified by:
        createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • createManagedConnection

        public javax.resource.spi.ManagedConnection createManagedConnection​(Subject arg0,
                                                                            javax.resource.spi.ConnectionRequestInfo arg1)
                                                                     throws javax.resource.ResourceException
        Specified by:
        createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • getLogWriter

        public PrintWriter getLogWriter()
                                 throws javax.resource.ResourceException
        Specified by:
        getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • matchManagedConnections

        public javax.resource.spi.ManagedConnection matchManagedConnections​(Set arg0,
                                                                            Subject arg1,
                                                                            javax.resource.spi.ConnectionRequestInfo arg2)
                                                                     throws javax.resource.ResourceException
        Specified by:
        matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • setLogWriter

        public void setLogWriter​(PrintWriter arg0)
                          throws javax.resource.ResourceException
        Specified by:
        setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • getResourceAdapter

        public javax.resource.spi.ResourceAdapter getResourceAdapter()
        Specified by:
        getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
      • setResourceAdapter

        public void setResourceAdapter​(javax.resource.spi.ResourceAdapter arg0)
                                throws javax.resource.ResourceException
        Specified by:
        setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
        Throws:
        javax.resource.ResourceException
      • getInstance

        public static <T> T getInstance​(Class<T> expectedType,
                                        String className,
                                        Collection ctorObjs,
                                        Class defaultClass)
                                 throws javax.resource.ResourceException
        Throws:
        javax.resource.ResourceException
      • getInvalidConnections

        public Set<BasicManagedConnection> getInvalidConnections​(Set arg0)
                                                          throws javax.resource.ResourceException
        Specified by:
        getInvalidConnections in interface javax.resource.spi.ValidatingManagedConnectionFactory
        Throws:
        javax.resource.ResourceException
      • checkEquals

        protected static boolean checkEquals​(Object left,
                                             Object right)