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 void
loadMetadata(MetadataFactory factory, ExecutionFactory<Object,Object> executionFactory, Object connectionFactory)
Loads the schema information for the vdb for the given schemaName.void
setColumnStats(String vdbName, String vdbVersion, Column column, ColumnStats columnStats)
Set theColumnStats
for a given columnvoid
setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
Call back function, when "alter trigger" is calledvoid
setInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
Callback function, when "alter trigger" is called to enable or disable a triggervoid
setProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)
Call back function, when "alter procedure" is called to set the procedure definitionvoid
setProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)
Set an extension metadata property for a given record.void
setTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)
Set theTableStats
for the given tablevoid
setViewDefinition(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:MetadataRepository
Loads the schema information for the vdb for the given schemaName. Loads table, procedures, functions, indexes etc.- Specified by:
loadMetadata
in 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:MetadataRepository
Set theColumnStats
for a given column- Specified by:
setColumnStats
in interfaceMetadataRepository<Object,Object>
-
setInsteadOfTriggerDefinition
public void setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
Description copied from interface:MetadataRepository
Call back function, when "alter trigger" is called- Specified by:
setInsteadOfTriggerDefinition
in interfaceMetadataRepository<Object,Object>
-
setInsteadOfTriggerEnabled
public void setInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
Description copied from interface:MetadataRepository
Callback function, when "alter trigger" is called to enable or disable a trigger- Specified by:
setInsteadOfTriggerEnabled
in interfaceMetadataRepository<Object,Object>
-
setProcedureDefinition
public void setProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)
Description copied from interface:MetadataRepository
Call back function, when "alter procedure" is called to set the procedure definition- Specified by:
setProcedureDefinition
in interfaceMetadataRepository<Object,Object>
-
setProperty
public void setProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)
Description copied from interface:MetadataRepository
Set an extension metadata property for a given record.- Specified by:
setProperty
in interfaceMetadataRepository<Object,Object>
-
setTableStats
public void setTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)
Description copied from interface:MetadataRepository
Set theTableStats
for the given table- Specified by:
setTableStats
in interfaceMetadataRepository<Object,Object>
-
setViewDefinition
public void setViewDefinition(String vdbName, String vdbVersion, Table table, String viewDefinition)
Description copied from interface:MetadataRepository
Call back function, when "alter view" definition is called- Specified by:
setViewDefinition
in interfaceMetadataRepository<Object,Object>
-
-