com.irisel.oms.exchange
Class DataExchangeInstance
java.lang.Object
com.irisel.util.BaseBean
com.irisel.oms.olapi.beans.XMLBean
com.irisel.oms.olapi.beans.DataInstance
com.irisel.oms.exchange.DataExchangeInstance
- All Implemented Interfaces:
- Instance, XMLBean, java.io.Serializable
public class DataExchangeInstance
- extends DataInstance
- See Also:
- Serialized Form
Fields inherited from interface com.irisel.util.XMLBean |
CSV |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataExchangeInstance
public DataExchangeInstance()
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)