|
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 |
public interface IPersistentObjectManager
A PersistentObjectFactory can create Instances of any class that is in the classpath and implements IPersistentObject
Method Summary | |
---|---|
IPersistentObject |
create(java.lang.Class<?> typ,
java.lang.String id,
boolean persistent)
Create an IPersistentObject. |
IPersistentObject[] |
executeQuery(Query qbe)
|
IPersistentObject |
fetch(java.lang.Class<? extends IPersistentObject> typ,
java.lang.String id)
Fetch an IPersistentObject from the storage. |
void |
setBinding(java.util.Map<java.lang.String,java.lang.Class<? extends IPersistentObject>> map)
get an arbitrary Property from an IPersistentObject |
Method Detail |
---|
IPersistentObject fetch(java.lang.Class<? extends IPersistentObject> typ, java.lang.String id) throws ElexisCoreException
clazz
- full qualified class name of the Object to loadid
- GUID of the object to load
ElexisCoreException
- if access to the Object was not possible (e.g. due to missing class or missing
access to the storage)IPersistentObject create(java.lang.Class<?> typ, java.lang.String id, boolean persistent) throws ElexisCoreException
clazz
- full qualified class name of the Object to createid
- id of the Object to create. Can be null, then the id will be created by the
frameworkpersistent
- true if the Object should be persisted in the storage
ElexisCoreException
- if Creation wos not possiblevoid setBinding(java.util.Map<java.lang.String,java.lang.Class<? extends IPersistentObject>> map)
object
- IPersistentObject to querypropertyName
- name of the Property to read
ElexisStorageException
- id the storage is not readyIPersistentObject[] executeQuery(Query qbe)
|
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 |