Package com.google.code.twig.annotation

Examples of com.google.code.twig.annotation.AnnotationObjectDatastore.find()


     */
    @Override
    @Access(AccessType.PUBLIC)
    public Set<String> getTasks() {
      ObjectDatastore datastore = new AnnotationObjectDatastore();
      QueryResultIterator<GaeTask> query = datastore.find()
          .type(GaeTask.class)
          .addFilter("agentId", FilterOperator.EQUAL, agentId).now();
     
      Set<String> taskIds = new HashSet<String>();
      while (query.hasNext()) {
View Full Code Here


   */
  private List<Message> find (String box, String since, String status)
      throws Exception {
    ObjectDatastore datastore = new AnnotationObjectDatastore();
   
    RootFindCommand<Message> command = datastore.find()
      .type(Message.class)
      .addFilter("agent", FilterOperator.EQUAL, getFirstUrl());
    if (box != null) {
      command = command.addFilter("box", FilterOperator.EQUAL, box);
    }
View Full Code Here

   * Clear inbox and outbox and everything the agent has stored.
   */
  @Override
  public void clear() throws Exception {
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    QueryResultIterator<Message> it = datastore.find()
      .type(Message.class)
      .addFilter("agent", FilterOperator.EQUAL, getFirstUrl())
      .now();
   
    while (it.hasNext()) {
View Full Code Here

      @Name("username") @Required(false) String username,
      @Name("email") @Required(false) String email)
      throws Exception {
    ObjectDatastore datastore = new AnnotationObjectDatastore();
   
    RootFindCommand<Registration> command = datastore.find()
      .type(Registration.class)
      .addFilter("directoryAgent", FilterOperator.EQUAL, getFirstUrl());
    if (agent != null) {
      command = command.addFilter("agent", FilterOperator.EQUAL, agent);
    }
View Full Code Here

      return;
    }   
   
    ObjectDatastore datastore = new AnnotationObjectDatastore();
   
    QueryResultIterator<Registration> it = datastore.find()
    .type(Registration.class)
    .addFilter("directoryAgent", FilterOperator.EQUAL, getFirstUrl())
    .addFilter(field, FilterOperator.EQUAL, value)
    .now();
 
View Full Code Here

   * Remove all registrations stored by this DirectoryAgent
   */
  @Override
  public void clear() throws Exception {
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    QueryResultIterator<Registration> it = datastore.find()
      .type(Registration.class)
      .addFilter("directoryAgent", FilterOperator.EQUAL, getFirstUrl())
      .now();
   
    while (it.hasNext()) {
View Full Code Here

   * @throws Exception
   */
  public List<Map<String, Object>> list(
      @Name("type") @Required(false) String type) throws Exception {
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    RootFindCommand<AgentMetaData> command = datastore.find()
      .type(AgentMetaData.class);
    if (type != null) {
      command = command.addFilter("type", FilterOperator.EQUAL, type);
    }

View Full Code Here

     * @return tasksIds
     */
    @Override
    public Set<String> getTasks() {
      ObjectDatastore datastore = new AnnotationObjectDatastore();
      QueryResultIterator<GaeTask> query = datastore.find()
          .type(GaeTask.class)
          .addFilter("agentId", FilterOperator.EQUAL, agentId).now();
     
      Set<String> taskIds = new HashSet<String>();
      while (query.hasNext()) {
View Full Code Here

     * @return tasksIds
     */
    @Override
    public Set<String> getTasks() {
      ObjectDatastore datastore = new AnnotationObjectDatastore();
      QueryResultIterator<GaeTask> query = datastore.find()
          .type(GaeTask.class)
          .addFilter("agentId", FilterOperator.EQUAL, agentId).now();
     
      Set<String> taskIds = new HashSet<String>();
      while (query.hasNext()) {
View Full Code Here

     */
    @Override
    @Access(AccessType.PUBLIC)
    public Set<String> getTasks() {
      ObjectDatastore datastore = new AnnotationObjectDatastore();
      QueryResultIterator<GaeTask> query = datastore.find()
          .type(GaeTask.class)
          .addFilter("agentId", FilterOperator.EQUAL, agentId).now();
     
      Set<String> taskIds = new HashSet<String>();
      while (query.hasNext()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.