Package org.teiid.query.metadata
Class ChainingMetadataRepository
- java.lang.Object
-
- org.teiid.query.metadata.ChainingMetadataRepository
-
- All Implemented Interfaces:
MetadataRepository<Object,Object>
public class ChainingMetadataRepository extends Object implements MetadataRepository<Object,Object>
-
-
Constructor Summary
Constructors Constructor Description ChainingMetadataRepository(List<? extends MetadataRepository> repos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadMetadata(MetadataFactory factory, ExecutionFactory<Object,Object> executionFactory, Object connectionFactory)Loads the schema information for the vdb for the given schemaName.voidsetColumnStats(String vdbName, String vdbVersion, Column column, ColumnStats columnStats)Set theColumnStatsfor a given columnvoidsetInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)Call back function, when "alter trigger" is calledvoidsetInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)Callback function, when "alter trigger" is called to enable or disable a triggervoidsetProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)Call back function, when "alter procedure" is called to set the procedure definitionvoidsetProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)Set an extension metadata property for a given record.voidsetTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)Set theTableStatsfor the given tablevoidsetViewDefinition(String vdbName, String vdbVersion, Table table, String viewDefinition)Call back function, when "alter view" definition is called-
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
-
-
-
-
Constructor Detail
-
ChainingMetadataRepository
public ChainingMetadataRepository(List<? extends MetadataRepository> repos)
-
-
Method Detail
-
loadMetadata
public void loadMetadata(MetadataFactory factory, ExecutionFactory<Object,Object> executionFactory, Object connectionFactory) throws TranslatorException
Description copied from interface:MetadataRepositoryLoads the schema information for the vdb for the given schemaName. Loads table, procedures, functions, indexes etc.- Specified by:
loadMetadatain interfaceMetadataRepository<Object,Object>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
-
setColumnStats
public void setColumnStats(String vdbName, String vdbVersion, Column column, ColumnStats columnStats)
Description copied from interface:MetadataRepositorySet theColumnStatsfor a given column- Specified by:
setColumnStatsin interfaceMetadataRepository<Object,Object>
-
setInsteadOfTriggerDefinition
public void setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
Description copied from interface:MetadataRepositoryCall back function, when "alter trigger" is called- Specified by:
setInsteadOfTriggerDefinitionin interfaceMetadataRepository<Object,Object>
-
setInsteadOfTriggerEnabled
public void setInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
Description copied from interface:MetadataRepositoryCallback function, when "alter trigger" is called to enable or disable a trigger- Specified by:
setInsteadOfTriggerEnabledin interfaceMetadataRepository<Object,Object>
-
setProcedureDefinition
public void setProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)
Description copied from interface:MetadataRepositoryCall back function, when "alter procedure" is called to set the procedure definition- Specified by:
setProcedureDefinitionin interfaceMetadataRepository<Object,Object>
-
setProperty
public void setProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)
Description copied from interface:MetadataRepositorySet an extension metadata property for a given record.- Specified by:
setPropertyin interfaceMetadataRepository<Object,Object>
-
setTableStats
public void setTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)
Description copied from interface:MetadataRepositorySet theTableStatsfor the given table- Specified by:
setTableStatsin interfaceMetadataRepository<Object,Object>
-
setViewDefinition
public void setViewDefinition(String vdbName, String vdbVersion, Table table, String viewDefinition)
Description copied from interface:MetadataRepositoryCall back function, when "alter view" definition is called- Specified by:
setViewDefinitionin interfaceMetadataRepository<Object,Object>
-
-