|
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.notes.Note
public class Note
A Note is an arbitrary Text or BLOB with a name and optional keywords. A Note can consist of or contain external links to files in the file system or URLs. Notes are stored hierarchically in a tree-like structure (which ist mapped to a flat database table via a "parent"-field).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
---|
PersistentObject.FieldType |
Field Summary | |
---|---|
static java.lang.String |
FLD_CONTENTS
|
static java.lang.String |
FLD_KEYWORDS
|
static java.lang.String |
FLD_MIMETYPE
|
static java.lang.String |
FLD_REFS
|
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 | |
---|---|
protected |
Note()
|
|
Note(Note parent,
java.lang.String title,
byte[] contents,
java.lang.String mimetype)
Create a new Note with binary content |
|
Note(Note parent,
java.lang.String title,
java.lang.String text)
Create a new Note with text content |
protected |
Note(java.lang.String id)
|
Method Summary | |
---|---|
void |
addRef(java.lang.String ref)
Add a new external ref |
boolean |
delete()
Ein Objekt und ggf. dessen XID's aus der Datenbank löschen the object is not deleted but rather marked as deleted. |
java.util.List<Note> |
getChildren()
find the children of this note |
byte[] |
getContent()
retrieve the content of this note |
java.lang.String |
getKeywords()
retrieve the keywords that are associated with this note. |
java.lang.String |
getLabel()
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern |
Note |
getParent()
find the parent note of this note |
java.util.List<java.lang.String> |
getRefs()
Return externals references associated with this Note |
protected java.lang.String |
getTableName()
Jede abgeleitete Klasse muss deklarieren, in welcher Tabelle sie gespeichert werden will. |
static Note |
load(java.lang.String id)
|
void |
removeRef(java.lang.String ref)
remove an external reference |
void |
setContent(byte[] cnt)
Set new binary content to the current note. |
void |
setKeywords(java.lang.String kw)
Enter keywords for this note |
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_MIMETYPE
public static final java.lang.String FLD_KEYWORDS
public static final java.lang.String FLD_REFS
public static final java.lang.String FLD_CONTENTS
public static final java.lang.String FLD_TITLE
Constructor Detail |
---|
public Note(Note parent, java.lang.String title, java.lang.String text)
parent
- the parent note or null if this is a top level notetitle
- a Title for this notetext
- the text content of this notepublic Note(Note parent, java.lang.String title, byte[] contents, java.lang.String mimetype)
parent
- the parent note or null if this is a top level notetitle
- a Title for this notecontents
- the contents of this note inmimettype
- the mimetype of the contentsprotected Note(java.lang.String id)
protected Note()
Method Detail |
---|
public Note getParent()
public java.util.List<Note> getChildren()
public void setContent(byte[] cnt)
cnt
- the new contentpublic byte[] getContent()
public java.lang.String getKeywords()
public void setKeywords(java.lang.String kw)
kw
- a string with a comma separated list of keywords (at most 250 chars)public java.util.List<java.lang.String> getRefs()
public void addRef(java.lang.String ref)
ref
- a string representing an URLpublic void removeRef(java.lang.String ref)
ref
- the reference to removepublic java.lang.String getLabel()
PersistentObject
getLabel
in interface IPersistentObject
getLabel
in class PersistentObject
public boolean delete()
PersistentObject
delete
in class PersistentObject
protected java.lang.String getTableName()
PersistentObject
getTableName
in class PersistentObject
public static Note load(java.lang.String id)
|
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 |