Examples of update()


Examples of org.dmlite.model.meta.ModelMeta.update()

      }

      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        updated = modelMeta.update(this, entity);
      }
    } catch (Exception e) {
      log.error("Error in Entity.update: " + e.getMessage());
      throw new ActionException(e.getMessage(), entityAction);
    }
View Full Code Here

Examples of org.domain.model.component.user.Users.update()

      User dzenan = (User) users.retrieveByProperty("firstName",
          "Dzenan S.");
      if (dzenan != null) {
        User dzenan2 = (User) dzenan.copy();
        dzenan2.setFirstName("Dzenan");
        users.update(dzenan, dzenan2);
      }
    } catch (ActionException ae) {
      log.info("Update user problem: " + ae.getMessage());
    }
  }
View Full Code Here

Examples of org.drools.StatefulSession.update()

        assertEquals( "JavaRuleConstraint was here",
                      outList.get( 3 ) );

        outList.clear();
        inList.remove( new Integer( 1 ) );
        session.update( handle,
                        inList );
        session.startProcess( "ConstraintDialects" );
        assertEquals( 3,
                      outList.size() );
        assertEquals( "JavaCodeConstraint was here",
View Full Code Here

Examples of org.drools.WorkingMemory.update()

                      results.size() );
        assertEquals( "NOT",
                      results.get( 0 ) );

        workingMemory.insert( new SecondClass() );
        workingMemory.update( handle,
                              first );
        workingMemory.fireAllRules();
        assertEquals( 2,
                      results.size() );
        assertEquals( "NOT",
View Full Code Here

Examples of org.drools.common.InternalWorkingMemory.update()

        assertTrue( predicate.isAllowedCachedLeft( predicateContext,
                                                   stilton ) );

        cheddar.setPrice( 9 );
        wm.update( f0,
                   cheddar );

        assertFalse( predicate.isAllowedCachedLeft( predicateContext,
                                                    stilton ) );
    }
View Full Code Here

Examples of org.drools.common.InternalWorkingMemoryActions.update()

                      cancelled.size() );

        final Activation item = ((ActivationCreatedEvent) created.get( 2 )).getActivation();

        // simulate a modify inside a consequence
        wm.update( stiltonHandle,
                   stilton,
                   item.getRule(),
                   item );

        // with true modify, no reactivations should be triggered
View Full Code Here

Examples of org.drools.core.StatefulSession.update()

        // problems should be detected
        sensor.setPressure( 200 );
        sensor.setTemperature( 200 );
       
        handle = getFactHandle( handle, workingMemory );
        workingMemory.update( handle,
                              sensor );
       
        workingMemory = getSerialisedStatefulSession( workingMemory );

        workingMemory.fireAllRules();
View Full Code Here

Examples of org.drools.core.WorkingMemory.update()

        assertTrue( eval.isAllowed( tuple,
                                    wm,
                                    evalContext ) );

        cheddar.setPrice( 9 );
        wm.update( f0,
                   cheddar );
        assertFalse( eval.isAllowed( tuple,
                                     wm,
                                     evalContext ) );
    }
View Full Code Here

Examples of org.drools.core.common.AbstractWorkingMemory.update()

        EqualityKey key = tms.get( string );
        assertSame( fd,
                    key.getFactHandle() );
        assertEquals( 1, key.size() );

        workingMemory.update( fd,
                                    string );

        assertEquals( 1,
                      tms.getEqualityKeyMap().size() );
        key = tms.get( string );
View Full Code Here

Examples of org.drools.core.common.InternalWorkingMemory.update()

        assertTrue( eval.isAllowed( tuple,
                                    wm,
                                    evalContext ) );

        cheddar.setPrice( 9 );
        wm.update( f0,
                   cheddar );
        assertFalse( eval.isAllowed( tuple,
                                     wm,
                                     evalContext ) );
    }
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.