Class DefaultMetadataRepository<F,​C>

  • All Implemented Interfaces:
    MetadataRepository<F,​C>

    @Deprecated
    public abstract class DefaultMetadataRepository<F,​C>
    extends Object
    implements MetadataRepository<F,​C>
    Deprecated.
    This class is being provided for sole reason to inject metadata as it used to be in previous teiid versions. Take a look at modified interface of the MetadataRepostiory interface. If a DefaultMetadataRepository is used, it will inject metadata onto whatever has been loaded at that point in the repository chain. Generally this means that a DefaultMetadataRepository should be last.
    • Constructor Detail

      • DefaultMetadataRepository

        public DefaultMetadataRepository()
        Deprecated.
    • Method Detail

      • loadMetadata

        public void loadMetadata​(MetadataFactory factory,
                                 ExecutionFactory<F,​C> executionFactory,
                                 F connectionFactory)
                          throws TranslatorException
        Deprecated.
        Calls the specific getter methods of this class to populate metadata on schema being loaded. If this method is overriden, the super method must be called to perform the metadata injection.
        Specified by:
        loadMetadata in interface MetadataRepository<F,​C>
        executionFactory - may be null if loading a virtual source
        connectionFactory - may be null if source is not available
        Throws:
        TranslatorException - to indicate a recoverable error, otherwise a RuntimeException
      • startLoadVdb

        public void startLoadVdb​(String vdbName,
                                 String vdbVersion)
        Deprecated.
        Marks the start of vdb metadata loading Note: this is called for every schema
        Parameters:
        vdbName -
        vdbVersion -
      • endLoadVdb

        public void endLoadVdb​(String vdbName,
                               String vdbVersion)
        Deprecated.
        Marks the end of vdb metadata loading Note: this is called for every schema
        Parameters:
        vdbName -
        vdbVersion -
      • getColumnStats

        public ColumnStats getColumnStats​(String vdbName,
                                          String vdbVersion,
                                          Column column)
        Deprecated.
        Get updated ColumnStats for the given column
        Parameters:
        vdbName -
        vdbVersion -
        column -
        Returns:
        the stats. a null result or a null stat indicates that the default should be used
      • getInsteadOfTriggerDefinition

        public String getInsteadOfTriggerDefinition​(String vdbName,
                                                    String vdbVersion,
                                                    Table table,
                                                    Table.TriggerEvent triggerOperation)
        Deprecated.
        Returns an updated trigger definition (FOR EACH ROW ...) or null if the current view definition should be used should be used.
      • getProcedureDefinition

        public String getProcedureDefinition​(String vdbName,
                                             String vdbVersion,
                                             Procedure procedure)
        Deprecated.
        Returns an updated procedure definition (CREATE PROCEDURE ...) or null if the current procedure definition should be used should be used.
      • getTableStats

        public TableStats getTableStats​(String vdbName,
                                        String vdbVersion,
                                        Table table)
        Deprecated.
        Get updated TableStats for the given table
        Parameters:
        vdbName -
        vdbVersion -
        table -
        Returns:
        the stats. a null result or a null stat indicates that the current value should be used
      • getViewDefinition

        public String getViewDefinition​(String vdbName,
                                        String vdbVersion,
                                        Table table)
        Deprecated.
        Returns an updated view definition (AS SQL only) or null if the current view definition should be used should be used.
      • isInsteadOfTriggerEnabled

        public Boolean isInsteadOfTriggerEnabled​(String vdbName,
                                                 String vdbVersion,
                                                 Table table,
                                                 Table.TriggerEvent triggerOperation)
        Deprecated.
        Returns whether the trigger is enabled
        Parameters:
        vdbName -
        vdbVersion -
        table -
        triggerOperation -
        Returns: