01: //$Id: Mapping.java 7586 2005-07-21 01:11:52Z oneovthafew $
02: package org.hibernate.engine;
03:
04: import org.hibernate.MappingException;
05: import org.hibernate.type.Type;
06:
07: /**
08: * Defines operations common to "compiled" mappings (ie. <tt>SessionFactory</tt>)
09: * 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 className)
19: throws MappingException;
20:
21: public String getIdentifierPropertyName(String className)
22: throws MappingException;
23:
24: public Type getReferencedPropertyType(String className,
25: String propertyName) throws MappingException;
26: }
|