Examples of persist()


Examples of org.springframework.data.neo4j.aspects.support.domain.Account2.persist()

    @Test @Transactional
    public void testDefaultFailOnDuplicateSetToTrueSavesCorrectlyWhenUpdating() {
        final String UPDATED_NAME = "Mr George - Current Account 2";
        Account2 acc1 = new Account2("111-222-333", "Mr George - Current Account 1");
        acc1.persist();
        acc1.setName(UPDATED_NAME);
        acc1.persist(); // This should save fine

        Account2 loadedAcc1 = account2Repository.findBySchemaPropertyValue("accountNumber","111-222-333");
        assertNotNull(loadedAcc1);
View Full Code Here

Examples of org.springframework.data.neo4j.core.EntityState.persist()

        @Override
        public void valueChanged(NodeBacked nodeBacked, Object oldVal, Object newVal) {
            if (newVal != null) {
                EntityState entityState =nodeBacked.getEntityState();
                entityState.persist();
            }
        }
    }
}
View Full Code Here

Examples of org.springframework.data.neo4j.partial.model.User.persist()

        User user = new User();
        user.setAge(35);
        user.setNickname(name);
        em.persist(user);
        em.flush();
        return user.persist();
    }

    @Test
    @Transactional
    public void jpaUserCanHaveGraphRelationships() {
View Full Code Here

Examples of org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark.persist()

    if (shark == null) {
      shark = new LoanShark();
      shark.setName(quote.getSharkName());
      shark.setCounter(new Long(0));
      shark.setAverageRate(0.0d);
      shark.persist();
    }
    Double current = shark.getCounter() * shark.getAverageRate();
    shark.setCounter(shark.getCounter().longValue() + 1);
    shark.setAverageRate((current + quote.getSharkRate()) / shark.getCounter());
  }
View Full Code Here

Examples of org.takadb.editor.database.entities.CategoryEntity.persist()

    new File(savePath).mkdirs();

    Iterator iter = getAllCategories().iterator();
    while (iter.hasNext()) {
      CategoryEntity category = (CategoryEntity)iter.next();
      category.persist();
    }

  }

  public void saveAllRadicals() {
View Full Code Here

Examples of org.takadb.editor.database.entities.CharacterEntity.persist()

    new File(savePath).mkdirs();

    Iterator iter = getAllCharacters().iterator();
    while (iter.hasNext()) {
      CharacterEntity character = (CharacterEntity)iter.next();
      character.persist();
    }

  }

  public void saveAllElements() {
View Full Code Here

Examples of org.takadb.editor.database.entities.ElementEntity.persist()

    new File(savePath).mkdirs();

    Iterator iter = getAllElements().iterator();
    while (iter.hasNext()) {
      ElementEntity element = (ElementEntity)iter.next();
      element.persist();
    }

  }

  public void saveAllCategories() {
View Full Code Here

Examples of org.takadb.editor.database.entities.RadicalEntity.persist()

    new File(savePath).mkdirs();

    Iterator iter = getAllRadicals().iterator();
    while (iter.hasNext()) {
      RadicalEntity radical = (RadicalEntity)iter.next();
      radical.persist();
    }

  }

View Full Code Here

Examples of org.wso2.carbon.core.transports.metering.RequestDataPersister.persist()

            requestDataPersister = (RequestDataPersister) meteringDataPersistTracker.getService();
        } finally {
            meteringDataPersistTracker.close();
        }
        if (requestDataPersister != null) {
            requestDataPersister.persist(wrappedRequest, wrappedResponse);
        }
    }

    protected void handleRestRequest(HttpServletRequest request,
                                     HttpServletResponse response) throws IOException,
View Full Code Here

Examples of palmed.io.IRecord.persist()

    {
        final Enumeration records = records_.elements();
        while( records.hasMoreElements() )
        {
            final IRecord record = (IRecord)records.nextElement();
            record.persist();
            record.marshall( stream );
        }
    }

    /**
 
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.