Codota Logo
WikittyQueryMaker.wikitty
Code IndexAdd Codota to your IDE (free)

How to use
wikitty
method
in
org.nuiton.wikitty.query.WikittyQueryMaker

Best Java code snippets using org.nuiton.wikitty.query.WikittyQueryMaker.wikitty (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Asynchronous export by example.
 * 
 * @param format export format
 * @param e sample
 * @return job id
 */
public String asyncExportAllByExample(FORMAT format, BusinessEntityImpl e) {
  WikittyQuery query = new WikittyQueryMaker().wikitty(e).end();
  String result = asyncExportAllByQuery(format, query);
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Synchronous export by example.
 * 
 * @param format export format
 * @param e sample
 * @return export string
 */
public String syncExportAllByExample(FORMAT format, BusinessEntityImpl e) {
  WikittyQuery query = new WikittyQueryMaker().wikitty(e).end();
  String result = syncExportAllByQuery(format, query);
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Synchronous export by example.
 *
 * @param format export format
 * @param e      sample
 * @return export string
 */
public void syncExportAllByExample(FORMAT format, BusinessEntityImpl e,
                   Writer writer) {
  WikittyQuery query = new WikittyQueryMaker().wikitty(e).end();
  syncExportAllByQuery(format, query, writer);
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Null field are not used in search request.
 * 
 * @param e sample wikitty
 * @return
 */
public <E extends BusinessEntityImpl> E findByExample(E e) {
  long start = TimeLog.getTime();
  WikittyQuery query = new WikittyQueryMaker().wikitty(e).end();
  WikittyQueryResult<E> queryResult =
      findAllByQuery((Class<E>)e.getClass(),
      Collections.singletonList(query), true).get(0);
  E result = queryResult.peek();
  
  timeLog.log(start, "findByExample");
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Null field are not used in search request.
 *
 * @param e sample wikitty
 * @param first
 * @param limit
 * @param fieldFacet
 * @return
 */
public <E extends BusinessEntityImpl> WikittyQueryResult<E> findAllByExample(E e,
    int first, int limit, ElementField ... fieldFacet) {
  long start = TimeLog.getTime();
  WikittyQuery query = new WikittyQueryMaker().wikitty(e).end()
      .setOffset(first).setLimit(limit)
      .setFacetField(fieldFacet);
  WikittyQueryResult<E> result =
      findAllByQuery((Class<E>)e.getClass(),
      Collections.singletonList(query), false).get(0);
  
  timeLog.log(start, "findAllByExample<limit>");
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * @deprecated remove this undocumented method
 */
@Deprecated
protected void assign(Wikitty wikitty, WikittyTreeNodeImpl root, String path) {
  String[] nodeNames = path.split("/");
  WikittyTreeNodeImpl currentNode = root;
  outerloop : for( String nodeName : nodeNames ) {
    WikittyTreeNodeImpl node = new WikittyTreeNodeImpl();
    node.setName(nodeName);
    WikittyQuery query = new WikittyQueryMaker().wikitty(node.getWikitty()).end();
    List<String> wikittiesId = wikittyClient.findAllByQuery(query).getAll();
    List<Wikitty> wikitties = wikittyClient.restore(wikittiesId);
    for ( Wikitty child : wikitties ) {
      if (!child.hasExtension(WikittyTreeNode.EXT_WIKITTYTREENODE)) {
        continue;
      }
      node = new WikittyTreeNodeImpl(child);
      if ( node.getName().equals(nodeName) ) {
        currentNode = node;
        continue outerloop;
      }
    }
    Assert.fail( "Unable to find node " + nodeName + " inside " + currentNode.getName() );
  }
  currentNode.addAttachment(wikitty.getWikittyId());
  wikittyClient.store(currentNode.getWikitty());
}
origin: org.nuiton.wikitty/wikitty-api

w.addExtension(MOVIE_EXTENSION);
w.setField(MEDIA_EXTENSION_NAME, "type", "movie");
WikittyQuery query = new WikittyQueryMaker().wikitty(w).end();
query.addFacetField(new ElementField(MOVIE_EXTENSION_NAME,"authors"));
query.addFacetField(new ElementField(MOVIE_EXTENSION_NAME,"date"));
origin: org.nuiton.wikitty/wikitty-api

w.addExtension(MOVIE_EXTENSION);
w.setField(MOVIE_EXTENSION_NAME, "name", "The godfather");
WikittyQuery query = new WikittyQueryMaker().wikitty(w).end();
Wikitty resultFind = wikittyClient.findByQuery(Wikitty.class, query);
org.nuiton.wikitty.queryWikittyQueryMakerwikitty

Popular methods of WikittyQueryMaker

  • <init>
  • and
  • bw
  • containsOne
  • end
  • eq
  • close
  • condition
  • containsAll
  • eqIgnoreCaseAndAccent
  • extContainsAll
  • exteq
  • extContainsAll,
  • exteq,
  • ge,
  • getQuery,
  • gt,
  • isNotNull,
  • isNull,
  • keyword,
  • le,
  • like

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now