类 AbstractPropertyMapping
- java.lang.Object
-
- org.hibernate.persister.entity.AbstractPropertyMapping
-
- 所有已实现的接口:
PropertyMapping
public abstract class AbstractPropertyMapping extends Object implements PropertyMapping
Basic implementation of thePropertyMappingcontract.- 作者:
- Gavin King
-
-
构造器概要
构造器 构造器 说明 AbstractPropertyMapping()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected voidaddPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates)protected voidaddPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)String[]getColumnNames(String propertyName)protected abstract StringgetEntityName()String[]getIdentifierColumnNames()String[]getIdentifierColumnReaders()String[]getIdentifierColumnReaderTemplates()protected voidinitComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)protected voidinitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory)protected voidinitPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)protected QueryExceptionpropertyException(String propertyName)String[]toColumns(String propertyName)Given a property path, return the corresponding column name(s).String[]toColumns(String alias, String propertyName)Obtain aliased column/formula fragments for the specified property path.TypetoType(String propertyName)Given a component path expression, get the type of the property-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.persister.entity.PropertyMapping
getType
-
-
-
-
方法详细资料
-
getIdentifierColumnNames
public String[] getIdentifierColumnNames()
-
getIdentifierColumnReaderTemplates
public String[] getIdentifierColumnReaderTemplates()
-
getIdentifierColumnReaders
public String[] getIdentifierColumnReaders()
-
getEntityName
protected abstract String getEntityName()
-
toType
public Type toType(String propertyName) throws QueryException
从接口复制的说明:PropertyMappingGiven a component path expression, get the type of the property- 指定者:
toType在接口中PropertyMapping- 抛出:
QueryException
-
propertyException
protected final QueryException propertyException(String propertyName) throws QueryException
- 抛出:
QueryException
-
toColumns
public String[] toColumns(String alias, String propertyName) throws QueryException
从接口复制的说明:PropertyMappingObtain aliased column/formula fragments for the specified property path.- 指定者:
toColumns在接口中PropertyMapping- 抛出:
QueryException
-
toColumns
public String[] toColumns(String propertyName) throws QueryException
从接口复制的说明:PropertyMappingGiven a property path, return the corresponding column name(s).- 指定者:
toColumns在接口中PropertyMapping- 抛出:
QueryException
-
addPropertyPath
@Deprecated protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates)
Only kept around for compatibility reasons since this seems to be API.
-
addPropertyPath
protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory)
-
initPropertyPaths
protected void initPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
- 抛出:
MappingException
-
initIdentifierPropertyPaths
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory) throws MappingException
- 抛出:
MappingException
-
initComponentPropertyPaths
protected void initComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
- 抛出:
MappingException
-
-