Class DbBackend

    • Field Detail

      • m_MirrorsForUrls

        protected JdbcUrl[] m_MirrorsForUrls
        the urls the mirrors are for.
      • m_Backends

        protected DbBackend[] m_Backends
        the backends.
      • m_NonMirroredBackend

        protected DbBackend m_NonMirroredBackend
        the default backend.
    • Constructor Detail

      • DbBackend

        public DbBackend()
    • Method Detail

      • isSupported

        public boolean isSupported​(AbstractDatabaseConnection conn)
        Returns whether this connection is supported.
        Parameters:
        conn - the database connection
        Returns:
        always true
      • setMirrors

        public void setMirrors​(AbstractDatabaseConnection[] value)
        Sets the mirror connections to use.
        Parameters:
        value - the connections
      • mirrorsTipText

        public String mirrorsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMirrorsForUrls

        public void setMirrorsForUrls​(JdbcUrl[] value)
        Sets the URLs that the mirrors are for.
        Parameters:
        value - the urls
      • getMirrorsForUrls

        public JdbcUrl[] getMirrorsForUrls()
        Returns the URLs that the mirrors are for.
        Returns:
        the urls
      • mirrorsForUrlsTipText

        public String mirrorsForUrlsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setBackends

        public void setBackends​(DbBackend[] value)
        Sets the backends to use.
        Parameters:
        value - the backends
      • getBackends

        public DbBackend[] getBackends()
        Returns the backends in use.
        Returns:
        the backends
      • backendsTipText

        public String backendsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNonMirroredBackend

        public void setNonMirroredBackend​(DbBackend value)
        Sets the backend to use for non-mirrored connections.
        Parameters:
        value - the backend
      • getNonMirroredBackend

        public DbBackend getNonMirroredBackend()
        Returns the backend to use for non-mirrored connections.
        Returns:
        the backend
      • nonMirroredBackendTipText

        public String nonMirroredBackendTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getBackendFor

        protected DbBackend getBackendFor​(AbstractDatabaseConnection conn)
        Returns the corresponding backend for the connection URL provided.
        Parameters:
        conn - the URL to get the backend for
        Returns:
        the backend, null if no backend
      • canMirror

        protected boolean canMirror​(AbstractDatabaseConnection conn)
        Checks whether connection can be mirrored.
        Parameters:
        conn - the connection to check
        Returns:
        true if can be mirrored
      • getSQL

        public SQLIntf getSQL​(AbstractDatabaseConnection conn)
        Returns the handler for the spectrum table.
        Parameters:
        conn - the database connection
        Returns:
        the handler
      • getLog

        public LogIntf getLog​(AbstractDatabaseConnection conn)
        Returns the handler for the sample data table.
        Parameters:
        conn - the database connection
        Returns:
        the handler