当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
AbstractPropertyMapping (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.persister
Class AbstractPropertyMapping
java.lang.Object
net.sf.hibernate.persister.AbstractPropertyMapping
- All Implemented Interfaces:
- PropertyMapping
- Direct Known Subclasses:
- AbstractEntityPersister, CompositeElementPropertyMapping
- public abstract class AbstractPropertyMapping
- extends Object
- implements PropertyMapping
Base implementation of a PropertyMapping
- Author:
- Gavin King
Method Summary |
protected void |
addFormulaPropertyPath(String path,
Type type,
String template)
|
protected void |
addPropertyPath(String path,
Type type,
String[] columns)
|
protected abstract String |
getClassName()
|
String[] |
getIdentifierColumnNames()
|
protected void |
handlePath(String path,
Type type)
|
protected void |
initComponentPropertyPaths(String path,
AbstractComponentType type,
String[] columns,
SessionFactoryImplementor factory)
|
protected void |
initIdentifierPropertyPaths(String path,
EntityType etype,
String[] columns,
SessionFactoryImplementor factory)
|
protected void |
initPropertyPaths(String path,
Type type,
String[] columns,
SessionFactoryImplementor factory)
|
protected void |
initPropertyPaths(String path,
Type type,
String[] columns,
String formulaTemplate,
SessionFactoryImplementor factory)
|
String[] |
toColumns(String alias,
String propertyName)
Given a query alias and a property path, return the qualified
column name |
Type |
toType(String propertyName)
Given a component path expression, get the type of the property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPropertyMapping
public AbstractPropertyMapping()
getIdentifierColumnNames
public String[] getIdentifierColumnNames()
getClassName
protected abstract String getClassName()
toType
public Type toType(String propertyName)
throws QueryException
- Description copied from interface:
PropertyMapping
- Given a component path expression, get the type of the property
- Specified by:
toType
in interface PropertyMapping
- Throws:
QueryException
toColumns
public String[] toColumns(String alias,
String propertyName)
throws QueryException
- Description copied from interface:
PropertyMapping
- Given a query alias and a property path, return the qualified
column name
- Specified by:
toColumns
in interface PropertyMapping
- Throws:
QueryException
addPropertyPath
protected void addPropertyPath(String path,
Type type,
String[] columns)
addFormulaPropertyPath
protected void addFormulaPropertyPath(String path,
Type type,
String template)
initPropertyPaths
protected void initPropertyPaths(String path,
Type type,
String[] columns,
String formulaTemplate,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
initPropertyPaths
protected void initPropertyPaths(String path,
Type type,
String[] columns,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path,
EntityType etype,
String[] columns,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
initComponentPropertyPaths
protected void initComponentPropertyPaths(String path,
AbstractComponentType type,
String[] columns,
SessionFactoryImplementor factory)
throws MappingException
- Throws:
MappingException
handlePath
protected void handlePath(String path,
Type type)