Examples of Store


Examples of com.impetus.kundera.graph.Store

     * .
     */
    @Test
    public void testGetObjectGraph()
    {
        Store store = new Store(1, "Food Bazaar, Noida");
        store.addCounter(new BillingCounter(1, "A"));
        store.addCounter(new BillingCounter(2, "B"));
        store.addCounter(new BillingCounter(3, "C"));

        ObjectGraph graph = graphBuilder.getObjectGraph(store, null);

        Assert.assertNotNull(graph);
        Node headNode = graph.getHeadNode();
View Full Code Here

Examples of com.jpoweredcart.common.entity.setting.Store

public class StoreRowMapper implements RowMapper<Store>{

  @Override
  public Store mapRow(ResultSet rs, int rowNum) throws SQLException {
   
    Store store = new Store();
    store.setId(rs.getInt("store_id"));
    store.setName(rs.getString("name"));
    store.setUrl(rs.getString("url"));
    store.setSsl(rs.getBoolean("ssl"));
   
    return store;
  }
View Full Code Here

Examples of com.mysema.query.jdo.test.domain.Store

                // Product of Store
                Product product = new Product(productName,"A",100.0,1, publicationDate);
                pm.makePersistent(product);

                // Store instances
                Store store = new Store();
                store.getProducts().add(product);
                store.getProductsByName().put(productName, product);
                pm.makePersistent(store);
            }
            tx.commit();
        } finally {
            if (tx.isActive()) {
View Full Code Here

Examples of com.nearinfinity.honeycomb.Store

    }

    @Test
    public void testDefaultTablespaceIsUsed() {
        StoreFactory factory = createFactory();
        Store returnedStore = factory.createStore(tableName);
        assertEquals(returnedStore, this.store);
    }
View Full Code Here

Examples of com.sleepycat.persist.impl.Store

     */
    public RawStore(Environment env, String storeName, StoreConfig config)
        throws StoreNotFoundException, DatabaseException {

        try {
            store = new Store(env, storeName, config, true /*rawAccess*/);
        } catch (StoreExistsException e) {
            /* Should never happen, ExclusiveCreate not used. */
            throw DbCompat.unexpectedException(e);
        } catch (IncompatibleClassException e) {
            /* Should never happen, evolution is not performed. */
 
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.Store

    // 4. write prepared txns (since last checkpoint) to prepared store
    // 5. sync prepareTxnStore
    // 6. reset txn log
    // 7. remove committed txns (since last checkpoint) from prepared store

    Store store = null;
    try {
      store = Globals.getStore();
    } catch (Throwable e) {
      logger.logStack(Logger.ERROR, "failed to getStore", e);

      // fatal
    }

    try {

      // 1. get an exclusive lock on txnLog to prevent any other updates
      // occurring
      store.txnLogExclusiveLock.lock();

      // 2. wait for all logged commits to be written to message store
      localTransactionManager.waitForPlayingToMessageStoreCompletion();
      clusterTransactionManager.waitForPlayingToMessageStoreCompletion();
      remoteTransactionManager.waitForPlayingToMessageStoreCompletion();
     
      //2.1 wait for pending removes to be completed for logged last ack on message
      loggedMessageHelper.waitForPendingRemoveCompletion();

      // 3. sync the message store
      store.syncStoreOnCheckpoint();

      // 4. write prepared transactions to prepared transaction store
      localTransactionManager
          .writePreparedTransactionsToPreparedTxnStoreOnCheckpoint();
      clusterTransactionManager
View Full Code Here

Examples of com.swinarta.sunflower.core.model.Store

    Serializable resp = null;
    String remarks = RequestUtil.getString(req.getData().get("remarks"));
    String fromStoreCode = RequestUtil.getString(req.getData().get("fromStoreCode"));
    String toStoreCode = RequestUtil.getString(req.getData().get("toStoreCode"));
   
    Store fromStore = coreManager.getStore(fromStoreCode);
    Store toStore = coreManager.getStore(toStoreCode);
       
    TransferOrder transfer = new TransferOrder();
    transfer.setTransferDate(new Date());
    transfer.setFromStoreCode(fromStoreCode);
    transfer.setToStoreCode(toStoreCode);
    transfer.setTransferId("temp");
    transfer.setRemarks(remarks);
    transfer.setStatus(com.swinarta.sunflower.core.model.TransferOrder.Status.NEW);
   
   
    try {
      TransferOrder transferResp = coreManager.save(TransferOrder.class, transfer);
      transferResp.setTransferId(TransferUtil.constructCode(transfer.getTransferDate(), fromStore.getId(), toStore.getId(), transferResp.getId()));
      transferResp = coreManager.save(TransferOrder.class, transferResp);
     
      DisplayTransferOrder dto = mapper.map(transferResp, DisplayTransferOrder.class);
      resp = dto;
     
View Full Code Here

Examples of com.taobao.common.store.Store

            @Override
            public Boolean call() throws Exception {
                final AtomicLong count = new AtomicLong(0);
                try {

                    final Store store = LocalMessageStorageManager.this.getOrCreateStore(topic, partition);

                    this.innerRecover(store, recoverer, count, name);
                }
                catch (final Throwable e) {
                    log.error("SendRecover������Ϣ�ָ�ʧ��,name=" + name, e);
                }
                finally {
                    log.info("SendRecoverִ������Ƴ����ͻָ�����,name=" + name + ",�ָ���Ϣ" + count.get() + "��");
                    LocalMessageStorageManager.this.topicRecoverTaskMap.remove(name);
                }
                return true;
            }


            private void innerRecover(final Store store, final MessageRecoverer recoverer, final AtomicLong count,
                    final String name) throws IOException, Exception {
                final Iterator<byte[]> it = store.iterator();
                while (it.hasNext()) {
                    final byte[] key = it.next();
                    final Message msg =
                            (Message) LocalMessageStorageManager.this.deserializer.decodeObject(store.get(key));
                    recoverer.handle(msg);
                    try {
                        store.remove(key);
                        count.incrementAndGet();
                        if (count.get() % 20000 == 0) {
                            log.info("SendRecover " + name + "�ѻָ���Ϣ����:" + count.get());
                        }
                    }
View Full Code Here

Examples of com.zosatapo.commons.store.Store

      return null;
    }
    String connDriver = props.getProperty(prefix + "." + Store.STORE_DRIVER);
    String connUSR = props.getProperty(prefix + "." + Store.STORE_USERNAME);
    String connPWD = props.getProperty(prefix + "." + Store.STORE_PASSWORD);
    return new Store(connType, connURL, connUSR, connPWD, connDriver);
  }
View Full Code Here

Examples of de.mhus.lib.test.adb.model.Store

      assertEquals(count, 0);

      // -------------
      // test comfortable object
     
      Store s1 = new Store();
      s1.setName("Creasy Bookstore");
      s1.setAddress("The Oaks\nDublin");
      s1.create(manager);
     
      s1.setAddress("The Lakes\nDublin");
      s1.save();
     
      // test change in another session and reload
      Store s2 = (Store) manager.getObject(Store.class, s1.getId());
      s2.setAddress("");
      s2.save();
     
      s1.reload();
      assertEquals(s1.getAddress(), s2.getAddress());
     
      // remove and check behavior of updates
      s1.remove();
     
      try {
        s2.reload();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }

      try {
        s2.save();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }
     
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.