public class DataServiceImpl extends Object implements DataService
| Constructor and Description |
|---|
DataServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ModuleSession |
createSession(Module module)
Creates a new module session.
|
List<Object[]> |
findDistinctSessionPropertyNames(Module module)
Get all distinct session property names contained in a module
|
List<Object[]> |
findDistinctTrialPropertyNames(Module module)
Get all distinct trial property names contained in a module
|
void |
finishSession(ModuleSession moduleSession)
Finishes a module session.
|
ModuleSession |
getLastSession(Module module)
Get the last session of a module.
|
Messages |
getMessages() |
long |
getSessionCount(Module module,
boolean includeUnfinished)
Get the number of sessions in a module
|
List<ModuleSession> |
getSessions(Module module)
Load all session in a given module.
|
List<Trial> |
getTrials(Module module,
ModuleSession session,
Node node,
int maxResults)
Returns a list of trial instances for a given element or session.
|
List<Trial> |
getTrials(Module module,
ModuleSession session,
String elementNameLike,
String propertyNameLike,
int offset,
int maxResults)
Find the last x trials with given property of a given element
|
List<Trial> |
getTrials(ModuleSession session) |
void |
insertTrial(ModuleSession session,
Trial trial)
Inserts a trial object into the session.
|
List<Trial> |
loadAllTrials(Module module)
Load all trials of a given module and session.
|
void |
saveModule(Module module)
Save the module instance.
|
void |
saveSession(ModuleSession moduleSession)
Save a session without finishing it.
|
void |
setMessages(Messages messages) |
public void saveModule(Module module)
saveModule in interface DataServicepublic ModuleSession createSession(Module module)
createSession in interface DataServicepublic void saveSession(ModuleSession moduleSession)
saveSession in interface DataServicepublic void finishSession(ModuleSession moduleSession)
finishSession in interface DataServicepublic List<ModuleSession> getSessions(Module module)
getSessions in interface DataServicepublic void insertTrial(ModuleSession session, Trial trial)
insertTrial in interface DataServicepublic List<Trial> getTrials(ModuleSession session)
getTrials in interface DataServicepublic List<Trial> loadAllTrials(Module module)
public List<Trial> getTrials(Module module, ModuleSession session, Node node, int maxResults)
getTrials in interface DataServicepublic ModuleSession getLastSession(Module module)
getLastSession in interface DataServicemodule - public long getSessionCount(Module module, boolean includeUnfinished)
getSessionCount in interface DataServicemodule - the module to checkincludeUnfinished - whether to include unfinished module (modules without end time)public List<Trial> getTrials(Module module, ModuleSession session, String elementNameLike, String propertyNameLike, int offset, int maxResults)
getTrials in interface DataServicepublic List<Object[]> findDistinctTrialPropertyNames(Module module)
findDistinctTrialPropertyNames in interface DataServicepublic List<Object[]> findDistinctSessionPropertyNames(Module module)
findDistinctSessionPropertyNames in interface DataServicepublic void setMessages(Messages messages)
setMessages in interface DataServicepublic Messages getMessages()
getMessages in interface DataServiceCopyright © 2012. All Rights Reserved.