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
RuntimeMetadatagetColumn in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Procedure getProcedure(String schema, String name) throws TranslatorException
RuntimeMetadatagetProcedure in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Table getTable(String schema, String name) throws TranslatorException
RuntimeMetadatagetTable in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Column getColumn(String fullName) throws TranslatorException
RuntimeMetadatagetColumn in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Table getTable(String fullName) throws TranslatorException
RuntimeMetadatagetTable in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Table getGroup(Object groupId) throws QueryMetadataException, TeiidComponentException
public Procedure getProcedure(String fullName) throws TranslatorException
RuntimeMetadatagetProcedure in interface RuntimeMetadataTranslatorException if the object cannot be foundTranslatorExceptionpublic Procedure getProcedure(StoredProcedureInfo sp)
public ProcedureParameter getParameter(SPParameter param)
public byte[] getBinaryVDBResource(String resourcePath) throws TranslatorException
RuntimeMetadatagetBinaryVDBResource in interface RuntimeMetadataresourcePath - a path returned by getVDBResourcePaths()TranslatorException - if the operation failspublic String getCharacterVDBResource(String resourcePath) throws TranslatorException
RuntimeMetadatagetCharacterVDBResource in interface RuntimeMetadataresourcePath - a path returned by getVDBResourcePaths()TranslatorException - if the operation failspublic String[] getVDBResourcePaths() throws TranslatorException
RuntimeMetadatagetVDBResourcePaths in interface RuntimeMetadataTranslatorException - if the operation failspublic QueryMetadataInterface getMetadata()
Copyright © 2017 JBoss by Red Hat. All rights reserved.