|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.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 |
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 ModelInfo
public java.lang.String getName()
ModelInfo
getName
in interface ModelInfo
public java.lang.String getDescription()
ModelInfo
getDescription
in interface ModelInfo
public java.lang.String getVersion()
ModelInfo
getVersion
in interface ModelInfo
public int getModelType()
ModelInfo
getModelType
in interface ModelInfo
public java.lang.String getModelTypeName()
ModelInfo
String
version of the model type.
getModelTypeName
in interface ModelInfo
public java.lang.String getModelURI()
ModelInfo
getModelURI
in interface ModelInfo
public java.util.Date getDateVersioned()
ModelInfo
getDateVersioned
in interface ModelInfo
public java.lang.String getVersionedBy()
ModelInfo
getVersionedBy
in interface ModelInfo
public boolean isPhysical()
ModelInfo
isPhysical
in interface ModelInfo
public boolean requiresConnectorBinding()
ModelInfo
requiresConnectorBinding
in interface ModelInfo
public java.util.List getConnectorBindingNames()
ModelInfo
getConnectorBindingNames
in interface ModelInfo
public boolean supportsMultiSourceBindings()
isMultiSourceBindingEnabled()
to determine
if the model has been flagged so that the user can
actually assign multi connector bindngs.
supportsMultiSourceBindings
in interface ModelInfo
Model.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()
ModelInfo
true
if the model is visible to the use
for querying
isVisible
in interface ModelInfo
public boolean isMaterialization()
isMaterialization
in interface ModelInfo
public byte[] getDDLFileContentsGetBytes(java.lang.String ddlFileName)
ModelInfo
getDDLFileContentsGetBytes
in interface ModelInfo
ddlFileName
- 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 ModelInfo
ddlFileName
- The name for which to get the DDL.
ModelInfo.getDDLFileContentsAsStream(java.lang.String)
public java.lang.String[] getDDLFileNames()
ModelInfo
If this model is not a materialization, the returned String[] will be empty.
getDDLFileNames
in interface ModelInfo
ModelInfo.getDDLFileNames()
public void setDDLFiles(java.util.Map ddlFileNamesToFiles)
ModelInfo
setDDLFiles
in interface ModelInfo
ddlFileNamesToFiles
- ModelInfo.setDDLFiles(Map)
public void setIsVisible(boolean visibility)
public void setVisibility(short visibility)
public short getVisibility()
getVisibility
in interface ModelInfo
public 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)
ModelInfo
true
.
enableMutliSourceBindings
in interface ModelInfo
ModelInfo.enableMutliSourceBindings(boolean)
public boolean isMultiSourceBindingEnabled()
ModelInfo
isMultiSourceBindingEnabled
in interface ModelInfo
ModelInfo.isMultiSourceBindingEnabled()
public java.lang.String getPath()
getPath
in interface ModelInfo
public void setPath(java.lang.String path)
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 |