1   //========================================================================
2   //$Id: MockUserTransaction.java 1692 2007-03-23 04:33:07Z janb $
3   //Copyright 2006 Mort Bay Consulting Pty. Ltd.
4   //------------------------------------------------------------------------
5   //Licensed under the Apache License, Version 2.0 (the "License");
6   //you may not use this file except in compliance with the License.
7   //You may obtain a copy of the License at 
8   //http://www.apache.org/licenses/LICENSE-2.0
9   //Unless required by applicable law or agreed to in writing, software
10  //distributed under the License is distributed on an "AS IS" BASIS,
11  //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  //See the License for the specific language governing permissions and
13  //limitations under the License.
14  //========================================================================
15  
16  package com.acme;
17  
18  import javax.transaction.HeuristicMixedException;
19  import javax.transaction.HeuristicRollbackException;
20  import javax.transaction.NotSupportedException;
21  import javax.transaction.RollbackException;
22  import javax.transaction.SystemException;
23  import javax.transaction.UserTransaction;
24  
25  /**
26   * MockUserTransaction
27   *
28   *
29   */
30  public class MockUserTransaction implements UserTransaction
31  {
32  
33      /** 
34       * @see javax.transaction.UserTransaction#begin()
35       */
36      public void begin() throws NotSupportedException, SystemException
37      {
38          // TODO Auto-generated method stub
39  
40      }
41  
42      /** 
43       * @see javax.transaction.UserTransaction#commit()
44       */
45      public void commit() throws HeuristicMixedException,
46              HeuristicRollbackException, IllegalStateException,
47              RollbackException, SecurityException, SystemException
48      {
49          // TODO Auto-generated method stub
50  
51      }
52  
53      /** 
54       * @see javax.transaction.UserTransaction#getStatus()
55       */
56      public int getStatus() throws SystemException
57      {
58          // TODO Auto-generated method stub
59          return 0;
60      }
61  
62      /** 
63       * @see javax.transaction.UserTransaction#rollback()
64       */
65      public void rollback() throws IllegalStateException, SecurityException,
66              SystemException
67      {
68          // TODO Auto-generated method stub
69  
70      }
71  
72      /** 
73       * @see javax.transaction.UserTransaction#setRollbackOnly()
74       */
75      public void setRollbackOnly() throws IllegalStateException, SystemException
76      {
77          // TODO Auto-generated method stub
78  
79      }
80  
81      /** 
82       * @see javax.transaction.UserTransaction#setTransactionTimeout(int)
83       */
84      public void setTransactionTimeout(int arg0) throws SystemException
85      {
86          // TODO Auto-generated method stub
87  
88      }
89  
90  }