@Deprecated public abstract class DefaultMetadataRepository<F,C> extends MetadataRepository<F,C>
DefaultMetadataRepository is used, it will inject metadata onto whatever has been
loaded at that point in the repository chain. Generally this means that a DefaultMetadataRepository
should be last.| Constructor and Description |
|---|
DefaultMetadataRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endLoadVdb(String vdbName,
int vdbVersion)
Deprecated.
Marks the end of vdb metadata loading
Note: this is called for every schema
|
ColumnStats |
getColumnStats(String vdbName,
int vdbVersion,
Column column)
Deprecated.
Get updated
ColumnStats for the given column |
String |
getInsteadOfTriggerDefinition(String vdbName,
int 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,
int 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,
int vdbVersion,
AbstractMetadataRecord record)
Deprecated.
Get the extension metadata for a given record.
|
TableStats |
getTableStats(String vdbName,
int vdbVersion,
Table table)
Deprecated.
Get updated
TableStats for the given table |
String |
getViewDefinition(String vdbName,
int 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,
int vdbVersion,
Table table,
Table.TriggerEvent triggerOperation)
Deprecated.
Returns whether the trigger is enabled
|
void |
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,
int vdbVersion)
Deprecated.
Marks the start of vdb metadata loading
Note: this is called for every schema
|
setColumnStats, setInsteadOfTriggerDefinition, setInsteadOfTriggerEnabled, setProcedureDefinition, setProperty, setTableStats, setViewDefinitionpublic void loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory) throws TranslatorException
loadMetadata in class MetadataRepository<F,C>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 startLoadVdb(String vdbName, int vdbVersion)
vdbName - vdbVersion - public void endLoadVdb(String vdbName, int vdbVersion)
vdbName - vdbVersion - public ColumnStats getColumnStats(String vdbName, int vdbVersion, Column column)
ColumnStats for the given columnvdbName - vdbVersion - column - public String getInsteadOfTriggerDefinition(String vdbName, int vdbVersion, Table table, Table.TriggerEvent triggerOperation)
public String getProcedureDefinition(String vdbName, int vdbVersion, Procedure procedure)
public TableStats getTableStats(String vdbName, int vdbVersion, Table table)
TableStats for the given tablevdbName - vdbVersion - table - public String getViewDefinition(String vdbName, int vdbVersion, Table table)
public LinkedHashMap<String,String> getProperties(String vdbName, int vdbVersion, AbstractMetadataRecord record)
vdbName - vdbVersion - record - public Boolean isInsteadOfTriggerEnabled(String vdbName, int vdbVersion, Table table, Table.TriggerEvent triggerOperation)
vdbName - vdbVersion - table - triggerOperation - Copyright © 2013 JBoss by Red Hat. All Rights Reserved.