Examples of wasSet()


Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    quote.setString("companyName", firstName);
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertEquals(Event.SET, e.getEventType());
    assertEquals(null, e.getOldValue());
    assertFalse(e.wasSet());

    quote.setString("companyName", "FBNT");
    e = o.getLastEvent();
    assertTrue(e.wasSet());
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    assertEquals(null, e.getOldValue());
    assertFalse(e.wasSet());

    quote.setString("companyName", "FBNT");
    e = o.getLastEvent();
    assertTrue(e.wasSet());

    assertEquals(firstName, e.getOldValue());
    assertEquals(++changeCount, o.getNotificationCount());
    assertEquals("companyName", e.getProperty().getName());
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    quote.setString("companyName", "3rdValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.isTouch());
    assertTrue(e.wasSet());

    quote.unset("companyName");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet());
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    assertTrue(e.wasSet());

    quote.unset("companyName");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet());
  

    quote.set("companyName", "4thValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

  

    quote.set("companyName", "4thValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertFalse(e.wasSet());
   
    assertEquals(Event.NO_INDEX, e.getPosition());
   
    DataObject child = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    assertEquals(Event.NO_INDEX, e.getPosition());
   
    DataObject child = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertFalse(e.wasSet());
    assertEquals(0, e.getPosition());
    assertEquals(Event.ADD, e.getEventType());
   
    DataObject child2 = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
View Full Code Here

Examples of org.apache.tuscany.sdo.api.Event.wasSet()

    assertEquals(Event.ADD, e.getEventType());
   
    DataObject child2 = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet())// the quotes property was previously set to a non empty list
    assertEquals(1, e.getPosition());
   
    child2.setString("companyName", "subsidiary");
   
    assertEquals(changeCount /* no ++ */, o.getNotificationCount()); // not monitoring the child
View Full Code Here

Examples of org.hornetq.rest.queue.Acknowledgement.wasSet()

   {
      // we synchronize just in case a failed request is still processing
      synchronized (consumer)
      {
         Acknowledgement ack = consumer.getAck();
         if (ack == null || ack.wasSet())
         {
            AcknowledgedQueueConsumer.setAcknowledgeNextLink(serviceManager.getLinkStrategy(), builder, uriInfo, uriInfo.getMatchedURIs().get(1) + "/acknowledged/" + consumer.getId(), Long.toString(consumer.getConsumeIndex()));
         }
         else
         {
View Full Code Here

Examples of org.hornetq.rest.queue.Acknowledgement.wasSet()

   {
      // we synchronize just in case a failed request is still processing
      synchronized (consumer)
      {
         Acknowledgement ack = consumer.getAck();
         if (ack == null || ack.wasSet())
         {
            AcknowledgedQueueConsumer.setAcknowledgeNextLink(serviceManager.getLinkStrategy(), builder, uriInfo, uriInfo.getMatchedURIs().get(1) + "/acknowledged/" + consumer.getId(), Long.toString(consumer.getConsumeIndex()));
         }
         else
         {
View Full Code Here

Examples of org.hornetq.rest.queue.Acknowledgement.wasSet()

   {
      // we synchronize just in case a failed request is still processing
      synchronized (consumer)
      {
         Acknowledgement ack = consumer.getAck();
         if (ack == null || ack.wasSet())
         {
            AcknowledgedQueueConsumer.setAcknowledgeNextLink(serviceManager.getLinkStrategy(), builder, uriInfo, uriInfo.getMatchedURIs().get(1) + "/acknowledged/" + consumer.getId(), Long.toString(consumer.getConsumeIndex()));
         }
         else
         {
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.