org.teiid.adminapi.impl
Class ModelMetaData
java.lang.Object
org.teiid.adminapi.impl.AdminObjectImpl
org.teiid.adminapi.impl.ModelMetaData
- All Implemented Interfaces:
- Serializable, AdminObject, Model
public class ModelMetaData
- extends AdminObjectImpl
- implements Model
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface org.teiid.adminapi.Model |
Model.Type |
| Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl |
addAttchment, addProperty, getAttachment, getAttachments, getHostName, getName, getProperties, getPropertyValue, getServerGroup, getServerName, removeAttachment, setHostName, setName, setProperties, setServerGroup, setServerName |
sources
protected LinkedHashMap<String,SourceMappingMetadata> sources
modelType
protected String modelType
description
protected String description
path
protected String path
visible
protected Boolean visible
messages
protected List<ModelMetaData.Message> messages
runtimeMessages
protected transient List<ModelMetaData.Message> runtimeMessages
schemaSourceType
protected String schemaSourceType
schemaText
protected String schemaText
ModelMetaData
public ModelMetaData()
getDescription
public String getDescription()
- Description copied from interface:
Model
- Description about the model
- Specified by:
getDescription in interface Model
- Returns:
setDescription
public void setDescription(String description)
isSource
public boolean isSource()
- Description copied from interface:
Model
- Determine if this model is a Source model.
- Specified by:
isSource in interface Model
- Returns:
true if it contains physical group(s).
isVisible
public boolean isVisible()
- Description copied from interface:
Model
- Determine whether this model is exposed for querying.
- Specified by:
isVisible in interface Model
- Returns:
true if the model is visible
for querying.
getModelType
public Model.Type getModelType()
- Description copied from interface:
Model
- Retrieve the model type.
- Specified by:
getModelType in interface Model
- Returns:
- model type
getPath
public String getPath()
setPath
public void setPath(String path)
isSupportsMultiSourceBindings
public boolean isSupportsMultiSourceBindings()
- Description copied from interface:
Model
- Determine whether this model can support more than one source.
- Specified by:
isSupportsMultiSourceBindings in interface Model
- Returns:
true if this model supports multiple sources
setSupportsMultiSourceBindings
public void setSupportsMultiSourceBindings(boolean supports)
setModelType
public void setModelType(Model.Type modelType)
setModelType
public void setModelType(String modelType)
toString
public String toString()
- Overrides:
toString in class Object
setVisible
public void setVisible(Boolean value)
getSourceMappings
public List<SourceMappingMetadata> getSourceMappings()
getSources
public LinkedHashMap<String,SourceMappingMetadata> getSources()
getSourceMapping
public SourceMappingMetadata getSourceMapping(String sourceName)
setSourceMappings
public void setSourceMappings(List<SourceMappingMetadata> sources)
getSourceNames
public List<String> getSourceNames()
- Description copied from interface:
Model
- Associated Source Names for the Models
- Specified by:
getSourceNames in interface Model
- Returns:
- String
getSourceConnectionJndiName
public String getSourceConnectionJndiName(String sourceName)
- Description copied from interface:
Model
- Get the configured JNDI name for the given source name.
- Specified by:
getSourceConnectionJndiName in interface Model
- Parameters:
sourceName - - name of the source
- Returns:
- null if none configured.
getSourceTranslatorName
public String getSourceTranslatorName(String sourceName)
- Description copied from interface:
Model
- Get the configured translator name for the given source
- Specified by:
getSourceTranslatorName in interface Model
- Returns:
addSourceMapping
public SourceMappingMetadata addSourceMapping(String name,
String translatorName,
String connJndiName)
addSourceMapping
public void addSourceMapping(SourceMappingMetadata source)
hasErrors
public boolean hasErrors()
getMessages
public List<ModelMetaData.Message> getMessages()
getMessages
public List<ModelMetaData.Message> getMessages(boolean includeRuntime)
addMessage
public ModelMetaData.Message addMessage(String severity,
String message)
hasRuntimeMessages
public boolean hasRuntimeMessages()
addRuntimeError
public ModelMetaData.Message addRuntimeError(String message)
addRuntimeMessage
public ModelMetaData.Message addRuntimeMessage(ModelMetaData.Message.Severity severity,
String message)
addMessage
public ModelMetaData.Message addMessage(ModelMetaData.Message ve)
clearRuntimeMessages
public void clearRuntimeMessages()
clearMessages
public void clearMessages()
getSchemaSourceType
public String getSchemaSourceType()
setSchemaSourceType
public void setSchemaSourceType(String schemaSourceType)
getSchemaText
public String getSchemaText()
setSchemaText
public void setSchemaText(String schemaText)
getValidityErrors
public List<String> getValidityErrors()
- Description copied from interface:
Model
- Shows any validity errors present in the model
- Specified by:
getValidityErrors in interface Model
- Returns:
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.