org.teiid.connector.metadata.runtime
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.
 Element getElement(java.lang.String fullName)
          Look up an object by identifier
 Group getGroup(java.lang.String fullName)
          Look up an object by identifier
 Procedure getProcedure(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

getGroup

Group getGroup(java.lang.String fullName)
               throws ConnectorException
Look up an object by identifier

Parameters:
fullName -
Returns:
The object
Throws:
ConnectorException

getElement

Element getElement(java.lang.String fullName)
                   throws ConnectorException
Look up an object by identifier

Parameters:
fullName -
Returns:
The object
Throws:
ConnectorException

getProcedure

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

Parameters:
fullName -
Returns:
The object
Throws:
ConnectorException

getBinaryVDBResource

byte[] getBinaryVDBResource(java.lang.String resourcePath)
                            throws ConnectorException
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:
ConnectorException - if the operation fails
Since:
4.3

getCharacterVDBResource

java.lang.String getCharacterVDBResource(java.lang.String resourcePath)
                                         throws ConnectorException
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:
ConnectorException - if the operation fails
Since:
4.3

getVDBResourcePaths

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

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


Copyright © 2009. All Rights Reserved.