Package org.apache.servicemix.store

Examples of org.apache.servicemix.store.Store


            connection.close();
        }
    }
   
    public void testStoreAndLoad() throws Exception {
        Store store = factory.open("store");
        String id = store.store(new Integer(10));
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        assertNull(store.load("a"));
    }
View Full Code Here


        assertNull(store.load(id));
        assertNull(store.load("a"));
    }

    public void testStoreAndLoadInOneTx() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        assertNull(store.load("a"));
        tm.commit();
    }
View Full Code Here

        assertNull(store.load("a"));
        tm.commit();
    }

    public void testStoreAndLoadInTwoTx() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        tm.commit();
        tm.begin();
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        tm.commit();
        assertNull(store.load("a"));
    }
View Full Code Here

        tm.commit();
        assertNull(store.load("a"));
    }

    public void testStoreRollbackAndLoad() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        tm.rollback();
        tm.begin();
        assertNull(store.load(id));
        tm.commit();
    }
View Full Code Here

        assertNull(store.load(id));
        tm.commit();
    }

    public void testStoreRollbackAndLoadNonTx() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        tm.rollback();
        assertNull(store.load(id));
    }
View Full Code Here

            connection.close();
        }
    }

    public void testStoreLoad() throws Exception {
        Store store = factory.open("store");
        String id = store.store(new Integer(10));
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load("a"));
    }
View Full Code Here

            connection.close();
        }
    }
   
    public void testStoreAndLoad() throws Exception {
        Store store = factory.open("store");
        String id = store.store(new Integer(10));
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        assertNull(store.load("a"));
    }
View Full Code Here

        assertNull(store.load(id));
        assertNull(store.load("a"));
    }

    public void testStoreAndLoadInOneTx() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        assertNull(store.load("a"));
        tm.commit();
    }
View Full Code Here

        assertNull(store.load("a"));
        tm.commit();
    }

    public void testStoreAndLoadInTwoTx() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        tm.commit();
        tm.begin();
        Integer i = (Integer) store.load(id);
        assertEquals(10, i.intValue());
        assertNull(store.load(id));
        tm.commit();
        assertNull(store.load("a"));
    }
View Full Code Here

        tm.commit();
        assertNull(store.load("a"));
    }

    public void testStoreRollbackAndLoad() throws Exception {
        Store store = factory.open("store");
        tm.begin();
        String id = store.store(new Integer(10));
        tm.rollback();
        tm.begin();
        assertNull(store.load(id));
        tm.commit();
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.store.Store

Copyright © 2018 www.massapicom. 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.