* Find the last x trials with given property of a given element
*
*/
@SuppressWarnings("unchecked")
public List<Trial> getTrials(final Module module, final ModuleSession session, final String elementNameLike, final String propertyNameLike, final int offset, final int maxResults) {
final ModuleImpl moduleImpl = (ModuleImpl) module;
return (List<Trial>) moduleImpl.getTransactionTemplate().execute(
new TransactionCallback() {
public Object doInTransaction(TransactionStatus status) {
return moduleImpl.getTrialDAO().getTrials(moduleImpl, session, elementNameLike, propertyNameLike, offset, maxResults);
}
});
}