org.teiid.adminapi
Interface Model

All Superinterfaces:
AdminObject, java.io.Serializable
All Known Implementing Classes:
ModelMetaData

public interface Model
extends AdminObject

Represents a metadata model in the Teiid system.

Since:
4.3

Nested Class Summary
static class Model.Type
           
 
Field Summary
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Method Summary
 java.lang.String getDescription()
          Description about the model
 Model.Type getModelType()
          Retrieve the model type.
 java.lang.String getSourceConnectionJndiName(java.lang.String sourceName)
          Get the configured JNDI name for the given source name.
 java.util.List<java.lang.String> getSourceNames()
          Associated Source Names for the Models (Connector Bindings)
 java.lang.String getSourceTranslatorName(java.lang.String sourceName)
          Get the configured translator name for the given source
 boolean isSource()
          Determine if this model is a Source model.
 boolean isSupportsMultiSourceBindings()
          Determine whether this model can support more than one connector binding.
 boolean isVisible()
          Determine whether this model is exposed for querying.
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
 

Method Detail

getDescription

java.lang.String getDescription()
Description about the model

Returns:

isSource

boolean isSource()
Determine if this model is a Source model.

Returns:
true if it contains physical group(s).

isVisible

boolean isVisible()
Determine whether this model is exposed for querying.

Returns:
true if the model is visible for querying.

getModelType

Model.Type getModelType()
Retrieve the model type.

Returns:
model type

isSupportsMultiSourceBindings

boolean isSupportsMultiSourceBindings()
Determine whether this model can support more than one connector binding.

Returns:
true if this model supports multi-source bindings

getSourceNames

java.util.List<java.lang.String> getSourceNames()
Associated Source Names for the Models (Connector Bindings)

Returns:
String

getSourceConnectionJndiName

java.lang.String getSourceConnectionJndiName(java.lang.String sourceName)
Get the configured JNDI name for the given source name.

Parameters:
sourceName - - name of the source
Returns:
null if none configured.

getSourceTranslatorName

java.lang.String getSourceTranslatorName(java.lang.String sourceName)
Get the configured translator name for the given source

Parameters:
sourceName -
Returns:


Copyright © 2010. All Rights Reserved.