01: /*
02: * Copyright 2005 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
07: * BI Platform. The Initial Developer is Pentaho Corporation.
08: *
09: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11: * the license for the specific language governing your rights and limitations.
12: *
13: * Created Nov 7, 2005
14: * @author mbatchel
15: */
16: package com.pentaho.repository.subscribe;
17:
18: import java.util.ArrayList;
19: import java.util.HashMap;
20: import java.util.List;
21: import java.util.Map;
22:
23: import org.pentaho.repository.IHibernatedObjectExtensionList;
24:
25: import com.pentaho.repository.dbbased.solution.RepositoryFile;
26:
27: public class SubscriptionHibernateHandler implements
28: IHibernatedObjectExtensionList {
29:
30: public List getHibernatedObjectResourceList() {
31: List rtn = new ArrayList();
32: rtn.add("com/pentaho/repository/subscribe/Schedule.hbm.xml"); //$NON-NLS-1$
33: rtn
34: .add("com/pentaho/repository/subscribe/Subscription.hbm.xml"); //$NON-NLS-1$
35: rtn
36: .add("com/pentaho/repository/subscribe/SubscribeContent.hbm.xml"); //$NON-NLS-1$
37:
38: // Add the dbbased repository stuff
39: rtn
40: .add("com/pentaho/repository/dbbased/solution/RepositoryFile.hbm.xml"); //$NON-NLS-1$
41:
42: return rtn;
43: }
44:
45: public Map getHibernatedObjectVersionMap() {
46: Map rtn = new HashMap();
47: rtn
48: .put(
49: "Pro-Schedule", new Integer(Schedule.ClassVersionNumber)); //$NON-NLS-1$
50: rtn
51: .put(
52: "Pro-Subscription", new Integer(Subscription.ClassVersionNumber)); //$NON-NLS-1$
53: rtn
54: .put(
55: "Pro-SubscribeContent", new Integer(SubscribeContent.ClassVersionNumber)); //$NON-NLS-1$
56:
57: // Add the dbbased repository stuff
58: rtn
59: .put(
60: "pro-RepositoryFile", new Integer(RepositoryFile.ClassVersionNumber)); //$NON-NLS-1$
61: return rtn;
62: }
63:
64: }
|