Examples of OutputObjectState


Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*     */         }
/*     */
/* 159 */         this.modifyingActions.put(action.get_uid(), action);
/*     */       }
/*     */
/* 164 */       OutputObjectState state = new OutputObjectState(this.objectUid, type());
/* 165 */       int rStatus = 2;
/*     */
/* 167 */       if (save_state(state, 0))
/*     */       {
/* 169 */         TxLogWritePersistenceRecord record = new TxLogWritePersistenceRecord(state, super.getStore(), this);
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*     */   }
/*     */
/*     */   protected InputObjectState read_state(Uid objUid, String tName, int ft)
/*     */     throws ObjectStoreException
/*     */   {
/* 196 */     OutputObjectState state = _storeManager.getState(objUid, ft);
/*     */
/* 198 */     if (state == null) {
/* 199 */       return super.read_state(objUid, tName, ft);
/*     */     }
/* 201 */     return new InputObjectState(state);
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*      */     throws ObjectStoreException
/*      */   {
/*  504 */     int pool = getPool();
/*      */     try
/*      */     {
/*  508 */       OutputObjectState store = new OutputObjectState();
/*  509 */       Statement stmt = this._theConnection[pool].createStatement();
/*  510 */       ResultSet rs = null;
/*      */       try
/*      */       {
/*  517 */         rs = stmt.executeQuery("SELECT DISTINCT UidString FROM " + tableName + " WHERE TypeName = '" + typeName + "'");
/*      */
/*  520 */         boolean finished = false;
/*      */
/*  522 */         while ((!finished) && (rs.next()))
/*      */         {
/*  524 */           Uid theUid = null;
/*      */           try
/*      */           {
/*  528 */             theUid = new Uid(rs.getString(1));
/*  529 */             theUid.pack(store);
/*      */           }
/*      */           catch (IOException ex)
/*      */           {
/*  533 */             if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  534 */               tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_5", new Object[] { ex });
/*      */             }
/*      */
/*  540 */             int i = 0;
/*      */             try
/*      */             {
/*  568 */               if (rs != null) {
/*  569 */                 rs.close();
/*      */               }
/*      */             }
/*      */             catch (SQLException e)
/*      */             {
/*      */             }
/*      */             try
/*      */             {
/*  577 */               if (stmt != null) {
/*  578 */                 stmt.close();
/*      */               }
/*      */
/*      */             }
/*      */             catch (SQLException e)
/*      */             {
/*      */             }
/*      */
/*  613 */             freePool(pool); return i;
/*      */           }
/*      */           catch (Exception e)
/*      */           {
/*  544 */             if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  545 */               tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_4", new Object[] { e });
/*      */             }
/*      */
/*  551 */             finished = true;
/*      */           }
/*      */         }
/*      */       }
/*      */       catch (Exception e)
/*      */       {
/*  557 */         if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  558 */           tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_4", new Object[] { e });
/*      */         }
/*      */
/*      */       }
/*      */       finally
/*      */       {
/*      */         try
/*      */         {
/*  568 */           if (rs != null) {
/*  569 */             rs.close();
/*      */           }
/*      */         }
/*      */         catch (SQLException e)
/*      */         {
/*      */         }
/*      */         try
/*      */         {
/*  577 */           if (stmt != null) {
/*  578 */             stmt.close();
/*      */           }
/*      */         }
/*      */         catch (SQLException e)
/*      */         {
/*      */         }
/*      */       }
/*      */
/*      */       try
/*      */       {
/*  588 */         Uid.nullUid().pack(store);
/*      */       }
/*      */       catch (IOException e)
/*      */       {
/*  592 */         throw new ObjectStoreException("allObjUids - could not pack end of list Uid.");
/*      */       }
/*      */
/*  596 */       state.setBuffer(store.buffer());
/*      */
/*  598 */       store = null;
/*      */
/*  600 */       e = 1;
/*      */       return e;
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*      */     throws ObjectStoreException
/*      */   {
/*  633 */     int pool = getPool();
/*      */     try
/*      */     {
/*  637 */       OutputObjectState store = new OutputObjectState();
/*  638 */       Statement stmt = this._theConnection[pool].createStatement();
/*  639 */       ResultSet rs = null;
/*      */       try
/*      */       {
/*  646 */         rs = stmt.executeQuery("SELECT DISTINCT TypeName FROM " + tableName);
/*      */
/*  649 */         boolean finished = false;
/*      */
/*  651 */         while ((!finished) && (rs.next()))
/*      */         {
/*      */           try
/*      */           {
/*  655 */             String type = rs.getString(1);
/*  656 */             store.packString(type);
/*      */           }
/*      */           catch (IOException ex)
/*      */           {
/*  660 */             if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  661 */               tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_7", new Object[] { ex });
/*      */             }
/*      */
/*  667 */             int i = 0;
/*      */             try
/*      */             {
/*  695 */               if (rs != null) {
/*  696 */                 rs.close();
/*      */               }
/*      */             }
/*      */             catch (SQLException e)
/*      */             {
/*      */             }
/*      */             try
/*      */             {
/*  704 */               if (stmt != null) {
/*  705 */                 stmt.close();
/*      */               }
/*      */
/*      */             }
/*      */             catch (SQLException e)
/*      */             {
/*      */             }
/*      */
/*  737 */             freePool(pool); return i;
/*      */           }
/*      */           catch (Exception e)
/*      */           {
/*  671 */             if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  672 */               tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_6", new Object[] { e });
/*      */             }
/*      */
/*  678 */             finished = true;
/*      */           }
/*      */         }
/*      */       }
/*      */       catch (Exception e)
/*      */       {
/*  684 */         if (tsLogger.arjLoggerI18N.isWarnEnabled()) {
/*  685 */           tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.JDBCImple_6", new Object[] { e });
/*      */         }
/*      */
/*      */       }
/*      */       finally
/*      */       {
/*      */         try
/*      */         {
/*  695 */           if (rs != null) {
/*  696 */             rs.close();
/*      */           }
/*      */         }
/*      */         catch (SQLException e)
/*      */         {
/*      */         }
/*      */         try
/*      */         {
/*  704 */           if (stmt != null) {
/*  705 */             stmt.close();
/*      */           }
/*      */         }
/*      */         catch (SQLException e)
/*      */         {
/*      */         }
/*      */       }
/*      */
/*      */       try
/*      */       {
/*  715 */         store.packString("");
/*      */       }
/*      */       catch (IOException e)
/*      */       {
/*  719 */         throw new ObjectStoreException(tsLogger.arjLoggerI18N.getString("com.arjuna.ats.internal.arjuna.objectstore.packProblem"));
/*      */       }
/*      */
/*  722 */       foundTypes.setBuffer(store.buffer());
/*      */
/*  724 */       e = 1;
/*      */       return e;
/*      */     }
/*      */     catch (Exception e)
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*     */   private boolean saveThis()
/*     */   {
/* 292 */     boolean ret_status = false;
/*     */     try
/*     */     {
/* 296 */       OutputObjectState objstate = new OutputObjectState();
/*     */
/* 298 */       if (save_state(objstate))
/*     */       {
/* 300 */         ret_status = getStore().write_committed(this._pidUid, _typeName, objstate);
/*     */       }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/* 164 */       writeToLog = false;
/*     */     }
/*     */
/* 167 */     if ((sm != null) && (this.store != null))
/*     */     {
/* 169 */       this.topLevelState = new OutputObjectState(sm.get_uid(), sm.type());
/*     */
/* 171 */       if ((writeToLog) || ((!this.store.fullCommitNeeded()) && (sm.save_state(this.topLevelState, 1)) && (this.topLevelState.size() <= 4096)))
/*     */       {
/* 175 */         if (PersistenceRecord.classicPrepare)
/*     */         {
/* 177 */           OutputObjectState dummy = new OutputObjectState(Uid.nullUid(), null);
/*     */           try
/*     */           {
/* 187 */             this.store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
/* 188 */             result = 0;
/*     */           }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

                            // kicked-in
                  {
                    boolean moved = _objectStore
                        .write_committed(newUid,
                            _movedTypeName,
                            new OutputObjectState(
                                state));

                    if (!moved)
                    {
                      tsLogger.arjLoggerI18N
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

    {
  boolean ret_status = false ;
 
  try
      {
    OutputObjectState objstate = new OutputObjectState();
   
    if ( save_state(objstate) )
        {
      ret_status = getStore().write_committed ( _pidUid,
                  _typeName,
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.