Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String xqueryFilePath = "src/main/resources/xquery/splitArticleAndCL.xqy";
- Author retval = null;
- ArrayList<String> paramNames = new ArrayList<>();
- ArrayList<String> paramValues = new ArrayList<>();
- paramNames.add("username");
- paramValues.add(neki username po zelji);
- try {
- ResourceSet queryResults = authorRepository.genericRepository.runXQuery(
- "/db/project/authors",
- xqueryFilePath, paramNames, paramValues);
- ResourceIterator i = queryResults.getIterator();
- String authorFullPath = (String)i.nextResource().getContent();
- String[] authorPathSplit = authorFullPath.split("/");
- String authorId = authorPathSplit[authorPathSplit.length - 1];
- retval = authorRepository.find(authorId); //kako god si nazvao ovu methodu
- } finally {
- return retval;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement