public abstract class MetadataRepository<F,C> extends Object
| Constructor and Description |
|---|
MetadataRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadMetadata(MetadataFactory factory,
ExecutionFactory<F,C> executionFactory,
F connectionFactory)
Loads the schema information for the vdb for the given schemaName.
|
void |
loadMetadata(MetadataFactory factory,
ExecutionFactory<F,C> executionFactory,
F connectionFactory,
String text)
Loads the schema information for the vdb for the given schemaName.
|
void |
setColumnStats(String vdbName,
String vdbVersion,
Column column,
ColumnStats columnStats)
Set the
ColumnStats for a given column |
void |
setInsteadOfTriggerDefinition(String vdbName,
String vdbVersion,
Table table,
Table.TriggerEvent triggerOperation,
String triggerDefinition)
Call back function, when "alter trigger" is called
|
void |
setInsteadOfTriggerEnabled(String vdbName,
String vdbVersion,
Table table,
Table.TriggerEvent triggerOperation,
boolean enabled)
Callback function, when "alter trigger" is called to enable or disable a trigger
|
void |
setProcedureDefinition(String vdbName,
String vdbVersion,
Procedure procedure,
String procedureDefinition)
Call back function, when "alter procedure" is called to set the procedure definition
|
void |
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 the
TableStats for the given table |
void |
setViewDefinition(String vdbName,
String vdbVersion,
Table table,
String viewDefinition)
Call back function, when "alter view" definition is called
|
public void loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory, String text) throws TranslatorException
factory - executionFactory - may be null if loading a virtual sourceconnectionFactory - may be null if source is not availabletext - the text used to configure the loadTranslatorException - to indicate a recoverable error, otherwise a RuntimeExceptionpublic void loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory) throws TranslatorException
factory - executionFactory - may be null if loading a virtual sourceconnectionFactory - may be null if source is not availableTranslatorException - to indicate a recoverable error, otherwise a RuntimeExceptionpublic void setViewDefinition(String vdbName, String vdbVersion, Table table, String viewDefinition)
vdbName - vdbVersion - table - viewDefinition - public void setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
vdbName - vdbVersion - table - triggerOperation - triggerDefinition - public void setInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
vdbName - vdbVersion - table - triggerOperation - enabled - public void setProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)
vdbName - vdbVersion - procedure - procedureDefinition - public void setTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)
TableStats for the given tablevdbName - vdbVersion - table - tableStats - public void setColumnStats(String vdbName, String vdbVersion, Column column, ColumnStats columnStats)
ColumnStats for a given columnvdbName - vdbVersion - column - columnStats - public void setProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)
vdbName - vdbVersion - record - name - value - Copyright © 2016 JBoss by Red Hat. All rights reserved.