blob: 62ca363077ad687ca4665ca44ed55fe299ddbe5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/***************************************************************************
* Copyright (c) 2004 - 2009 Martin Taal and others. and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Taal - initial API and implementation
* Eike Stepper - maintenance
**************************************************************************/
package org.eclipse.emf.cdo.server.hibernate;
import org.hibernate.cfg.Configuration;
import org.w3c.dom.Element;
/**
* A mappingprovider adds a hibernate mapping to a hibernate configuration object.
*
* @author Martin Taal
*/
public interface IHibernateMappingProvider
{
/**
* Adds a mapping to a configuration object
*/
public void addMapping(Configuration configuration);
/**
* Sets the Store in the mapping provider, is called before addMapping.
*/
public void setHibernateStore(IHibernateStore hibernateStore);
/**
* @author Eike Stepper
* @since 2.0
*/
public interface Factory
{
/**
* Returns the type of the mapping providers this factory can create.
*/
public String getType();
/**
* Creates a Hibernate mapping provider from the given element of the <code>cdo-server.xml</code> configuration
* file.
*/
public IHibernateMappingProvider create(Element config);
}
}
|