/
MetadataImplementor.java
48 lines (40 loc) · 1.33 KB
/
MetadataImplementor.java
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
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi;
import java.util.Set;
import org.hibernate.MappingException;
import org.hibernate.boot.Metadata;
import org.hibernate.engine.spi.Mapping;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.mapping.MappedSuperclass;
import org.hibernate.query.named.NamedObjectRepository;
import org.hibernate.type.spi.TypeConfiguration;
/**
* The SPI-level Metadata contract.
*
* @author Steve Ebersole
*
* @since 5.0
*/
public interface MetadataImplementor extends Metadata, Mapping {
/**
* Access to the options used to build this Metadata
*
* @return Access to the MetadataBuildingOptions
*/
MetadataBuildingOptions getMetadataBuildingOptions();
/**
* Access to the TypeConfiguration
*
* @return Access to the TypeConfiguration
*/
TypeConfiguration getTypeConfiguration();
NamedObjectRepository buildNamedQueryRepository(SessionFactoryImplementor sessionFactory);
void validate() throws MappingException;
Set<MappedSuperclass> getMappedSuperclassMappingsCopy();
void initSessionFactory(SessionFactoryImplementor sessionFactoryImplementor);
}