public interface InFlightMetadataCollector extends Metadata
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
InFlightMetadataCollector.DelayedPropertyReferenceHandler |
static class |
InFlightMetadataCollector.DuplicateSecondaryTableException |
| 限定符和类型 | 方法和说明 |
|---|---|
AnnotatedClassType |
addClassType(cn.sexycode.util.core.cls.XClass clazz) |
void |
addColumnNameBinding(cn.sexycode.sql.mapping.Table table,
cn.sexycode.sql.model.Identifier logicalName,
cn.sexycode.sql.mapping.Column column) |
void |
addColumnNameBinding(cn.sexycode.sql.mapping.Table table,
String logicalName,
cn.sexycode.sql.mapping.Column column) |
void |
addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator) |
void |
addEntityBinding(PersistentClass persistentClass)
Add the PersistentClass for an entity mapping.
|
void |
addIdentifierGenerator(IdentifierGeneratorDefinition generator) |
void |
addImport(String entityName,
String rename)
Adds an import (HQL entity rename).
|
void |
addMappedSuperclass(Class type,
javax.persistence.MappedSuperclass mappedSuperclass) |
cn.sexycode.sql.mapping.Table |
addTable(String schema,
String catalog,
String name,
String subselect,
boolean isAbstract)
Adds table metadata to this repository returning the created
metadata instance.
|
void |
addTableNameBinding(cn.sexycode.sql.model.Identifier logicalName,
cn.sexycode.sql.mapping.Table table) |
void |
addTableNameBinding(String schema,
String catalog,
String logicalName,
String realTableName,
cn.sexycode.sql.mapping.Table denormalizedSuperTable) |
void |
addUniqueConstraints(cn.sexycode.sql.mapping.Table table,
List uniqueConstraints) |
SessionFactory |
buildSessionFactory() |
AnnotatedClassType |
getClassType(cn.sexycode.util.core.cls.XClass clazz) |
cn.sexycode.sql.model.Database |
getDatabase() |
Map<String,PersistentClass> |
getEntityBindingMap()
Needed for SecondPass handling
|
Map<String,String> |
getImports() |
String |
getLogicalColumnName(cn.sexycode.sql.mapping.Table table,
cn.sexycode.sql.model.Identifier physicalName) |
String |
getLogicalColumnName(cn.sexycode.sql.mapping.Table table,
String physicalName) |
String |
getLogicalTableName(cn.sexycode.sql.mapping.Table ownerTable) |
javax.persistence.MappedSuperclass |
getMappedSuperclass(Class type) |
Set<javax.persistence.MappedSuperclass> |
getMappedSuperclassMappingsCopy() |
MetadataBuildingOptions |
getMetadataBuildingOptions() |
String |
getPhysicalColumnName(cn.sexycode.sql.mapping.Table table,
cn.sexycode.sql.model.Identifier logicalName) |
String |
getPhysicalColumnName(cn.sexycode.sql.mapping.Table table,
String logicalName) |
String |
getPhysicalTableName(cn.sexycode.sql.model.Identifier logicalName) |
String |
getPhysicalTableName(String logicalName) |
SessionFactoryBuilder |
getSessionFactoryBuilder() |
Map<String,cn.sexycode.sql.dialect.function.SQLFunction> |
getSqlFunctionMap() |
cn.sexycode.sql.type.TypeResolver |
getTypeResolver() |
UUID |
getUUID() |
boolean |
isInSecondPass() |
void |
validate() |
getEntityBinding, getEntityBindingsvoid addEntityBinding(PersistentClass persistentClass) throws DuplicateMappingException
persistentClass - The entity metadataDuplicateMappingException - Indicates there was already an entry
corresponding to the given entity name.UUID getUUID()
MetadataBuildingOptions getMetadataBuildingOptions()
cn.sexycode.sql.type.TypeResolver getTypeResolver()
cn.sexycode.sql.model.Database getDatabase()
void validate()
throws MappingException
MappingExceptionSet<javax.persistence.MappedSuperclass> getMappedSuperclassMappingsCopy()
SessionFactoryBuilder getSessionFactoryBuilder()
SessionFactory buildSessionFactory()
Map<String,PersistentClass> getEntityBindingMap()
void addIdentifierGenerator(IdentifierGeneratorDefinition generator)
void addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator)
void addImport(String entityName, String rename) throws DuplicateMappingException
entityName - The entity name being renamed.rename - The renameDuplicateMappingException - If rename already is mapped to another
entity name in this repository.cn.sexycode.sql.mapping.Table addTable(String schema, String catalog, String name, String subselect, boolean isAbstract)
schema - The named schema in which the table belongs (or null).catalog - The named catalog in which the table belongs (or null).name - The table namesubselect - A select statement which defines a logical table, much
like a DB view.isAbstract - Is the table abstract (i.e. not really existing in the DB)?void addTableNameBinding(cn.sexycode.sql.model.Identifier logicalName,
cn.sexycode.sql.mapping.Table table)
void addTableNameBinding(String schema, String catalog, String logicalName, String realTableName, cn.sexycode.sql.mapping.Table denormalizedSuperTable)
String getLogicalTableName(cn.sexycode.sql.mapping.Table ownerTable)
String getPhysicalTableName(cn.sexycode.sql.model.Identifier logicalName)
String getPhysicalColumnName(cn.sexycode.sql.mapping.Table table, cn.sexycode.sql.model.Identifier logicalName) throws MappingException
MappingExceptionvoid addColumnNameBinding(cn.sexycode.sql.mapping.Table table,
String logicalName,
cn.sexycode.sql.mapping.Column column)
throws DuplicateMappingException
void addColumnNameBinding(cn.sexycode.sql.mapping.Table table,
cn.sexycode.sql.model.Identifier logicalName,
cn.sexycode.sql.mapping.Column column)
throws DuplicateMappingException
String getPhysicalColumnName(cn.sexycode.sql.mapping.Table table, String logicalName) throws MappingException
MappingExceptionString getLogicalColumnName(cn.sexycode.sql.mapping.Table table, cn.sexycode.sql.model.Identifier physicalName)
String getLogicalColumnName(cn.sexycode.sql.mapping.Table table, String physicalName)
void addMappedSuperclass(Class type, javax.persistence.MappedSuperclass mappedSuperclass)
javax.persistence.MappedSuperclass getMappedSuperclass(Class type)
boolean isInSecondPass()
AnnotatedClassType getClassType(cn.sexycode.util.core.cls.XClass clazz)
AnnotatedClassType addClassType(cn.sexycode.util.core.cls.XClass clazz)
void addUniqueConstraints(cn.sexycode.sql.mapping.Table table,
List uniqueConstraints)
Copyright © 2019. All rights reserved.