Package com.sun.sgs.impl.service.data

Examples of com.sun.sgs.impl.service.data.DataServiceImpl$DelegatingScheduler$Handle


        if (!dataDir.mkdir()) {
            throw new RuntimeException("Failed to create sub-dir: " + dataDir);
        }
  props.remove(DataStoreImplClassName + ".directory");
  props.setProperty(StandardProperties.APP_ROOT, rootDir);
  DataServiceImpl testSvc =
      createDataServiceImpl(props, componentRegistry, txnProxy);
        testSvc.shutdown();
    }
View Full Code Here


      if (!dir.mkdir()) {
    throw new RuntimeException(
        "Problem creating directory: " + dir);
      }
  }
  return new DataServiceImpl(props, componentRegistry, txnProxy);
    }
View Full Code Here

     * @return  the new data service
     * @throws  Exception if a problem occurs when creating the service
     */
    private DataService createDataService(Properties props) throws Exception {
  DataService dataService =
      new DataServiceImpl(props, systemRegistry, txnProxy);
  ComponentRegistry services =
      new SingletonComponentRegistry(dataService);
  ComponentRegistry managers =
      new SingletonComponentRegistry(
    new ProfileDataManager(dataService));
View Full Code Here

        if (!dataDir.mkdir()) {
            throw new RuntimeException("Failed to create sub-dir: " + dataDir);
        }
  props.remove(DataStoreImplClassName + ".directory");
  props.setProperty(StandardProperties.APP_ROOT, rootDir);
  DataServiceImpl testSvc =
      createDataServiceImpl(props, componentRegistry, txnProxy);
        testSvc.shutdown();
    }
View Full Code Here

      if (!dir.mkdir()) {
    throw new RuntimeException(
        "Problem creating directory: " + dir);
      }
  }
  return new DataServiceImpl(props, componentRegistry, txnProxy);
    }
View Full Code Here

     * @return  the new data service
     * @throws  Exception if a problem occurs when creating the service
     */
    private DataService createDataService(Properties props) throws Exception {
  DataService dataService =
      new DataServiceImpl(props, systemRegistry, txnProxy);
  ComponentRegistry services =
      new SingletonComponentRegistry(dataService);
  ComponentRegistry managers =
      new SingletonComponentRegistry(
    new ProfileDataManager(dataService));
View Full Code Here

        return new StringTemplateStatementLocator(loader);
    }

    public void testSimpleTemplate() throws Exception
    {
        final Handle h = openHandle();
        final int count = h.insert("tests:insert_one");
        assertEquals(1, count);
    }
View Full Code Here

        assertEquals(1, count);
    }

    public void testParameterizedInsert() throws Exception
    {
        final Handle h = openHandle();
        final int count = h.createStatement("tests:parameterized_insert")
                .define("table", "something")
                .define("column_one", "id")
                .define("column_two", "name")
                .bind("column_one", 7)
                .bind("column_two", "Rebecca")
                .execute();
        assertEquals(1, count);

        final String name = h.createQuery("select name from something where id = 7")
                .map(StringMapper.FIRST)
                .first();
        assertEquals(name, "Rebecca");
    }
View Full Code Here

        assertEquals(name, "Rebecca");
    }

    public void testExtraDefinesDontBreakThings() throws Exception
    {
        final Handle h = openHandle();
        final int count = h.createStatement("tests:insert_one")
                .define("name", "Nicole")
                .execute();
        assertEquals(1, count);
    }
View Full Code Here

*/
public class TestQueryObjectGenerator extends DBITestCase
{
    public void testApiWhichTakesConnection() throws Exception
    {
        Handle h = openHandle();
        MyQueries qo = QueryObjectFactory.createQueryObject(MyQueries.class, h.getConnection());
        assertNotNull(qo);
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.data.DataServiceImpl$DelegatingScheduler$Handle

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.