public class RuntimeMetadataImpl extends Object implements RuntimeMetadata
Constructor and Description |
---|
RuntimeMetadataImpl(QueryMetadataInterface metadata) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinaryVDBResource(String resourcePath)
Gets the contents of a VDB resource in binary form.
|
String |
getCharacterVDBResource(String resourcePath)
Gets the contents of a VDB resource as a String.
|
Column |
getColumn(String fullName)
Look up an object by identifier
|
Column |
getColumn(String schema,
String table,
String name)
Look up an object by identifier
|
Column |
getElement(Object elementId) |
Table |
getGroup(Object groupId) |
QueryMetadataInterface |
getMetadata() |
ProcedureParameter |
getParameter(SPParameter param) |
Procedure |
getProcedure(StoredProcedureInfo sp) |
Procedure |
getProcedure(String fullName)
Look up an object by identifier
|
Procedure |
getProcedure(String schema,
String name)
Look up an object by identifier
|
Table |
getTable(String fullName)
Look up an object by identifier
|
Table |
getTable(String schema,
String name)
Look up an object by identifier
|
String[] |
getVDBResourcePaths()
Gets the resource paths of all the resources in the VDB.
|
public RuntimeMetadataImpl(QueryMetadataInterface metadata)
public Column getColumn(String schema, String table, String name) throws TranslatorException
RuntimeMetadata
getColumn
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Procedure getProcedure(String schema, String name) throws TranslatorException
RuntimeMetadata
getProcedure
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Table getTable(String schema, String name) throws TranslatorException
RuntimeMetadata
getTable
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Column getColumn(String fullName) throws TranslatorException
RuntimeMetadata
getColumn
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Table getTable(String fullName) throws TranslatorException
RuntimeMetadata
getTable
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Table getGroup(Object groupId) throws QueryMetadataException, TeiidComponentException
public Procedure getProcedure(String fullName) throws TranslatorException
RuntimeMetadata
getProcedure
in interface RuntimeMetadata
TranslatorException
if the object cannot be foundTranslatorException
public Procedure getProcedure(StoredProcedureInfo sp)
public ProcedureParameter getParameter(SPParameter param)
public byte[] getBinaryVDBResource(String resourcePath) throws TranslatorException
RuntimeMetadata
getBinaryVDBResource
in interface RuntimeMetadata
resourcePath
- a path returned by getVDBResourcePaths()TranslatorException
- if the operation failspublic String getCharacterVDBResource(String resourcePath) throws TranslatorException
RuntimeMetadata
getCharacterVDBResource
in interface RuntimeMetadata
resourcePath
- a path returned by getVDBResourcePaths()TranslatorException
- if the operation failspublic String[] getVDBResourcePaths() throws TranslatorException
RuntimeMetadata
getVDBResourcePaths
in interface RuntimeMetadata
TranslatorException
- if the operation failspublic QueryMetadataInterface getMetadata()
Copyright © 2018 JBoss by Red Hat. All rights reserved.