Module org.jooq
Package org.jooq.impl

Class DefaultCloseableDSLContext

    • Method Detail

      • configuration

        public final Configuration configuration()
        Description copied from interface: Scope
        The configuration of the current scope.
        Specified by:
        configuration in interface Scope
      • settings

        public final Settings settings()
        Description copied from interface: Scope
        The settings wrapped by this context.

        This method is a convenient way of accessing configuration().settings().

        Specified by:
        settings in interface Scope
      • dialect

        public final SQLDialect dialect()
        Description copied from interface: Scope
        The SQLDialect wrapped by this context.

        This method is a convenient way of accessing configuration().dialect().

        Specified by:
        dialect in interface Scope
      • family

        public final SQLDialect family()
        Description copied from interface: Scope
        The SQLDialect.family() wrapped by this context.

        This method is a convenient way of accessing configuration().family().

        Specified by:
        family in interface Scope
      • data

        public final Map<Object,​Object> data()
        Description copied from interface: Scope
        Get all custom data from this Scope.

        This is custom data that was previously set to the context using Scope.data(Object, Object). Use custom data if you want to pass data to QueryPart objects for a given Scope.

        Specified by:
        data in interface Scope
        Returns:
        The custom data. This is never null
      • data

        public final Object data​(Object key)
        Description copied from interface: Scope
        Get some custom data from this Scope.

        This is custom data that was previously set to the context using Scope.data(Object, Object). Use custom data if you want to pass data to QueryPart objects for a given Scope

        Specified by:
        data in interface Scope
        Parameters:
        key - A key to identify the custom data
        Returns:
        The custom data or null if no such data is contained in this Scope
      • data

        public final Object data​(Object key,
                                 Object value)
        Description copied from interface: Scope
        Set some custom data to this Scope.

        This is custom data that was previously set to the context using Scope.data(Object, Object). Use custom data if you want to pass data to QueryPart objects for a given Scope.

        Specified by:
        data in interface Scope
        Parameters:
        key - A key to identify the custom data
        value - The custom data
        Returns:
        The previously set custom data or null if no data was previously set for the given key