KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > repository > StdHibernateClassHandler


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * 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 org.pentaho.repository;
17
18 import java.util.*;
19
20 import org.pentaho.repository.content.BackgroundExecutedContentId;
21 import org.pentaho.repository.content.ContentItem;
22 import org.pentaho.repository.content.ContentItemFile;
23 import org.pentaho.repository.content.ContentLocation;
24 import org.pentaho.repository.runtime.RuntimeElement;
25
26 public class StdHibernateClassHandler implements IHibernatedObjectExtensionList {
27
28     public List getHibernatedObjectResourceList() {
29         List rtn = new ArrayList();
30         rtn.add("org/pentaho/repository/runtime/RuntimeElement.hbm.xml"); //$NON-NLS-1$
31
rtn.add("org/pentaho/repository/content/ContentLocation.hbm.xml");//$NON-NLS-1$
32
rtn.add("org/pentaho/repository/content/ContentItem.hbm.xml");//$NON-NLS-1$
33
rtn.add("org/pentaho/repository/content/ContentItemFile.hbm.xml");//$NON-NLS-1$
34
rtn.add("org/pentaho/repository/content/BackgroundExecutedContentId.hbm.xml");//$NON-NLS-1$
35
rtn.add("org/pentaho/repository/DefinitionVersionManager.hbm.xml");//$NON-NLS-1$
36
return rtn;
37     }
38
39     public Map getHibernatedObjectVersionMap() {
40         Map objVersions = new HashMap();
41         objVersions.put("ContentItem", new Integer JavaDoc(ContentItem.ClassVersionNumber)); //$NON-NLS-1$
42
objVersions.put("ContentItemFile", new Integer JavaDoc(ContentItemFile.ClassVersionNumber)); //$NON-NLS-1$
43
objVersions.put("ContentLocation", new Integer JavaDoc(ContentLocation.ClassVersionNumber)); //$NON-NLS-1$
44
objVersions.put("BackgroundExecutedContentId", new Integer JavaDoc(BackgroundExecutedContentId.ClassVersionNumber)); //$NON-NLS-1$
45
objVersions.put("RuntimeElement", new Integer JavaDoc(RuntimeElement.ClassVersionNumber)); //$NON-NLS-1$
46
return objVersions;
47     }
48
49 }
50
Popular Tags