Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.data
Class Leistungsblock

java.lang.Object
  extended by ch.elexis.data.PersistentObject
      extended by ch.elexis.data.Leistungsblock
All Implemented Interfaces:
ICodeElement, IPersistentObject, ISelectable

public class Leistungsblock
extends PersistentObject
implements ICodeElement


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String LEISTUNGEN
           
static java.lang.String MANDANT_ID
           
static java.lang.String NAME
           
static java.lang.String TABLENAME
           
static java.lang.String XIDDOMAIN
           
 
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
Leistungsblock(java.lang.String Name, Mandant m)
           
 
Method Summary
 void addElement(ICodeElement v)
          Add an ICodeElement to this block
 java.util.List<IActionDefinition> getActions(java.lang.Object kontext)
          Kontext-Aktionen für dieses Code-Element
 java.lang.String getCode()
          Das Element in Code-Form.
 java.lang.String getCodeSystemCode()
          Kurzcode für das System liefern
 java.lang.String getCodeSystemName()
          Name des zugrundeliegenden Codesystems liefern
 java.util.List<ICodeElement> getElements()
          return a List of elements contained in this block will never return null, but the list might be empty
 java.lang.String getLabel()
          Einen menschenlesbaren Identifikationsstring für dieses Objet liefern
 java.lang.String getName()
           
 java.lang.String getText()
          Das Element in Klartext-Form
 boolean isDragOK()
          Darf dieses Objekt mit Drag&Drop verschoben werden?
 boolean isEmpty()
          Deprecated. 
static Leistungsblock load(java.lang.String id)
           
 void moveElement(ICodeElement v, int offset)
          Move a CodeElement inside the block
 void removeElement(ICodeElement v)
           
 java.lang.String storeToString()
          Objekt in einen String serialisieren.
 java.lang.String toString(java.util.List<ICodeElement> lst)
           
 
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, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, lock, map, relock, removeChangeListener, removeFromList, removeFromList, removeSticker, resetCache, set, set, setDefaultCacheLifetime, setInt, setMap, setShowDeleted, setTrace, state, tableExists, ts, undelete, unlock
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.elexis.core.data.ICodeElement
getId
 

Field Detail

TABLENAME

public static final java.lang.String TABLENAME
See Also:
Constant Field Values

LEISTUNGEN

public static final java.lang.String LEISTUNGEN
See Also:
Constant Field Values

MANDANT_ID

public static final java.lang.String MANDANT_ID
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

XIDDOMAIN

public static final java.lang.String XIDDOMAIN
See Also:
Constant Field Values
Constructor Detail

Leistungsblock

public Leistungsblock(java.lang.String Name,
                      Mandant m)
Method Detail

getName

public java.lang.String getName()

getElements

public java.util.List<ICodeElement> getElements()
return a List of elements contained in this block will never return null, but the list might be empty

Returns:
a possibly empty list of ICodeElements

addElement

public void addElement(ICodeElement v)
Add an ICodeElement to this block

Parameters:
v - an Element

removeElement

public void removeElement(ICodeElement v)

moveElement

public void moveElement(ICodeElement v,
                        int offset)
Move a CodeElement inside the block

Parameters:
v - the element to move
offset - offset to move. negative values move up, positive down

storeToString

public java.lang.String storeToString()
Description copied from class: PersistentObject
Objekt in einen String serialisieren. Diese Standardimplementation macht eine "cheap copy": Es wird eine Textrepräsentation des Objektes erstellt, mit deren Hilfe das Objekt später wieder aus der Datenbank erstellt werden kann. Dies funktioniert nur innerhalb derselben Datenbank.

Specified by:
storeToString in interface IPersistentObject
Overrides:
storeToString in class PersistentObject
Returns:
der code-String, aus dem mit PersistentObjectFactory .createFromString wieder das Objekt erstellt werden kann

toString

public java.lang.String toString(java.util.List<ICodeElement> lst)

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

getText

public java.lang.String getText()
Description copied from interface: ICodeElement
Das Element in Klartext-Form

Specified by:
getText in interface ICodeElement

getCode

public java.lang.String getCode()
Description copied from interface: ICodeElement
Das Element in Code-Form. Aus dem Code und der Klasse muss das Element sich wieder erstellen lassen

Specified by:
getCode in interface ICodeElement

load

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

isEmpty

@Deprecated
public boolean isEmpty()
Deprecated. 


getCodeSystemName

public java.lang.String getCodeSystemName()
Description copied from interface: ICodeElement
Name des zugrundeliegenden Codesystems liefern

Specified by:
getCodeSystemName in interface ICodeElement

getCodeSystemCode

public java.lang.String getCodeSystemCode()
Description copied from interface: ICodeElement
Kurzcode für das System liefern

Specified by:
getCodeSystemCode in interface ICodeElement

isDragOK

public boolean isDragOK()
Description copied from class: PersistentObject
Darf dieses Objekt mit Drag&Drop verschoben werden?

Specified by:
isDragOK in interface IPersistentObject
Overrides:
isDragOK in class PersistentObject
Returns:
true wenn ja.

getActions

public java.util.List<IActionDefinition> getActions(java.lang.Object kontext)
Description copied from interface: ICodeElement
Kontext-Aktionen für dieses Code-Element

Specified by:
getActions in interface ICodeElement

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis