|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.vdb.runtime.BasicModelInfo
public class BasicModelInfo
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.common.vdb.api.ModelInfo |
|---|
PRIVATE, PRIVATE_VISIBILITY, PUBLIC, PUBLIC_VISIBILITY |
| Constructor Summary | |
|---|---|
protected |
BasicModelInfo()
|
|
BasicModelInfo(ModelInfo model)
CTOR used when the vdb is being sent to the runtime for creation. |
|
BasicModelInfo(java.lang.String modelName)
|
| Method Summary | |
|---|---|
void |
addConnectorBindingByName(java.lang.String connectrBindingName)
|
void |
enableMutliSourceBindings(boolean isEnabled)
Enable the model to have multiple connector bindings associated by passing in true. |
java.util.List |
getConnectorBindingNames()
Return the connector binding name(s). |
java.util.Date |
getDateVersioned()
Get the date this model was versioned. |
java.io.InputStream |
getDDLFileContentsAsStream(java.lang.String ddlFileName)
Get the contents of the given DDL file name. |
byte[] |
getDDLFileContentsGetBytes(java.lang.String ddlFileName)
Get the contents of the given DDL file name. |
java.lang.String[] |
getDDLFileNames()
Get the list of DDL file names that can be used to generate this materialization. |
java.lang.String |
getDescription()
Get this model's description. |
int |
getModelType()
Return the type of model |
java.lang.String |
getModelTypeName()
Returns the String version of the model type. |
java.lang.String |
getModelURI()
Return the model uri. |
java.lang.String |
getName()
Get this model's name. |
java.lang.String |
getPath()
|
java.util.Properties |
getProperties()
|
java.lang.String |
getUUID()
Get this model's UUID. |
java.lang.String |
getVersion()
Get this model's verion. |
java.lang.String |
getVersionedBy()
Get the name of the person who versioned this model. |
short |
getVisibility()
|
boolean |
isMaterialization()
Check whether this model is a materialization of a virtual group. |
boolean |
isMultiSourceBindingEnabled()
Returns true if the model has been enabled to have multiple connector bindings assigned. |
boolean |
isPhysical()
Whether this is a physical model. |
boolean |
isVisible()
Returns true if the model is visible to the use
for querying |
void |
removeConnectorBindingName(java.lang.String bindingName)
|
void |
renameConnectorBinding(java.lang.String exitingbindingName,
java.lang.String newbindingname)
|
boolean |
requiresConnectorBinding()
Whether this model requires that a connector must be bound to it. |
void |
setConnectorBindingNames(java.util.List newbindingNames)
|
void |
setDDLFiles(java.util.Map ddlFileNamesToFiles)
Set the Map of DDL file names to DDL file byte arrays. |
void |
setDescription(java.lang.String desc)
|
void |
setIsVisible(boolean visibility)
|
void |
setModelType(int type)
|
void |
setModelURI(java.lang.String uri)
|
void |
setName(java.lang.String name)
|
void |
setPath(java.lang.String path)
|
void |
setProperties(java.util.Properties properties)
|
void |
setUuid(java.lang.String uuid)
|
void |
setVersion(java.lang.String version)
|
void |
setVersionDate(java.util.Date date)
|
void |
setVersionedBy(java.lang.String versionedBy)
|
void |
setVisibility(short visibility)
|
boolean |
supportsMultiSourceBindings()
Returns true if the model, based on its model type, supports mutliple connector bindings. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected BasicModelInfo()
public BasicModelInfo(ModelInfo model)
model - public BasicModelInfo(java.lang.String modelName)
| Method Detail |
|---|
public java.lang.String getUUID()
ModelInfo
getUUID in interface ModelInfopublic java.lang.String getName()
ModelInfo
getName in interface ModelInfopublic java.lang.String getDescription()
ModelInfo
getDescription in interface ModelInfopublic java.lang.String getVersion()
ModelInfo
getVersion in interface ModelInfopublic int getModelType()
ModelInfo
getModelType in interface ModelInfopublic java.lang.String getModelTypeName()
ModelInfoString version of the model type.
getModelTypeName in interface ModelInfopublic java.lang.String getModelURI()
ModelInfo
getModelURI in interface ModelInfopublic java.util.Date getDateVersioned()
ModelInfo
getDateVersioned in interface ModelInfopublic java.lang.String getVersionedBy()
ModelInfo
getVersionedBy in interface ModelInfopublic boolean isPhysical()
ModelInfo
isPhysical in interface ModelInfopublic boolean requiresConnectorBinding()
ModelInfo
requiresConnectorBinding in interface ModelInfopublic java.util.List getConnectorBindingNames()
ModelInfo
getConnectorBindingNames in interface ModelInfopublic boolean supportsMultiSourceBindings()
isMultiSourceBindingEnabled() to determine
if the model has been flagged so that the user can
actually assign multi connector bindngs.
supportsMultiSourceBindings in interface ModelInfoModel.supportsMultiSourceBindings()public void setName(java.lang.String name)
public void setUuid(java.lang.String uuid)
uuid - public void setVersion(java.lang.String version)
version - public void setVersionDate(java.util.Date date)
date - public void setVersionedBy(java.lang.String versionedBy)
versionedBy - public boolean isVisible()
ModelInfotrue if the model is visible to the use
for querying
isVisible in interface ModelInfopublic boolean isMaterialization()
isMaterialization in interface ModelInfopublic byte[] getDDLFileContentsGetBytes(java.lang.String ddlFileName)
ModelInfo
getDDLFileContentsGetBytes in interface ModelInfoddlFileName - The name for which to get the DDL.
ModelInfo.getDDLFileContentsGetBytes(java.lang.String)public java.io.InputStream getDDLFileContentsAsStream(java.lang.String ddlFileName)
ModelInfo
getDDLFileContentsAsStream in interface ModelInfoddlFileName - The name for which to get the DDL.
ModelInfo.getDDLFileContentsAsStream(java.lang.String)public java.lang.String[] getDDLFileNames()
ModelInfoIf this model is not a materialization, the returned String[] will be empty.
getDDLFileNames in interface ModelInfoModelInfo.getDDLFileNames()public void setDDLFiles(java.util.Map ddlFileNamesToFiles)
ModelInfo
setDDLFiles in interface ModelInfoddlFileNamesToFiles - ModelInfo.setDDLFiles(Map)public void setIsVisible(boolean visibility)
public void setVisibility(short visibility)
public short getVisibility()
getVisibility in interface ModelInfopublic void addConnectorBindingByName(java.lang.String connectrBindingName)
public void setConnectorBindingNames(java.util.List newbindingNames)
public void removeConnectorBindingName(java.lang.String bindingName)
public void renameConnectorBinding(java.lang.String exitingbindingName,
java.lang.String newbindingname)
public void setModelType(int type)
public void setModelURI(java.lang.String uri)
public void setDescription(java.lang.String desc)
public void enableMutliSourceBindings(boolean isEnabled)
ModelInfotrue.
enableMutliSourceBindings in interface ModelInfoModelInfo.enableMutliSourceBindings(boolean)public boolean isMultiSourceBindingEnabled()
ModelInfo
isMultiSourceBindingEnabled in interface ModelInfoModelInfo.isMultiSourceBindingEnabled()public java.lang.String getPath()
getPath in interface ModelInfopublic void setPath(java.lang.String path)
public java.util.Properties getProperties()
getProperties in interface ModelInfopublic void setProperties(java.util.Properties properties)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||