Examples of begin()


Examples of org.drools.persistence.TransactionManager.begin()

     
        // Commit the mainObject after "commiting" the subObject
        EntityManager em = emf.createEntityManager();
        try {
            // Begin the real trasnaction
            boolean txOwner = txm.begin();
     
            // Do the "sub" transaction
            // - the txm doesn't really commit,
            //   because we keep track of who's the tx owner.
            boolean notTxOwner = txm.begin();
View Full Code Here

Examples of org.drools.persistence.jta.JtaTransactionManager.begin()

    public static ArrayList<MarshalledData> retrieveMarshallingData(EntityManagerFactory emf) {
        ArrayList<MarshalledData> marshalledDataList = new ArrayList<MarshalledData>();
       
        JtaTransactionManager txm = new JtaTransactionManager(null, null, null);
        boolean txOwner = txm.begin();
   
        EntityManager em = emf.createEntityManager();
        @SuppressWarnings("unchecked")
        List<Object> mdList = em.createQuery("SELECT m FROM MarshalledData m").getResultList();
        for( Object resultObject : mdList ) {
View Full Code Here

Examples of org.dru.clay.resolver.DependencyResolver.begin()

    CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File(ivyConfig.getCacheDir()), repository, transport);
    final DependencyResolver resolver = new DependencyResolverImpl(cacheIvyRepository, transport);
   
    final Map<String, Collection<Dependency>> dependencyMap =  (Map<String, Collection<Dependency>> )((ScriptableObject) thisObj).getAssociatedValue(DEPENDENCY_KEY);
   
    resolver.begin();

    Collection<File> resolvedFiles = new HashSet<File>();
    for (String configuration : toStringArray(args)) {
      final Collection<Dependency> dependencies = dependencyMap.get(configuration);
      resolver.resolve(new File(ivyConfig.getResolveDir()), configuration, dependencies);
View Full Code Here

Examples of org.dru.clay.resolver.DependencyResolverImpl.begin()

    CacheIvyRepository cacheIvyRepository = new CacheIvyRepository(new File(ivyConfig.getCacheDir()), repository, transport);
    final DependencyResolver resolver = new DependencyResolverImpl(cacheIvyRepository, transport);
   
    final Map<String, Collection<Dependency>> dependencyMap =  (Map<String, Collection<Dependency>> )((ScriptableObject) thisObj).getAssociatedValue(DEPENDENCY_KEY);
   
    resolver.begin();

    Collection<File> resolvedFiles = new HashSet<File>();
    for (String configuration : toStringArray(args)) {
      final Collection<Dependency> dependencies = dependencyMap.get(configuration);
      resolver.resolve(new File(ivyConfig.getResolveDir()), configuration, dependencies);
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Interval.begin()

        for (Map.Entry<Interval, Interval> spanEntry : spannedColumnIntervals.entrySet()) {
          Interval spanRange = spanEntry.getKey();
          if (spanRange.contains(column)) {
            int x = spanEntry.getValue().begin;
            int width = spanEntry.getValue().length / spanRange.length;
            for (int _column = spanRange.begin(); _column < spanRange.end(); _column++) {
              if (_column == column) {
                m_columnIntervals[_column] = new Interval(x, width);
              }
              x += width;
            }
View Full Code Here

Examples of org.exolab.castor.jdo.Database.begin()

    OQLQuery      computerOql;
    QueryResults  results;

    db = _jdo.getDatabase();

    db.begin();
    writer.println( "Begin transaction" );

    // Look up the product and if found in the database,
    // delete this object from the database
    productOql = db.getOQLQuery( "SELECT p FROM myapp.Product p WHERE id = $1" );
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics.begin()

   public int getChildNodesCount(NodeData parent) throws RepositoryException
   {
      Statistics s = ALL_STATISTICS.get(GET_CHILD_NODES_COUNT_DESCR);
      try
      {
         s.begin();
         return wcs.getChildNodesCount(parent);
      }
      finally
      {
         s.end();
View Full Code Here

Examples of org.fto.jthink.jdbc.JDBCTransaction.begin()

    /* 返回SQLBuilder工厂,并创建SQLBuilder对象 */
    SQLBuilder sqlBuilder = transaction.getSQLBuilderFactory(connId).create("");

    try{
      /* 开始事务 */
      transaction.begin();
      //transaction.setAutoCommit(connId, true);
     
      System.out.println("transaction.getAutoCommit(connId):"+transaction.getAutoCommit(connId));
     
      //transaction.setTransactionLevel(connId, level);
View Full Code Here

Examples of org.graphstream.stream.file.FileSinkDGS.begin()

    g.addSink(dgs1);
    tpp.addSink(dgs2);

    dgs1.begin(w1);
    dgs2.begin(w2);

    t.start();
    generateRandom(g, 1000);

    try {
View Full Code Here

Examples of org.graphstream.stream.file.FileSinkDynamicGML.begin()

    Graph graph = new MultiGraph("test GML");
    FileSinkGML out1 = new FileSinkGML();
    FileSinkDynamicGML out2 = new FileSinkDynamicGML();
 
    out1.begin("TestSinkGML.gml");
    out2.begin("TestSinkGML.dgml");
   
    graph.addSink(out1);
    graph.addSink(out2);
   
    graph.addNode("A");
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.