Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 48   Methods: 4
NCLOC: 38   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ASTBeginEndBlock.java 0% 0% 0% 0%
coverage
 1   
 /* JJT:    0.2.2 */
 2   
 
 3   
 package    mobisnap.mobile_trx;
 4   
 
 5   
 public class ASTBeginEndBlock extends mobisnap.mobile_trx.SimpleNode {
 6   
     ASTSequenceOfStatements stats;
 7   
     ASTExceptionBlock exception;
 8   
     ASTOnCommitBlock commit;
 9   
     ASTOnRollbackBlock rollback;
 10   
     boolean mainblock = false;
 11   
 
 12  0
     public ASTBeginEndBlock(int id) {
 13  0
         super(id);
 14   
     }
 15   
 
 16  0
     public ASTBeginEndBlock( MobisnapSQL p, int i) {
 17  0
         super( p, i);
 18  0
         id = i;
 19   
     }
 20   
     
 21   
     /** Accept the visitor. **/
 22  0
     public Object jjtAccept(MobisnapSQLVisitor visitor, Object data) {
 23  0
         return visitor.visit(this, data);
 24   
     }
 25   
     
 26  0
     public void process( int msql_type) throws Exception {
 27  0
         try {
 28  0
             stats.process( msql_type);
 29  0
             MobisnapSQL.transaction.commit();
 30  0
             if( mainblock)
 31  0
                 throw new CommitException( "Code reach end of main block");
 32   
         } catch( CommitException e) {
 33  0
             if( commit != null) {
 34  0
                 commit.process( msql_type);
 35  0
                 MobisnapSQL.transaction.commit();
 36   
             }
 37  0
             throw e;
 38   
         } catch( RollbackException e) {
 39  0
             if( rollback != null) {
 40  0
                 rollback.process( msql_type);
 41  0
                 MobisnapSQL.transaction.commit();
 42   
             }
 43  0
             throw e;
 44   
         }
 45   
     }
 46   
 
 47   
 }
 48