KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > engine > Mapping


1 //$Id: Mapping.java,v 1.2 2005/07/21 01:11:50 oneovthafew Exp $
2
package org.hibernate.engine;
3
4 import org.hibernate.MappingException;
5 import org.hibernate.type.Type;
6
7 /**
8  * Defines operations common to "compiled" mappings (ie. <tt>SessionFactory</tt>)
9  * and "uncompiled" mappings (ie. <tt>Configuration</tt>) that are used by
10  * implementors of <tt>Type</tt>.
11  *
12  * @see org.hibernate.type.Type
13  * @see org.hibernate.impl.SessionFactoryImpl
14  * @see org.hibernate.cfg.Configuration
15  * @author Gavin King
16  */

17 public interface Mapping {
18     public Type getIdentifierType(String JavaDoc className) throws MappingException;
19     public String JavaDoc getIdentifierPropertyName(String JavaDoc className) throws MappingException;
20     public Type getReferencedPropertyType(String JavaDoc className, String JavaDoc propertyName) throws MappingException;
21 }
22
23
24
25
26
27
28
29
Popular Tags