ch.elexis.data
Class Bestellung
java.lang.Object
ch.elexis.data.PersistentObject
ch.elexis.data.Bestellung
- All Implemented Interfaces:
- IPersistentObject, ISelectable
public class Bestellung
- extends PersistentObject
Fields inherited from class ch.elexis.data.PersistentObject |
CACHE_DEFAULT_LIFETIME, CACHE_MIN_LIFETIME, CFG_CONNECTSTRING, CFG_DRIVER, CFG_FOLDED_CONNECTION, CFG_PWD, CFG_TYPE, CFG_USER, DATE_COMPOUND, default_lifetime, DELETED, EXISTS, FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_LASTUPDATE, INEXISTENT, INVALID_ID, log, MAPPING_ERROR_MARKER, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START |
Methods inherited from class ch.elexis.data.PersistentObject |
addChangeListener, addMapping, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, create, createOrModifyTable, delete, deleteList, disconnect, equals, executeScript, executeSQLScript, exists, exportData, flatten, fold, get, get, getBinary, getCacheTime, getConnection, getConstraint, getDefaultCacheLifetime, getExportFields, getExportUIDValue, getExportUIDVersion, getFieldType, getId, getInt, getLastUpdate, getList, getList, getMap, getSticker, getStickers, getVersionedResource, getWrappedId, getXid, getXid, getXids, hashCode, isAvailable, isDeleted, isDragOK, isMatching, isMatching, isMatching, isMatching, isValid, lock, map, removeChangeListener, removeFromList, removeFromList, removeSticker, removeTable, resetCache, set, set, setBinary, setConstraint, setDefaultCacheLifetime, setInt, setMap, setTrace, setVersionedResource, state, storeToString, tableExists, ts, undelete, unlock |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
ISORDERED
public static final java.lang.String ISORDERED
- See Also:
- Constant Field Values
Bestellung
public Bestellung(java.lang.String name,
Anwender an)
Bestellung
protected Bestellung()
Bestellung
protected Bestellung(java.lang.String id)
initialize
public static void initialize()
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
asString
public java.lang.String asString(Bestellung.ListenTyp type)
asList
public java.util.List<Bestellung.Item> asList()
addItem
public void addItem(Artikel art,
int num)
findItem
public Bestellung.Item findItem(Artikel art)
removeItem
public void removeItem(Bestellung.Item art)
save
public void save()
load
public void load()
getTableName
protected java.lang.String getTableName()
- Description copied from class:
PersistentObject
- Jede abgeleitete Klasse muss deklarieren, in welcher Tabelle sie gespeichert werden will.
- Specified by:
getTableName
in class PersistentObject
- Returns:
- Der Name einer bereits existierenden Tabelle der Datenbank
load
public static Bestellung load(java.lang.String id)
markAsOrdered
public static void markAsOrdered(Bestellung.Item[] list)
lookupLastWithArticle
public static Bestellung lookupLastWithArticle(Artikel artikel)