Examples of store()


Examples of abstrasy.Hash.store()

    int dd = c.get(Calendar.DAY_OF_MONTH);
    int mm = c.get(Calendar.MONTH);
    int yy = c.get(Calendar.YEAR);
        Node listOfPairs = Node.createHash();
        Hash hash=listOfPairs.getHash();
    hash.store(new Node(K_DAY), new Node(dd));
    hash.store(new Node(K_MONTH), new Node(mm + 1));
    hash.store(new Node(K_YEAR), new Node(yy));
    hash.store(new Node(K_HOUR), new Node(h));
    hash.store(new Node(K_MINUTE), new Node(m));
    hash.store(new Node(K_SECOND), new Node(s));
View Full Code Here

Examples of com.ateam.webstore.service.impl.EmployeeRolesService.store()

                        e = service.registerEmployee(add.getFirstName(), add.getLastName(), add.getEmail(), add.getPw(), new Long(1), "foo", ssn, "Employee", new Date(new java.util.Date().getTime()), "A1", new Double(100000));
                        RoleService rs = new RoleService();
                        Role role = rs.getById(new Integer(add.getRoleId()));
                        EmployeeRoles er = new EmployeeRoles(new Date(new java.util.Date().getTime()), e, role);
                        EmployeeRolesService ers = new EmployeeRolesService();
                        ers.store(er);
                            rv.setMessage("Employee addition Complete");
                            add.setResultMessage("Employee successfull added");
                    } catch (Exception e1) {
                      if (e != null) {
                        service.remove(e);
View Full Code Here

Examples of com.ateam.webstore.service.impl.ItemsOrderedService.store()

      order = service.store(order);
      l.info("order "+order.getId()+" created");
      ItemsOrderedService is = new ItemsOrderedService();
      for (ItemsOrdered item : items) {
        item.setOrders(order);
        is.store(item);
        l.info("item "+item.getProduct().getId()+" added to order");
      }
     
      submission.setResultMessage("Order Placed!");
     
View Full Code Here

Examples of com.ateam.webstore.service.impl.MessageService.store()

        service.store(scase);
       
        MessageService ms = new MessageService();
       
        Message mess = new Message(scase, person.getPerson(), false, 0, message);
        ms.store(mess);
        fs.setResultMessage("Feedback sent.");
       
        fs.setResultView(getMessageView("Feedback Sent.", "Send Feedback"));
       
      } catch (Exception e) {
View Full Code Here

Examples of com.ateam.webstore.service.impl.ProductsInCartService.store()

            if (quantity == 0) {
              pics.remove(pic);             
            }
            else {
              pic.setQuantity(quantity);
              pics.store(pic);
            }
          }
        }
        updateCart();
        fs.setResultView(getCartView());     
View Full Code Here

Examples of com.basemovil.vc.view.View.store()

            iconSet.store( index );
        }
        for( final Iterator i = views.values().iterator(); i.hasNext(); )
        {
            final View view = (View) i.next();
            view.store( index );
        }
        FileOutputStream fos = null;
        try
        {
            System.out.println( "Index size: " + store.getSize() + " bytes" );
View Full Code Here

Examples of com.basho.riak.client.bucket.Bucket.store()

                storedMetricHour = new BasicMetricHour(guiPath, accountName, hoursSince1970, valueType.toString(), unitType.toString());
            }

            storedMetricHour.addStatistic(new BasicLiveStatistics(guiPath, accountName, timeperiod, valueDouble, valueType.value(), unitType.value(), count));

            myBucket.store("" + guiPath, storedMetricHour).execute();
        } catch (RiakRetryFailedException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

Examples of com.basho.riak.client.bucket.RiakBucket.store()

        final String key = kvMessage.getKey ();
        // FIXME: use the vector clock...
        final IRiakObject riakObject = RiakObjectBuilder.newBuilder (RiakOperationFactory.this.bucket.getName (), key).addUsermeta (IOperationFactory.CONTENT_ENCODING, kvMessage.getContentEncoding ()).withContentType (kvMessage.getContentType ()).withValue (kvMessage.getData ()).build ();
        final RiakBucket riakBucket = RiakBucket.newRiakBucket (RiakOperationFactory.this.bucket);
        try {
          riakBucket.store (riakObject);
        } catch (final RiakException e) {
          // TODO: shutdown all connectors for this bucket?
          FallbackExceptionTracer.defaultInstance.traceIgnoredException (e);
          return false;
        }
View Full Code Here

Examples of com.caucho.quercus.env.SessionArrayValue.store()

  public void store(OutputStream out, Object obj)
    throws IOException
  {
    SessionArrayValue session = (SessionArrayValue) obj;

    session.store(Env.getInstance(), out);
  }
}
View Full Code Here

Examples of com.cetsoft.imcache.cache.offheap.bytebuffer.OffHeapByteBuffer.store()

    int length = 5, x = 4, y = 3;
    OffHeapByteBuffer buffer = new OffHeapByteBuffer(0,1000);
    SimpleObject object = new SimpleObject(x, y);
    for (int i = 0; i < length; i++) {
      byte [] payload = serialize(object);
      Pointer pointer = buffer.store(payload);
      SimpleObject simpleObject = deserialize(buffer.retrieve(pointer));
      if(object.getX()!=simpleObject.getX()&&object.getY()!=simpleObject.getY()){
        System.err.println("Problem");
      }
    }
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.