1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.page.impl;
18
19
20 /***
21 * A transactioned operation is a single Page Manager DML operation that was applied
22 * to the OJB cache. Im finding that OJB is not properly synchronizing its cache
23 * upon rollback of database transactions. This code may not be needed in future
24 * versions of OJB which have fixed this bug.
25 *
26 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
27 * @version $Id: $
28 */
29 public class TransactionedOperation
30 {
31 public static final int ADD_OPERATION = 0;
32 public static final int UPDATE_OPERATION = 1;
33 private String path;
34 private int transactionType;
35
36 public TransactionedOperation(String path, int type)
37 {
38 this.path = path;
39 this.transactionType = type;
40 }
41
42
43 public String getPath()
44 {
45 return path;
46 }
47
48
49 public void setPath(String path)
50 {
51 this.path = path;
52 }
53
54
55 public int getTransactionType()
56 {
57 return transactionType;
58 }
59
60
61 public void setTransactionType(int transactionType)
62 {
63 this.transactionType = transactionType;
64 }
65 }