Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.data
Class Person

java.lang.Object
  extended by ch.elexis.data.PersistentObject
      extended by ch.elexis.data.Kontakt
          extended by ch.elexis.data.Person
All Implemented Interfaces:
IPartner, IPersistentObject, IPerson, ISelectable
Direct Known Subclasses:
Anwender, Patient

public class Person
extends Kontakt
implements IPerson

Eine Person ist ein Kontakt mit zusätzlich Namen, Geburtsdatum und Geschlecht.

Author:
gerry

Nested Class Summary
static class Person.PersonDataException
           
 
Nested classes/interfaces inherited from class ch.elexis.data.Kontakt
Kontakt.statL
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String FEMALE
           
static java.lang.String MALE
           
static java.lang.String MOBILE
           
static java.lang.String TITLE
           
 
Fields inherited from class ch.elexis.data.Kontakt
DEFAULT_SORT, FLD_ANSCHRIFT, FLD_COUNTRY, FLD_E_MAIL, FLD_FAX, FLD_IS_LAB, FLD_IS_MANDATOR, FLD_IS_ORGANIZATION, FLD_IS_PATIENT, FLD_IS_PERSON, FLD_IS_USER, FLD_MOBILEPHONE, FLD_PHONE1, FLD_PHONE2, FLD_PLACE, FLD_REMARK, FLD_SHORT_LABEL, FLD_STREET, FLD_WEBSITE, FLD_ZIP
 
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.IPerson
FLD_BIRTHDATE, FLD_FIRSTNAME, FLD_LASTNAME, FLD_SEX, FLD_TITLE, FLD_TITLE_SUFFIX
 
Fields inherited from interface ch.elexis.core.data.IPartner
FLD_NAME1, FLD_NAME2, FLD_NAME3, TYPE_ADMIN, TYPE_CLIENT, TYPE_MANAGER, TYPE_MANDATOR, TYPE_ORGANIZATION, TYPE_PERSON, TYPE_USER
 
Fields inherited from interface ch.elexis.core.data.IPersistentObject
DELETED, FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID
 
Constructor Summary
Person()
           
Person(java.lang.String Name, java.lang.String Vorname, java.lang.String Geburtsdatum, java.lang.String s)
          Eine neue Person erstellen
Person(java.lang.String name, java.lang.String vorname, TimeTool gebDat, java.lang.String s)
          This constructor is more critical than the previous one
 
Method Summary
 void countItem(ICodeElement ice)
          Statistik für ein bestimmtes Objekt führen
 java.lang.String getGeburtsdatum()
           
 java.lang.String getGeschlecht()
           
 java.lang.String getInitials(int num)
          Initialen holen
 java.lang.String getLabel(boolean shortLabel)
          Return a short or long label for this Person
 java.lang.String getName()
           
 java.lang.String getNatel()
           
 java.lang.String getPersonalia()
          Einen String mit den Personalien holen
 java.lang.String getVorname()
           
 boolean isValid()
          Angeben, ob dieses Objekt gültig ist.
static Person load(java.lang.String id)
          Eine Person mit gegebener Id aus der Datenbank einlesen
 
Methods inherited from class ch.elexis.data.Kontakt
addBezugsKontakt, createStdAnschrift, delete, findKontaktfromInfoStore, flushInfoStore, getAnschrift, getBemerkung, getBezugsKontakte, getContactInfo, getContactInfos, getContactSalutation, getInfoElement, getInfoStore, getInfoString, getKuerzel, getLabel, getMailAddress, getMFU, getPartnerRoles, getPostAnschrift, getRelatedReminders, getStatForItem, getStatForString, hasRole, istOrganisation, istPatient, istPerson, setAnschrift, setBemerkung, setInfoElement, setMFU, setPartnerRoles, statForItem, statForString
 
Methods inherited from class ch.elexis.data.PersistentObject
addChangeListener, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, 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, 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
 
Methods inherited from interface ch.elexis.core.data.IPartner
getContactInfo, getContactInfos, getContactSalutation, getPartnerRoles, hasRole, setPartnerRoles
 
Methods inherited from interface ch.elexis.core.data.IPersistentObject
addChangeListener, addSticker, addXid, exists, get, get, getId, getInt, getLabel, getLastUpdate, getMap, getSticker, getStickers, getXid, getXid, getXids, isAvailable, isDeleted, isDragOK, isMatching, isMatching, isMatching, isMatching, removeChangeListener, removeSticker, set, set, setInt, setMap, state, storeToString
 

Field Detail

TITLE

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

MOBILE

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

MALE

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

FEMALE

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

Person

public Person()

Person

public Person(java.lang.String Name,
              java.lang.String Vorname,
              java.lang.String Geburtsdatum,
              java.lang.String s)
Eine neue Person erstellen


Person

public Person(java.lang.String name,
              java.lang.String vorname,
              TimeTool gebDat,
              java.lang.String s)
       throws Person.PersonDataException
This constructor is more critical than the previous one

Parameters:
name - will be checked for non-alphabetic characters and may not be empty
vorname - will be checked for non alphabetic characters but may be empty
gebDat - will be checked for unplausible values but may be null
s - will be checked for undefined values and may not be empty
Throws:
Person.PersonDataException
Method Detail

getName

public java.lang.String getName()

getVorname

public java.lang.String getVorname()

getGeburtsdatum

public java.lang.String getGeburtsdatum()

getGeschlecht

public java.lang.String getGeschlecht()

getNatel

public java.lang.String getNatel()

isValid

public boolean isValid()
Description copied from class: PersistentObject
Angeben, ob dieses Objekt gültig ist.

Specified by:
isValid in interface IPersistentObject
Overrides:
isValid in class Kontakt
Returns:
true wenn die Daten gültig (nicht notwendigerweise korrekt) sind

load

public static Person load(java.lang.String id)
Eine Person mit gegebener Id aus der Datenbank einlesen


getLabel

public java.lang.String getLabel(boolean shortLabel)
Return a short or long label for this Person

Overrides:
getLabel in class Kontakt
Parameters:
shortLabel - return a short label for true, and a long label otherwise
Returns:
a label describing this Person

getInitials

public java.lang.String getInitials(int num)
Initialen holen

Parameters:
num - Auf wieviele Stellen der Name gekürzt werden soll

getPersonalia

public java.lang.String getPersonalia()
Einen String mit den Personalien holen


countItem

public void countItem(ICodeElement ice)
Statistik für ein bestimmtes Objekt führen

Parameters:
ice -

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis