Class DBNamespaceService

    • Constructor Detail

      • DBNamespaceService

        public DBNamespaceService()
        Create a namespace service.

        Note: this is generally used for CDI proxies and should not be invoked directly

      • DBNamespaceService

        @Inject
        public DBNamespaceService​(DataSource ds)
        Create a namespace service.
        Parameters:
        ds - the datasource
      • DBNamespaceService

        public DBNamespaceService​(org.jdbi.v3.core.Jdbi jdbi)
        Create a namespace service.
        Parameters:
        jdbi - the Jdbi object
    • Method Detail

      • setPrefix

        public boolean setPrefix​(String prefix,
                                 String namespace)
        Description copied from interface: NamespaceService
        Set the namespace for a given prefix.
        Specified by:
        setPrefix in interface NamespaceService
        Parameters:
        prefix - the prefix
        namespace - the namespace
        Returns:
        whether the new prefix was set