|
1 | | -/* |
2 | | - * Copyright 2003 Draagon Software LLC. All Rights Reserved. |
3 | | - * |
4 | | - * This software is the proprietary information of Draagon Software LLC. |
5 | | - * Use is subject to license terms. |
6 | | - */ |
7 | | - |
8 | 1 | package com.draagon.meta.manager.xml; |
9 | 2 |
|
10 | 3 | import com.draagon.meta.object.MetaObject; |
11 | | -import com.draagon.meta.*; |
12 | 4 | import com.draagon.meta.manager.*; |
13 | 5 |
|
14 | 6 | import java.util.*; |
15 | 7 |
|
16 | | -public class ObjectConnectionXML implements ObjectConnection |
17 | | -{ |
18 | | - //private static Log log = LogFactory.getLog( ObjectConnectionXML.class ); |
| 8 | +public class ObjectConnectionXML implements ObjectConnection { |
| 9 | + //private static Log log = LogFactory.getLog( ObjectConnectionXML.class ); |
19 | 10 |
|
20 | | - private Map<MetaObject,List<Object>> tables; |
21 | | - private boolean readonly = false; |
22 | | - private boolean auto = true; |
23 | | - private boolean closed = false; |
| 11 | + private Map<MetaObject, List<Object>> tables; |
| 12 | + private boolean readonly = false; |
| 13 | + private boolean auto = true; |
| 14 | + private boolean closed = false; |
24 | 15 |
|
25 | | - public ObjectConnectionXML( Map<MetaObject,List<Object>> tables ) |
26 | | - { |
27 | | - this.tables = tables; |
28 | | - } |
| 16 | + public ObjectConnectionXML(Map<MetaObject, List<Object>> tables) { |
| 17 | + this.tables = tables; |
| 18 | + } |
29 | 19 |
|
30 | | - public Object getDatastoreConnection() |
31 | | - { |
32 | | - return tables; |
33 | | - } |
| 20 | + public Object getDatastoreConnection() { |
| 21 | + return tables; |
| 22 | + } |
34 | 23 |
|
35 | | - public void setReadOnly( boolean state ) |
36 | | - throws MetaDataException |
37 | | - { |
38 | | - readonly = state; |
39 | | - } |
| 24 | + public void setReadOnly(boolean state) throws PersistenceException { |
| 25 | + readonly = state; |
| 26 | + } |
40 | 27 |
|
41 | | - public boolean isReadOnly() |
42 | | - throws MetaDataException |
43 | | - { |
44 | | - return readonly; |
45 | | - } |
| 28 | + public boolean isReadOnly() throws PersistenceException { |
| 29 | + return readonly; |
| 30 | + } |
46 | 31 |
|
47 | | - public void setAutoCommit( boolean state ) |
48 | | - throws MetaDataException |
49 | | - { |
50 | | - auto = state; |
51 | | - } |
| 32 | + public void setAutoCommit(boolean state) throws PersistenceException { |
| 33 | + auto = state; |
| 34 | + } |
52 | 35 |
|
53 | | - public boolean getAutoCommit() |
54 | | - throws MetaDataException |
55 | | - { |
56 | | - return auto; |
57 | | - } |
| 36 | + public boolean getAutoCommit() throws PersistenceException { |
| 37 | + return auto; |
| 38 | + } |
58 | 39 |
|
59 | | - public void commit() |
60 | | - throws MetaDataException |
61 | | - { |
62 | | - // Do nothing for now |
63 | | - } |
| 40 | + public void commit() throws PersistenceException { |
| 41 | + // Do nothing for now |
| 42 | + } |
64 | 43 |
|
65 | | - public void rollback() |
66 | | - throws MetaDataException |
67 | | - { |
68 | | - // Do nothing for now |
69 | | - } |
| 44 | + public void rollback() throws PersistenceException { |
| 45 | + // Do nothing for now |
| 46 | + } |
70 | 47 |
|
71 | | - public void close() |
72 | | - throws MetaDataException |
73 | | - { |
74 | | - closed = true; |
75 | | - } |
| 48 | + public void close() throws PersistenceException { |
| 49 | + closed = true; |
| 50 | + } |
76 | 51 |
|
77 | | - public boolean isClosed() |
78 | | - throws MetaDataException |
79 | | - { |
80 | | - return closed; |
81 | | - } |
| 52 | + public boolean isClosed() throws PersistenceException { |
| 53 | + return closed; |
| 54 | + } |
82 | 55 | } |
0 commit comments