01: /*
02: * Copyright 2006 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 org.pentaho.repository;
17:
18: import java.util.List;
19: import java.util.Map;
20:
21: /**
22: * Describes where to find hibernated object XML definitions (.hbm.xml) and the
23: * class versions of the hibernated objects. This lets us discover changes to an
24: * objects' definition which will trigger a schema update call.
25: * @author mbatchel
26: *
27: */
28: public interface IHibernatedObjectExtensionList {
29: /**
30: * Returns a list of fully qualified class name hbm.xml files
31: * for this extension.
32: *
33: * @return list of .hbm.xml files
34: * @see StdHibernateClassHandler
35: */
36: public List getHibernatedObjectResourceList();
37:
38: /**
39: * Provides a map of an object class name (not fully qualified) to the
40: * class version number. This allows the DefinitionVersionManager to
41: * detect changes in a class version which should trigger a schema update call.
42: * @return Map of classes to versions
43: */
44: public Map getHibernatedObjectVersionMap();
45: }
|