private Set<Document> supportedDocuments() { return queryResultsCache.execute(new Callable<Set<Document>>() { @Override public Set<Document> call() throws Exception { return supportedDocumentsNoCache(supportingDocumentCandidate); } }, Document_supports.class, "supportedDocuments", supportingDocumentCandidate); }
private Set<Document> supportedDocuments() { return queryResultsCache.execute(new Callable<Set<Document>>() { @Override public Set<Document> call() throws Exception { return supportedDocumentsNoCache(supportingDocumentCandidate); } }, Document_supports.class, "supportedDocuments", supportingDocumentCandidate); }
/** * All templates which are applicable to the domain object's atPath, and which can be created and attached to at * least one domain object. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForCreateAndAttach(domainObject), getClass(), "$$", domainObject); }
@Programmatic public UserSetting find( final String user, final String key) { return queryResultsCache.execute(new Callable<UserSetting>() { @Override public UserSetting call() throws Exception { return doFind(user, key); } }, UserSettingRepository.class, "find", user, key); }
/** * All templates which are applicable to the domain object's atPath, and which can be previewed. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForPreview(domainObject), getClass(), "$$", domainObject); }
/** * All templates which are applicable to the domain object's atPath, and which can be created and attached to at * least one domain object. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForCreateAndAttach(domainObject), getClass(), "$$", domainObject); }
/** * All templates which are applicable to the domain object's atPath, and which can be created and attached to at * least one domain object. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForCreateAndAttach(domainObject), getClass(), "$$", domainObject); }
/** * All templates which are applicable to the domain object's atPath, and which can be previewed. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForPreview(domainObject), getClass(), "$$", domainObject); }
@Programmatic public ApplicationSetting find(final String key) { return queryResultsCache.execute(new Callable<ApplicationSetting>() { @Override public ApplicationSetting call() throws Exception { return doFind(key); } }, ApplicationSettingRepository.class, "find", key); }
/** * All templates which are applicable to the domain object's atPath, and which can be created and attached to at * least one domain object. */ public List<DocumentTemplate> choices0$$() { return queryResultsCache.execute( () -> documentTemplateService.documentTemplatesForCreateAndAttach(domainObject), getClass(), "$$", domainObject); }
public List<Document> choices0Exec() { return queryResultsCache.execute(() -> findAttachedToDocumentsNoCache(), Document_removeAttachment.class, "choices0Exec", document); }
public List<Document> choices0Exec() { return queryResultsCache.execute(() -> findAttachedToDocumentsNoCache(), Document_removeAttachment.class, "choices0Exec", document); }
@Programmatic public List<ToDoItem> findByAtPathAndDescriptionContains( final String atPath, final String description) { return queryResultsCache.execute( () -> getToDoItemRepositoryImpl().findByAtPathAndDescriptionContains(atPath, description), ToDoItemRepository.class, "findByAtPathAndDescriptionContains", atPath, description); }
@Programmatic public DocumentType findByReference( final String reference) { return queryResultsCache.execute( () -> repositoryService.firstMatch( new QueryDefault<>(DocumentType.class, "findByReference", "reference", reference)), DocumentTypeRepository.class, "findByReference", reference); } //endregion
@Programmatic public DocumentType findByReference( final String reference) { return queryResultsCache.execute( () -> repositoryService.firstMatch( new QueryDefault<>(DocumentType.class, "findByReference", "reference", reference)), DocumentTypeRepository.class, "findByReference", reference); } //endregion
@Programmatic public List<ToDoItem> findByAtPathAndCategory(final String atPath, final Category category) { return queryResultsCache.execute( () -> getToDoItemRepositoryImpl().findByAtPathAndCategory(atPath, category), ToDoItemRepository.class, "findByAtPathAndCategory", atPath, category); }
@Action( domainEvent = ActionDomainEvent.class, semantics = SemanticsOf.SAFE ) @ActionLayout( contributed = Contributed.AS_ASSOCIATION ) @CollectionLayout(defaultView = "table") public List<Paperclip> coll() { return queryResultsCache.execute( () -> paperclipRepository.findByDocument(document) , getClass(), "$$", document); }
@Programmatic public List<ToDoItem> findByAtPathAndComplete( final String atPath, final boolean complete) { return queryResultsCache.execute( () -> getToDoItemRepositoryImpl().findByAtPathAndComplete(atPath, complete), ToDoItemRepository.class, "findByAtPathAndComplete", atPath, complete); }
@Action( domainEvent = ActionDomainEvent.class, semantics = SemanticsOf.SAFE ) @ActionLayout( contributed = Contributed.AS_ASSOCIATION ) @CollectionLayout(defaultView = "table") public List<Paperclip> coll() { return queryResultsCache.execute( () -> paperclipRepository.findByDocument(document) , getClass(), "$$", document); }
@Test public void execute() { String value = queryResultsCache.execute(new Callable<String>(){ @Override public String call() throws Exception { return "foo"; } }, QueryResultsCacheTest.class, "execute"); assertThat(value, is("foo")); }