com.irisel.oms.exchange
Class DataExchangeInstance

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

public class DataExchangeInstance
extends DataInstance

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.oms.olapi.beans.Instance
PROPERTY_INDEX_NOT_FOUND
 
Fields inherited from interface com.irisel.util.XMLBean
CSV
 
Constructor Summary
DataExchangeInstance()
           
 
Method Summary
 void addLinkTo(GlobalID linkedId, DirectedRelationVO linkedThroughRel)
          Adds a relationship from this instance to another instance
 void compress()
          Nulls names of columns.
 java.util.HashMap<DirectedRelationVO,InstanceLinkVO> getInstanceLinks()
           
 java.lang.String[] getKeyField()
           
 java.lang.String getKeyField(int i)
           
 int getKeyFieldCount()
           
 java.lang.String[] getKeyRel()
           
 java.util.Collection<InstanceLinkVO> getLinkedObjs()
           
 boolean isRef()
           
 void setInstanceLinks(java.util.HashMap<DirectedRelationVO,InstanceLinkVO> instanceLinks)
           
 void setKeyField(java.lang.String[] keyField)
           
 void setKeyRel(java.lang.String[] keyRel)
           
 void setLinkedObjs(java.util.HashMap<DirectedRelationVO,InstanceLinkVO> linkedObjs)
           
 void setRef(boolean ref)
           
 void uncompress(ClassVO classvo)
          Restores metadata from model
 
Methods inherited from class com.irisel.oms.olapi.beans.DataInstance
clone, close, getClassId, getClassname, getClassnames, getGlid, getGlobalId, getIndex, getInstanceType, getName, getOriginalNames, getPropertyCount, getPropertyNames, getType, getValue, getValue, getValueClassName, getValues, getValuesClassNames, hasProperty, name2index, setAutomaticFields, setClassId, setClassname, setClassnames, setGlid, setId, setInstanceType, setOriginalNames, setPropertyNames, setType, setValue, setValue, setValues, setValuesClassNames, toJSONObject, toMap, toString
 
Methods inherited from class com.irisel.oms.olapi.beans.XMLBean
copyToInstance, export2csv, 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, setLabel, setName, setO, setOrd, setVisibility, updateFromInstance, writeToFile, writeToStream, xmlSerialize
 
Methods inherited from class com.irisel.util.BaseBean
decode64, decode64bin, encode64, encode64bin, readObject, readObject64, toBean, toByteArray, toJSON, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.irisel.oms.olapi.beans.Instance
encode64, getIcon, getId, isDirty, setDirty, setIcon, toJSON, toXML
 

Constructor Detail

DataExchangeInstance

public DataExchangeInstance()
Method Detail

isRef

public boolean isRef()

setRef

public void setRef(boolean ref)

compress

public void compress()
Nulls names of columns. For instances of tables (not views), classnames array and type field are also set to null.


uncompress

public void uncompress(ClassVO classvo)
Restores metadata from model


getKeyFieldCount

public int getKeyFieldCount()

getKeyField

public java.lang.String getKeyField(int i)

getKeyField

public java.lang.String[] getKeyField()

setKeyField

public void setKeyField(java.lang.String[] keyField)

getKeyRel

public java.lang.String[] getKeyRel()

setKeyRel

public void setKeyRel(java.lang.String[] keyRel)

getLinkedObjs

public java.util.Collection<InstanceLinkVO> getLinkedObjs()

setLinkedObjs

public void setLinkedObjs(java.util.HashMap<DirectedRelationVO,InstanceLinkVO> linkedObjs)

addLinkTo

public void addLinkTo(GlobalID linkedId,
                      DirectedRelationVO linkedThroughRel)
Adds a relationship from this instance to another instance

Parameters:
rel -
destId -

getInstanceLinks

public java.util.HashMap<DirectedRelationVO,InstanceLinkVO> getInstanceLinks()

setInstanceLinks

public void setInstanceLinks(java.util.HashMap<DirectedRelationVO,InstanceLinkVO> instanceLinks)