Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.befunde
Class DataAccessor

java.lang.Object
  extended by ch.elexis.befunde.DataAccessor
All Implemented Interfaces:
IDataAccess

public class DataAccessor
extends java.lang.Object
implements IDataAccess

Access data stored in Befunde Access syntax is: Befunde-Data:Patient:all:BD

Author:
gerry
See Also:
IDataAccess

Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.elexis.util.IDataAccess
IDataAccess.Element, IDataAccess.TYPE
 
Field Summary
 
Fields inherited from interface ch.elexis.util.IDataAccess
INVALID_PARAMETERS, OBJECT_NOT_FOUND
 
Constructor Summary
DataAccessor()
           
 
Method Summary
 java.lang.String getDescription()
          Short description to the data accessor
 java.util.List<IDataAccess.Element> getList()
          return a list of all data provided by this interface
 java.lang.String getName()
          Name of the data accessor to display
 Result<java.lang.Object> getObject(java.lang.String descriptor, PersistentObject dependentObject, java.lang.String dates, java.lang.String[] params)
          return the Object denoted by the given description
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataAccessor

public DataAccessor()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: IDataAccess
Short description to the data accessor

Specified by:
getDescription in interface IDataAccess

getName

public java.lang.String getName()
Description copied from interface: IDataAccess
Name of the data accessor to display

Specified by:
getName in interface IDataAccess

getList

public java.util.List<IDataAccess.Element> getList()
Description copied from interface: IDataAccess
return a list of all data provided by this interface

Specified by:
getList in interface IDataAccess
Returns:
a (possibly empty) List of Elements

getObject

public Result<java.lang.Object> getObject(java.lang.String descriptor,
                                          PersistentObject dependentObject,
                                          java.lang.String dates,
                                          java.lang.String[] params)
return the Object denoted by the given description

Specified by:
getObject in interface IDataAccess
Parameters:
descriptor - descrion of the data: dataname.row if row is omitted: all rows
dependentObject - ad this time, only Patient is supported
dates - one off all,first, last,date
params - not used
Returns:
some object depending of the request

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis