Examples of update()


Examples of org.h2.store.PageStore.update()

        p2.entryCount = entryCount;
        p2.offsets = offsets;
        p2.onlyPosition = onlyPosition;
        p2.parentPageId = parentPageId;
        p2.start = start;
        store.update(p2);
        if (parentPageId == ROOT) {
            index.setRootPageId(session, newPos);
        } else {
            Page p = store.getPage(parentPageId);
            if (!(p instanceof PageBtreeNode)) {
View Full Code Here

Examples of org.hibernate.Session.update()

        DiaryReplyBean prb = (DiaryReplyBean)rpls.get(i);
        if(prb.getUser()!=null)
          prb.getUser().getCount().incArticleReply(1);
      }     
     
      ssn.update(log);
      commit();     
    }catch(HibernateException e){
      rollback();
      throw e;
    }
View Full Code Here

Examples of org.hibernate.StatelessSession.update()

    assertNotNull( initVersion );
    tx.commit();
   
    tx = ss.beginTransaction();
    doc.setText("blah blah blah .... blah");
    ss.update(doc);
    assertNotNull( doc.getLastModified() );
    assertNotSame( doc.getLastModified(), initVersion );
    tx.commit();
   
    tx = ss.beginTransaction();
View Full Code Here

Examples of org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy.update()

          break;
        }
        case UPDATE: {
          final SoftLock lock = naturalIdCacheAccessStrategy.lockItem( naturalIdCacheKey, null );
          naturalIdCacheAccessStrategy.update( naturalIdCacheKey, pk );

          ( (EventSource) this.session ).getActionQueue().registerProcess(
              new AfterTransactionCompletionProcess() {
                @Override
                public void doAfterTransactionCompletion(boolean success, SessionImplementor session) {
View Full Code Here

Examples of org.hibernate.classic.Session.update()

    {
      miembro.setRole(roleMiembro);
     
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
      session.beginTransaction();
        session.update(miembro);
        session.getTransaction().commit();
    }
   
  }
View Full Code Here

Examples of org.hibernate.persister.entity.EntityPersister.update()

    else {
      ck = null;
    }

    if ( !veto ) {
      persister.update(
          id,
          state,
          dirtyFields,
          hasDirtyCollection,
          previousState,
View Full Code Here

Examples of org.hibernate.search.FullTextSession.update()

    tx = s.beginTransaction();

    Item loaded = (Item) s.get( Item.class, item.getId() );
    loaded.setDescription( "Ferrari" );

    s.update( loaded );
    tx.commit();

    tx = s.beginTransaction();

    parser = new QueryParser( TestConstants.getTargetLuceneVersion(), "id", TestConstants.standardAnalyzer );
View Full Code Here

Examples of org.hivedb.meta.persistence.HiveSemaphoreDao.update()

  @Test
  public void testUpdate() throws Exception {
    HiveSemaphoreDao hsd = new HiveSemaphoreDao(getDataSource(getConnectString(getHiveDatabaseName())));
    HiveSemaphore hs = hsd.create();
    hs.incrementRevision();
    hsd.update(hs);
   
    HiveSemaphore hs2 = hsd.get();
    Assert.assertEquals(hs.getRevision(),hs2.getRevision());
    Assert.assertEquals(hs.getStatus(),hs2.getStatus());
  }
View Full Code Here

Examples of org.hivedb.meta.persistence.NodeDao.update()

    full.setDatabaseName("notBlahDatabase");

    minimal.setUsername("minimus");
    minimal.setPassword("maximus");

    dao.update(full);
    dao.update(minimal);

    List<Node> nodes = dao.loadAll();
    assertEquals(2 + count, nodes.size());
View Full Code Here

Examples of org.hsqldb.navigator.RowSetNavigatorData.update()

            }

            if (groupData == null) {
                navigator.add(data);
            } else if (isAggregated) {
                navigator.update(groupData, data);
            }

            int rowCount = navigator.getSize();

            if (rowCount == session.resultMaxMemoryRows && !isAggregated
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.