01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /*
18: * Created on 08-oct-2003
19: *
20: * To change the template for this generated file go to
21: * Window>Preferences>Java>Code Generation>Code and Comments
22: */
23: package javax.jdo;
24:
25: /**
26: * @author agallardo
27: *
28: * To change the template for this generated type comment go to
29: * Window>Preferences>Java>Code Generation>Code and Comments
30: */
31: abstract public interface Transaction {
32: abstract public void begin();
33:
34: abstract public void commit();
35:
36: abstract public boolean getNonTransactionlaRead();
37:
38: abstract public boolean getNonTransactionlaWrite();
39:
40: abstract public boolean getOptimistic();
41:
42: abstract public PersistenceManager getPersistenceManager();
43:
44: abstract public boolean getRestoreValues();
45:
46: abstract public boolean getRetainValues();
47:
48: // abstract public Synchronization getSynchronization();
49: abstract public boolean isActive();
50:
51: abstract public void rollback();
52:
53: abstract public void setNontransactionalRead(boolean b);
54:
55: abstract public void setNontransactionalWrite(boolean b);
56:
57: abstract public void setOptimistic(boolean b);
58:
59: abstract public void setRestoreValues(boolean b);
60:
61: abstract public void setRetainValues(boolean b);
62: // abstract public void setSynchronization(Synchronization s);
63: }
|