Examples of create()


Examples of fi.foyt.hibernate.gae.search.persistence.dao.DirectoryDAO.create()

    this.indexName = directoryProviderName;

    DirectoryDAO directoryDAO = new DirectoryDAO();
    Directory dir = directoryDAO.findByName(this.indexName);
    if (dir == null) {
      dir = directoryDAO.create(indexName);
    }

    this.directory = new GaeDirectory(dir);
  }

Examples of fi.foyt.hibernate.gae.search.persistence.dao.FileDAO.create()

 
  private synchronized File getFile() {
    FileDAO fileDAO = new FileDAO();
    File file = fileDAO.findByDirectoryAndName(directory.getDirectory(), fileName);
    if (file == null) {
      file = fileDAO.create(directory.getDirectory(), fileName, 0l, System.currentTimeMillis());
    }
   
    return file;
  }

Examples of fi.foyt.hibernate.gae.search.persistence.dao.FileSegmentDAO.create()

  }
 
  protected synchronized FileSegment getNewSegment() {
    int newIndex = getFileSegmentsCount();
    FileSegmentDAO fileSegmentDAO = new FileSegmentDAO();
    return fileSegmentDAO.create(getFile(), new Long(newIndex), null);
  }
 
  private synchronized File getFile() {
    FileDAO fileDAO = new FileDAO();
    File file = fileDAO.findByDirectoryAndName(directory.getDirectory(), fileName);

Examples of fi.foyt.hibernate.gae.search.persistence.dao.LockDAO.create()

      this.name = name;
    }

    public void lock() {
      LockDAO lockDAO = new LockDAO();
      lockDAO.create(directory, name);
    }

    public void lockInterruptibly() throws InterruptedException {
      lock();
    }

Examples of fi.foyt.hibernate.gae.search.persistence.dao.WorkListDAO.create()

    boolean someFailureHappened = false;
    try {
     
      try {
        workListDAO.create(directory, serializer.toSerializedModel(workList));
        LOG.info("Scheduled " + workList.size() + " works in " + directory.getName() + " directory to be performed in future");
      } catch (Exception e) {
        someFailureHappened = true;
        errorContextBuilder.errorThatOccurred(e.getCause());
      }

Examples of fitnesse.testsystems.TestSystemFactory.create()

      factory = testSystemFactories.get(descriptor.getTestSystemType().toLowerCase());
    }
    if (factory == null) {
      throw new RuntimeException(String.format("Unknown test system: '%s'", descriptor.getTestSystemType()));
    }
    return factory.create(descriptor);
  }

  static class HtmlSlimTestSystemFactory implements TestSystemFactory {
    private final SlimTableFactory slimTableFactory;
    private final CustomComparatorRegistry customComparatorRegistry;

Examples of freemarker.ext.util.ModelFactory.create()

                }
                factory = wrapper.getModelFactory(clazz);
                classToFactory.put(clazz, factory);
            }
        }
        return factory.create(object, wrapper);
    }
}

Examples of gaetest.shared.TestRequestFactory.UserRequest.create()

        // Then, we send the input to the server.
        sendButton.setEnabled(false);
        textToServerLabel.setText(textToServer);
        serverResponseLabel.setText("");
        UserRequest userContext = requests.userRequest();
        UserProxy user = userContext.create(UserProxy.class);
        user.setName(textToServer);
        userContext.save(user).fire(new Receiver<Long>() {

          @Override
          public void onSuccess(Long response) {

Examples of games.stendhal.server.core.account.AccountCreator.create()

    onExit(object);
  }

  public AccountResult createAccount(final String username, final String password, final String email) {
    final AccountCreator creator = new AccountCreator(username, password, email);
    return creator.create();
  }

  public CharacterResult createCharacter(final String username, final String character, final RPObject template) {
    final CharacterCreator creator = new CharacterCreator(username, character, template);
    return creator.create();

Examples of games.stendhal.server.core.account.CharacterCreator.create()

    return creator.create();
  }

  public CharacterResult createCharacter(final String username, final String character, final RPObject template) {
    final CharacterCreator creator = new CharacterCreator(username, character, template);
    return creator.create();
  }

  public RPServerManager getRPManager() {
    return rpman;
  }
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.