| 1 | package atg.adapter.gsa; |
| 2 | |
| 3 | import java.util.HashMap; |
| 4 | import java.util.List; |
| 5 | |
| 6 | public class SchemaTracker { |
| 7 | |
| 8 | public HashMap<String,List<GSARepository>> mTableToRepository = new HashMap<String,List<GSARepository>>(); |
| 9 | |
| 10 | /** |
| 11 | * @return the tableToRepository |
| 12 | */ |
| 13 | public HashMap<String,List<GSARepository>> getTableToRepository() { |
| 14 | return mTableToRepository; |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * @param pTableToRepository the tableToRepository to set |
| 19 | */ |
| 20 | public void setTableToRepository( |
| 21 | HashMap<String, List<GSARepository>> pTableToRepository) { |
| 22 | mTableToRepository = pTableToRepository; |
| 23 | } |
| 24 | |
| 25 | private static SchemaTracker sSchemaTracker = null; |
| 26 | private SchemaTracker() {} |
| 27 | |
| 28 | public static SchemaTracker getSchemaTracker() { |
| 29 | if (sSchemaTracker == null) |
| 30 | sSchemaTracker = new SchemaTracker(); |
| 31 | return sSchemaTracker; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Resets the state in this class. |
| 36 | */ |
| 37 | public void reset() { |
| 38 | mTableToRepository.clear(); |
| 39 | } |
| 40 | } |