private static class TempTableHelper.TableMapping
extends java.lang.Object
implements org.hibernate.engine.spi.Mapping
Mapping
interface,
required when generating dialect-specific, SQL create temp table
statements.
Portability Note: Although the Hibernate interface
org.hibernate.engine.Mapping
is public
, it
appears to be intended primarily for Hibernate internal use. Thus, we
have a dependency here on Hibernate 3.0's internal implementation.
Should this interface be removed or the API which uses it change in
future versions, the mechanism we use to generate dialect-specific,
SQL for temp table create and drop functionality will need to change.
Modifier and Type | Field and Description |
---|---|
private Database |
database
Database associated with this table mapping
|
Constructor and Description |
---|
TableMapping(Database database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.hibernate.id.factory.IdentifierGeneratorFactory |
getIdentifierGeneratorFactory()
Allow access to the id generator factory.
|
java.lang.String |
getIdentifierPropertyName(java.lang.String dmoCls)
Get the property name for the specified DMO's primary key identifier.
|
org.hibernate.type.Type |
getIdentifierType(java.lang.String dmoCls)
Get the Hibernate type for the specified DMO's primary key identifier
property.
|
private org.hibernate.mapping.PersistentClass |
getPersistentClass(java.lang.String dmoCls)
Helper to get the Hibernate configuration object associated with the
specified DMO class.
|
org.hibernate.type.Type |
getPropertyType(java.lang.String dmoCls,
java.lang.String property)
Get the Hibernate type for the specified DMO property.
|
org.hibernate.type.Type |
getReferencedPropertyType(java.lang.String dmoCls,
java.lang.String propertyName)
Get the type of the specified property of the specified DMO class.
|
private final Database database
TableMapping(Database database)
database
- Database associated with this table mapping.public org.hibernate.type.Type getIdentifierType(java.lang.String dmoCls) throws org.hibernate.MappingException
getIdentifierType
in interface org.hibernate.engine.spi.Mapping
dmoCls
- Fully qualified DMO implementation class name.org.hibernate.MappingException
- if the class name is not recognized within the scope of the
database associated with this table mapping.public java.lang.String getIdentifierPropertyName(java.lang.String dmoCls) throws org.hibernate.MappingException
getIdentifierPropertyName
in interface org.hibernate.engine.spi.Mapping
dmoCls
- Fully qualified DMO implementation class name.org.hibernate.MappingException
- if the class name is not recognized within the scope of the
database associated with this table mapping.public org.hibernate.id.factory.IdentifierGeneratorFactory getIdentifierGeneratorFactory()
getIdentifierGeneratorFactory
in interface org.hibernate.engine.spi.Mapping
null
, always.public org.hibernate.type.Type getReferencedPropertyType(java.lang.String dmoCls, java.lang.String propertyName) throws org.hibernate.MappingException
getReferencedPropertyType
in interface org.hibernate.engine.spi.Mapping
dmoCls
- DMO class.propertyName
- The name of the property.org.hibernate.MappingException
- If DMO class or property name is invalid.public org.hibernate.type.Type getPropertyType(java.lang.String dmoCls, java.lang.String property) throws org.hibernate.MappingException
dmoCls
- Fully qualified DMO implementation class name.property
- DMO property name as specified in the Hibernate mapping
document for dmoCls
.org.hibernate.MappingException
- if the class name is not recognized within the scope of the
database associated with this table mapping;
if the given property name is not recognized.private org.hibernate.mapping.PersistentClass getPersistentClass(java.lang.String dmoCls) throws org.hibernate.MappingException
dmoCls
- Fully qualified DMO implementation class name.org.hibernate.MappingException
- if the class name is not recognized within the scope of the
database associated with this table mapping.