Class JBossWrapper

    • Constructor Detail

      • JBossWrapper

        public JBossWrapper()
        Constructor
    • Method Detail

      • isWrapperFor

        public boolean isWrapperFor​(Class<?> iface)
                             throws SQLException
        Is a wrapper for
        Parameters:
        iface - The interface
        Returns:
        True if wrapper; false otherwise
        Throws:
        SQLException - Thrown if an error occurs
      • unwrap

        public <T> T unwrap​(Class<T> iface)
                     throws SQLException
        Unwrap
        Type Parameters:
        T - the type
        Parameters:
        iface - The interface
        Returns:
        The object
        Throws:
        SQLException - Thrown if an error occurs
      • getWrappedObject

        protected Object getWrappedObject()
                                   throws SQLException
        Get the wrapped object - override in sub-classes
        Returns:
        The object
        Throws:
        SQLException - Thrown if an error occurs