Examples of generate()


Examples of org.hibernate.id.UUIDHexGenerator.generate()

        if (key != null) {
            newStructEntry.setKey(String.valueOf(key));
        }
        else {
            UUIDHexGenerator idGenerator = new UUIDHexGenerator();
            newStructEntry.setKey(String.valueOf(idGenerator.generate((SessionImplementor) getSession(), newStructEntry)));
        }

        if (reference instanceof WGArea) {
            Area area = (Area) ((WGDocumentImpl) reference.getCore()).getEntity();
            newStructEntry.setArea(area);
View Full Code Here

Examples of org.hibernate.id.enhanced.Optimizer.generate()

  public void testBasicNoOptimizerUsage() {
    // test historic sequence behavior, where the initial values start at 1...
    SourceMock sequence = new SourceMock( 1 );
    Optimizer optimizer = OptimizerFactory.buildOptimizer( OptimizerFactory.NONE, Long.class, 1 );
    for ( int i = 1; i < 11; i++ ) {
      final Long next = ( Long ) optimizer.generate( sequence );
      assertEquals( i, next.intValue() );
    }
    assertEquals( 10, sequence.getTimesCalled() );
    assertEquals( 10, sequence.getCurrentValue() );
View Full Code Here

Examples of org.hivedb.util.functional.Generator.generate()

        return increment();
      }
      @SuppressWarnings("unchecked")
      private Object increment()
      {
        return incrementor.generate();
      }
    };
  }
}
View Full Code Here

Examples of org.infoset.xml.DocumentLoader.generate()

   public void load(URL url)
      throws IOException,XMLException
   {
      DocumentLoader loader = new SAXDocumentLoader();
      try {
         loader.generate(url.toURI(), new ItemDestination() {
            String separator = "/";
            TermNode current = null;
            public void send(Item item)
               throws XMLException
            {
View Full Code Here

Examples of org.infoset.xml.sax.SAXDocumentLoader.generate()

   public void load(URL url)
      throws IOException,XMLException
   {
      DocumentLoader loader = new SAXDocumentLoader();
      try {
         loader.generate(url.toURI(), new ItemDestination() {
            String separator = "/";
            TermNode current = null;
            public void send(Item item)
               throws XMLException
            {
View Full Code Here

Examples of org.intellij.grammar.generator.ParserGenerator.generate()

        assertTrue(file.delete());
      }
    }

    ParserGenerator parserGenerator = newTestGenerator();
    if (generatePsi) parserGenerator.generate();
    else parserGenerator.generateParser();

    List<String> messages = new ArrayList<String>();
    try {
      for (File file : filesToCheck) {
View Full Code Here

Examples of org.javacc.utils.JavaFileGenerator.generate()

      }

      final PrintWriter ostr = outputFile.getPrintWriter();
      JavaFileGenerator generator = new JavaFileGenerator(
          "/templates/cpp/" + name + ".template", Options.getOptions());
      generator.generate(ostr);
      ostr.close();
    } catch (IOException e) {
      System.err.println("Failed to create file: " + file + e);
      JavaCCErrors.semantic_error("Could not open file: " + file + " for writing.");
      throw new Error();
View Full Code Here

Examples of org.jayasoft.woj.common.util.password.PassGenerator.generate()

        super("PasswordTest");
    }
   
    public void testAlphaNumerical() {
        PassGenerator pg = AlphaNumericalPassGenerator.INSTANCE;
        String pass = pg.generate(10);
        assertEquals(10, pass.length());
        assertFalse(pg.generate(30).equals(pg.generate(30)));
    }
   
    public static void main(String[] args) {
View Full Code Here

Examples of org.jboss.aesh.cl.builder.CommandBuilder.generate()

                });
                */
        Settings settings = builder.create();
        CommandRegistry registry = new AeshCommandRegistryBuilder()
                .command(ExitCommand.class)
                .command(fooCommand.generate())
                .command(LsCommand.class)
                .command(TestConsoleCommand.class)
                .command(PromptCommand.class)
                .command(RunCommand.class)
                .command(GroupCommand.class)
View Full Code Here

Examples of org.jboss.arquillian.container.test.spi.client.deployment.DeploymentScenarioGenerator.generate()

      DeploymentScenarioGenerator generator = serviceLoader.get().onlyOne(
            DeploymentScenarioGenerator.class, AnnotationDeploymentScenarioGenerator.class);
     
      DeploymentScenario scenario = new DeploymentScenario();
     
      for(DeploymentDescription deployment : generator.generate(event.getTestClass()))
      {
         scenario.addDeployment(deployment);
      }

      validate(scenario);
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.