com.irisel.oms.olapi.beans
Class DataModelVO

java.lang.Object
  extended by com.irisel.util.BaseBean
      extended by com.irisel.oms.olapi.beans.XMLBean
          extended by com.irisel.oms.olapi.beans.DataModelVO
All Implemented Interfaces:
XMLBean, java.io.Serializable

public class DataModelVO
extends XMLBean

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.irisel.oms.olapi.beans.XMLBean
CLASSNAME, CLASSTYPE, DEFAULT_VISIBILITY, NOT_VISIBLE, VISIBLE
 
Fields inherited from interface com.irisel.util.XMLBean
CSV
 
Constructor Summary
DataModelVO()
           
 
Method Summary
 void addDescriptionVO(DescriptionVO descvo)
          Adds a DescriptionVO element to the model
 void export2csv(java.io.Writer os)
           
 DirectedRelationVO[] findClassRelationVOs(java.lang.String classname)
          Deprecated.  
 ClassVO getClassVO(java.lang.String classname)
           
 ClassVO getClassVOById(long classId)
           
 ClassVO[] getClassVOs()
           
 DescriptionVO getDescVOByDomainName(java.lang.String domain, java.lang.String name)
           
 DescriptionVO getDescVOById(long descId)
           
 DescriptionVO[] getDescVOs()
           
 ListVO[] getListVOs()
           
 RelationVO getRelationVO(java.lang.String relname)
          For ad-hoc relations, it creates a new RelationVO First, for relations stored in the DataModelVO, it retrieves the specified relation by name If not found, it searches in the ClassVO objects
 RelationVO getRelationVOById(long relId)
           
 RelationVO[] getRelationVOs()
           
 RoleVO getRoleVO(java.lang.String rolename)
           
 RoleVO getRoleVOById(long roleId)
           
 RoleVO[] getRoleVOs()
           
 ServiceVO[] getServiceVOs()
           
 int getVersion()
           
 ViewVO getViewVO(java.lang.String viewname)
           
 ViewVO getViewVOById(long viewId)
           
 ViewVO[] getViewVOs()
           
 void setClassVOs(ClassVO[] classVOs)
           
 void setDescVOs(DescriptionVO[] descVOs)
           
 void setListVOs(ListVO[] listVOs)
           
 void setRelationVOs(RelationVO[] relationVOs)
           
 void setRoleVOs(RoleVO[] roleVOs)
           
 void setServiceVOs(ServiceVO[] serviceVOs)
           
 void setupRelationVOs(RelationVO[] relationVOs)
           
 void setVersion(int version)
           
 void setViewVOs(ViewVO[] viewVOs)
           
 
Methods inherited from class com.irisel.oms.olapi.beans.XMLBean
copyToInstance, getDescId, getGeneratedAt, getGenericAttr, getIcon, getIconName, getId, getLabel, getName, getO, getOrd, getVisibility, isDirty, isEnabled, isErased, isMandatory, isReadOnly, readFromFile, readFromStream, setDescId, setDirty, setEnabled, setErased, setGeneratedAt, setGenericAttr, setIcon, setIconName, setId, setLabel, setName, setO, setOrd, setVisibility, toString, updateFromInstance, writeToFile, writeToStream, xmlSerialize
 
Methods inherited from class com.irisel.util.BaseBean
decode64, decode64bin, encode64, encode64bin, readObject, readObject64, toBean, toByteArray, toJSON, toJSONObject, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataModelVO

public DataModelVO()
Method Detail

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

getClassVOs

public ClassVO[] getClassVOs()

getClassVO

public ClassVO getClassVO(java.lang.String classname)

getClassVOById

public ClassVO getClassVOById(long classId)

setClassVOs

public void setClassVOs(ClassVO[] classVOs)

getViewVOs

public ViewVO[] getViewVOs()

getViewVO

public ViewVO getViewVO(java.lang.String viewname)

getViewVOById

public ViewVO getViewVOById(long viewId)

setViewVOs

public void setViewVOs(ViewVO[] viewVOs)

getRoleVOs

public RoleVO[] getRoleVOs()

getRoleVO

public RoleVO getRoleVO(java.lang.String rolename)

getRoleVOById

public RoleVO getRoleVOById(long roleId)

setRoleVOs

public void setRoleVOs(RoleVO[] roleVOs)

getRelationVOs

public RelationVO[] getRelationVOs()

getRelationVO

public RelationVO getRelationVO(java.lang.String relname)
For ad-hoc relations, it creates a new RelationVO First, for relations stored in the DataModelVO, it retrieves the specified relation by name If not found, it searches in the ClassVO objects

Parameters:
relname -
Returns:

getRelationVOById

public RelationVO getRelationVOById(long relId)

findClassRelationVOs

public DirectedRelationVO[] findClassRelationVOs(java.lang.String classname)
Deprecated. 

Use ClassVO.getOmsRelationVOs instead.

Parameters:
classname -
Returns:

setRelationVOs

public void setRelationVOs(RelationVO[] relationVOs)

setupRelationVOs

public void setupRelationVOs(RelationVO[] relationVOs)

getListVOs

public ListVO[] getListVOs()

setListVOs

public void setListVOs(ListVO[] listVOs)

getDescVOs

public DescriptionVO[] getDescVOs()

getDescVOById

public DescriptionVO getDescVOById(long descId)

getDescVOByDomainName

public DescriptionVO getDescVOByDomainName(java.lang.String domain,
                                           java.lang.String name)

setDescVOs

public void setDescVOs(DescriptionVO[] descVOs)

getServiceVOs

public ServiceVO[] getServiceVOs()

setServiceVOs

public void setServiceVOs(ServiceVO[] serviceVOs)

addDescriptionVO

public void addDescriptionVO(DescriptionVO descvo)
Adds a DescriptionVO element to the model

Parameters:
descvo -

export2csv

public void export2csv(java.io.Writer os)
                throws java.io.IOException
Specified by:
export2csv in interface XMLBean
Overrides:
export2csv in class XMLBean
Throws:
java.io.IOException