public abstract class MetadataRepository<F,C> extends Object
Constructor and Description |
---|
MetadataRepository() |
Modifier and Type | Method and Description |
---|---|
abstract void |
loadMetadata(MetadataFactory factory,
ExecutionFactory<F,C> executionFactory,
F connectionFactory)
Loads the schema information for the vdb for the given schemaName.
|
void |
setColumnStats(String vdbName,
int vdbVersion,
Column column,
ColumnStats columnStats)
Set the
ColumnStats for a given column |
void |
setInsteadOfTriggerDefinition(String vdbName,
int vdbVersion,
Table table,
Table.TriggerEvent triggerOperation,
String triggerDefinition)
Call back function, when "alter trigger" is called
|
void |
setInsteadOfTriggerEnabled(String vdbName,
int 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,
int vdbVersion,
Procedure procedure,
String procedureDefinition)
Call back function, when "alter procedure" is called to set the procedure definition
|
void |
setProperty(String vdbName,
int vdbVersion,
AbstractMetadataRecord record,
String name,
String value)
Set an extension metadata property for a given record.
|
void |
setTableStats(String vdbName,
int vdbVersion,
Table table,
TableStats tableStats)
Set the
TableStats for the given table |
void |
setViewDefinition(String vdbName,
int vdbVersion,
Table table,
String viewDefinition)
Call back function, when "alter view" definition is called
|
public abstract 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, int vdbVersion, Table table, String viewDefinition)
vdbName
- vdbVersion
- table
- viewDefinition
- public void setInsteadOfTriggerDefinition(String vdbName, int vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
vdbName
- vdbVersion
- table
- triggerOperation
- triggerDefinition
- public void setInsteadOfTriggerEnabled(String vdbName, int vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
vdbName
- vdbVersion
- table
- triggerOperation
- enabled
- public void setProcedureDefinition(String vdbName, int vdbVersion, Procedure procedure, String procedureDefinition)
vdbName
- vdbVersion
- procedure
- procedureDefinition
- public void setTableStats(String vdbName, int vdbVersion, Table table, TableStats tableStats)
TableStats
for the given tablevdbName
- vdbVersion
- table
- tableStats
- public void setColumnStats(String vdbName, int vdbVersion, Column column, ColumnStats columnStats)
ColumnStats
for a given columnvdbName
- vdbVersion
- column
- columnStats
- public void setProperty(String vdbName, int vdbVersion, AbstractMetadataRecord record, String name, String value)
vdbName
- vdbVersion
- record
- name
- value
- Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.