Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.artikel_at.data
Class Interaction

java.lang.Object
  extended by ch.elexis.data.PersistentObject
      extended by ch.elexis.artikel_at.data.Interaction
All Implemented Interfaces:
IPersistentObject, ISelectable, java.lang.Comparable<Interaction>

public class Interaction
extends PersistentObject
implements java.lang.Comparable<Interaction>

InterView - Community based Interaction viewer - will be built on this class

Author:
Gerry

Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String[] INTERAKTIONSTYPEN
           
static java.lang.String[] RELEVANCE
           
static int RELEVANCE_HIGH
           
static int RELEVANCE_LOW
           
static int RELEVANCE_MEDIUM
           
static int RELEVANCE_UNKNOWN
           
static int TYPE_HWZ
           
static int TYPE_MINUS
           
static int TYPE_PLUS
           
static int TYPE_TOXIC
           
static int TYPE_UNKNOWN
           
 
Fields inherited from class ch.elexis.data.PersistentObject
CACHE_DEFAULT_LIFETIME, CACHE_MIN_LIFETIME, CFG_CONNECTSTRING, CFG_DRIVER, CFG_PWD, CFG_TYPE, CFG_USER, DELETED, EXISTS, INEXISTENT, INVALID_ID, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START
 
Fields inherited from interface ch.elexis.core.data.IPersistentObject
FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID
 
Constructor Summary
Interaction(Substance s1, Substance s2, java.lang.String desc, int t, int sev)
           
 
Method Summary
 int compareTo(Interaction o)
           
 java.lang.String getDescription()
           
static java.util.List<Interaction> getInteractionsFor(Substance s)
           
 java.lang.String getLabel()
          Einen menschenlesbaren Identifikationsstring für dieses Objet liefern
 int getRelevance()
           
 Substance[] getSubstances()
           
 int getType()
           
static Interaction load(java.lang.String id)
           
 void setDescription(java.lang.String desc)
           
 void setRelevance(int r)
           
 void setType(int typ)
           
 
Methods inherited from class ch.elexis.data.PersistentObject
addChangeListener, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, delete, deleteList, disconnect, equals, executeSQLScript, exists, exportData, fireChangeEvent, flatten, fold, get, get, getCacheTime, getConnection, getDefaultCacheLifetime, getFieldType, getId, getInt, getLastUpdate, getList, getList, getMap, getSticker, getStickers, getWrappedId, getXid, getXid, getXids, hashCode, isAvailable, isDeleted, isDragOK, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, lock, map, relock, removeChangeListener, removeFromList, removeFromList, removeSticker, resetCache, set, set, setDefaultCacheLifetime, setInt, setMap, setShowDeleted, setTrace, state, storeToString, tableExists, ts, undelete, unlock
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_PLUS

public static final int TYPE_PLUS
See Also:
Constant Field Values

TYPE_MINUS

public static final int TYPE_MINUS
See Also:
Constant Field Values

TYPE_TOXIC

public static final int TYPE_TOXIC
See Also:
Constant Field Values

TYPE_HWZ

public static final int TYPE_HWZ
See Also:
Constant Field Values

RELEVANCE_UNKNOWN

public static final int RELEVANCE_UNKNOWN
See Also:
Constant Field Values

RELEVANCE_LOW

public static final int RELEVANCE_LOW
See Also:
Constant Field Values

RELEVANCE_MEDIUM

public static final int RELEVANCE_MEDIUM
See Also:
Constant Field Values

RELEVANCE_HIGH

public static final int RELEVANCE_HIGH
See Also:
Constant Field Values

INTERAKTIONSTYPEN

public static final java.lang.String[] INTERAKTIONSTYPEN

RELEVANCE

public static final java.lang.String[] RELEVANCE
Constructor Detail

Interaction

public Interaction(Substance s1,
                   Substance s2,
                   java.lang.String desc,
                   int t,
                   int sev)
Method Detail

getInteractionsFor

public static java.util.List<Interaction> getInteractionsFor(Substance s)

getSubstances

public Substance[] getSubstances()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String desc)

getType

public int getType()

setType

public void setType(int typ)

getRelevance

public int getRelevance()

setRelevance

public void setRelevance(int r)

getLabel

public java.lang.String getLabel()
Description copied from class: PersistentObject
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern

Specified by:
getLabel in interface IPersistentObject
Specified by:
getLabel in class PersistentObject

load

public static Interaction load(java.lang.String id)

compareTo

public int compareTo(Interaction o)
Specified by:
compareTo in interface java.lang.Comparable<Interaction>

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis