org.teiid.metadata
Interface RuntimeMetadata


public interface RuntimeMetadata

Helper methods that can be used to access runtime metadata.


Method Summary
 byte[] getBinaryVDBResource(java.lang.String resourcePath)
          Gets the contents of a VDB resource in binary form.
 java.lang.String getCharacterVDBResource(java.lang.String resourcePath)
          Gets the contents of a VDB resource as a String.
 Column getColumn(java.lang.String fullName)
          Look up an object by identifier
 Procedure getProcedure(java.lang.String fullName)
          Look up an object by identifier
 Table getTable(java.lang.String fullName)
          Look up an object by identifier
 java.lang.String[] getVDBResourcePaths()
          Gets the resource paths of all the resources in the VDB.
 

Method Detail

getTable

Table getTable(java.lang.String fullName)
               throws TranslatorException
Look up an object by identifier

Parameters:
fullName -
Returns:
The object
Throws:
TranslatorException

getColumn

Column getColumn(java.lang.String fullName)
                 throws TranslatorException
Look up an object by identifier

Parameters:
fullName -
Returns:
The object
Throws:
TranslatorException

getProcedure

Procedure getProcedure(java.lang.String fullName)
                       throws TranslatorException
Look up an object by identifier

Parameters:
fullName -
Returns:
The object
Throws:
TranslatorException

getBinaryVDBResource

byte[] getBinaryVDBResource(java.lang.String resourcePath)
                            throws TranslatorException
Gets the contents of a VDB resource in binary form.

Parameters:
resourcePath - a path returned by getVDBResourcePaths()
Returns:
the binary contents of the resource in a byte[]
Throws:
TranslatorException - if the operation fails
Since:
4.3

getCharacterVDBResource

java.lang.String getCharacterVDBResource(java.lang.String resourcePath)
                                         throws TranslatorException
Gets the contents of a VDB resource as a String.

Parameters:
resourcePath - a path returned by getVDBResourcePaths()
Returns:
the contents of the resource as a String of characters
Throws:
TranslatorException - if the operation fails
Since:
4.3

getVDBResourcePaths

java.lang.String[] getVDBResourcePaths()
                                       throws TranslatorException
Gets the resource paths of all the resources in the VDB.

Returns:
an array of resource paths of the resources in the VDB
Throws:
TranslatorException - if the operation fails
Since:
4.3


Copyright © 2010. All Rights Reserved.