Package org.teiid.metadata
Class DefaultMetadataRepository<F,C>
- java.lang.Object
-
- org.teiid.metadata.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 aDefaultMetadataRepository
is used, it will inject metadata onto whatever has been loaded at that point in the repository chain. Generally this means that aDefaultMetadataRepository
should be last.
-
-
Constructor Summary
Constructors Constructor Description DefaultMetadataRepository()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
endLoadVdb(String vdbName, String vdbVersion)
Deprecated.Marks the end of vdb metadata loading Note: this is called for every schemaColumnStats
getColumnStats(String vdbName, String vdbVersion, Column column)
Deprecated.Get updatedColumnStats
for the given columnString
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.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.LinkedHashMap<String,String>
getProperties(String vdbName, String vdbVersion, AbstractMetadataRecord record)
Deprecated.Get the extension metadata for a given record.TableStats
getTableStats(String vdbName, String vdbVersion, Table table)
Deprecated.Get updatedTableStats
for the given tableString
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.Boolean
isInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation)
Deprecated.Returns whether the trigger is enabledvoid
loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory)
Deprecated.Calls the specific getter methods of this class to populate metadata on schema being loaded.void
startLoadVdb(String vdbName, String vdbVersion)
Deprecated.Marks the start of vdb metadata loading Note: this is called for every schema-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.metadata.MetadataRepository
loadMetadata, setColumnStats, setInsteadOfTriggerDefinition, setInsteadOfTriggerEnabled, setProcedureDefinition, setProperty, setTableStats, setViewDefinition
-
-
-
-
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 interfaceMetadataRepository<F,C>
executionFactory
- may be null if loading a virtual sourceconnectionFactory
- 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 updatedColumnStats
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 updatedTableStats
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.
-
getProperties
public LinkedHashMap<String,String> getProperties(String vdbName, String vdbVersion, AbstractMetadataRecord record)
Deprecated.Get the extension metadata for a given record.- Parameters:
vdbName
-vdbVersion
-record
-- Returns:
-
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:
-
-