|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.data.PersistentObject
ch.elexis.data.NamedBlob
public class NamedBlob
A named Blob is just that: An arbitrarly named piece of arbitrary data. The name must be unique (among NamedBlobs). We provide methods to store and retrieve data as Hashtables and Strings (Both will be stored in zip-compressed form)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
---|
PersistentObject.FieldType |
Field Summary | |
---|---|
static java.lang.String |
CONTENTS
|
static java.lang.String |
TABLENAME
|
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 |
Method Summary | |
---|---|
static void |
cleanup(java.lang.String prefix,
TimeTool older)
remove all BLOBS with a given name prefix and a last write time older than the given value needs the administrative right AC_PURGE |
static void |
createTable()
|
static boolean |
exists(java.lang.String id)
Ask if this NamedBlob exists |
static java.util.List<NamedBlob> |
findFromPrefix(java.lang.String prefix)
find all NamedBlox with a name with a given prefix. |
static java.util.List<NamedBlob> |
findSimilar(java.lang.String name)
Find all namedBlobs whose name match the given regular expression |
java.util.Hashtable |
getHashtable()
return the contents as Hashtable (will probably fail if the data was not stored using put(Hashtable) |
java.lang.String |
getLabel()
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern |
java.lang.String |
getString()
return the contents as String (will probably fail if the data was not stored using putString) |
static NamedBlob |
load(java.lang.String id)
Load or create a NamedBlob with a given Name. |
void |
put(java.util.Hashtable in)
Put the contents as Hashtable. |
void |
putString(java.lang.String string)
Store a String. |
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, isDragOK, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, 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 |
Field Detail |
---|
public static final java.lang.String TABLENAME
public static final java.lang.String CONTENTS
Method Detail |
---|
public java.util.Hashtable getHashtable()
public void put(java.util.Hashtable in)
in
- a Hashtablepublic java.lang.String getString()
public void putString(java.lang.String string)
string
- public java.lang.String getLabel()
PersistentObject
getLabel
in interface IPersistentObject
getLabel
in class PersistentObject
public static boolean exists(java.lang.String id)
id
- the unique name of the NamedBlob to query
public static NamedBlob load(java.lang.String id)
id
- the unique name
public static java.util.List<NamedBlob> findFromPrefix(java.lang.String prefix)
prefix
- the orefix to look for
public static java.util.List<NamedBlob> findSimilar(java.lang.String name)
name
- a regular expression to match
public static void cleanup(java.lang.String prefix, TimeTool older)
prefix
- older
- public static void createTable()
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |