|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.elexis.data.PersistentObject
ch.elexis.developer.resources.model.SampleDataType
public class SampleDataType
This is an example on how to derive your own type from PersistentObject and make it persistent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
|---|
PersistentObject.FieldType |
| Field Summary | |
|---|---|
static java.lang.String |
FLD_BOREFACTOR
|
static java.lang.String |
FLD_FUNFACTOR
|
static java.lang.String |
FLD_FUNNY_STUFF
|
static java.lang.String |
FLD_PATIENT_ID
|
static java.lang.String |
FLD_TITLE
|
| 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 |
| Fields inherited from interface ch.elexis.core.data.IPersistentObject |
|---|
FLD_ID, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID |
| Constructor Summary | |
|---|---|
|
SampleDataType(Patient pat,
java.lang.String title,
int funFactor,
int boreFactor)
Create a new Object. |
protected |
SampleDataType(java.lang.String id)
The constructor with a String parameter must be present |
| Method Summary | |
|---|---|
int |
getFunFactor()
|
byte[] |
getFunnyStuff()
|
java.lang.String |
getLabel()
This should return a human readable short description of this object. |
protected java.lang.String |
getTableName()
This must return the name of the Table this class will reside in. |
java.lang.String |
getTitle()
|
static SampleDataType |
load(java.lang.String id)
This static method should always be defined. |
void |
setFunnyThings(byte[] funny)
accessor methods can be created as useful |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FLD_PATIENT_ID
public static final java.lang.String FLD_FUNNY_STUFF
public static final java.lang.String FLD_BOREFACTOR
public static final java.lang.String FLD_FUNFACTOR
public static final java.lang.String FLD_TITLE
| Constructor Detail |
|---|
public SampleDataType(Patient pat,
java.lang.String title,
int funFactor,
int boreFactor)
title - funFactor - boreFactor - protected SampleDataType(java.lang.String id)
id - | Method Detail |
|---|
public void setFunnyThings(byte[] funny)
funny - public byte[] getFunnyStuff()
public java.lang.String getTitle()
public int getFunFactor()
public java.lang.String getLabel()
getLabel in interface IPersistentObjectgetLabel in class PersistentObjectpublic static SampleDataType load(java.lang.String id)
id -
protected java.lang.String getTableName()
getTableName in class PersistentObject
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||