程序包 org.hibernate
接口 SQLQuery.RootReturn
-
- 所有已知实现类:
NativeQueryReturnBuilderRootImpl
public static interface SQLQuery.RootReturnAllows access to further control how root returns are mapped back from result sets.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 SQLQuery.ReturnPropertyaddProperty(String propertyName)Add a property, presumably with more than one column.SQLQuery.RootReturnaddProperty(String propertyName, String columnAlias)Add a simple property-to-one-column mapping.SQLQuery.RootReturnsetDiscriminatorAlias(String columnAlias)Name the column alias that identifies the entity's discriminator.SQLQuery.RootReturnsetLockMode(LockMode lockMode)Set the lock mode for this return.
-
-
-
方法详细资料
-
setLockMode
SQLQuery.RootReturn setLockMode(LockMode lockMode)
Set the lock mode for this return.- 参数:
lockMode- The new lock mode.- 返回:
this, for method chaining
-
setDiscriminatorAlias
SQLQuery.RootReturn setDiscriminatorAlias(String columnAlias)
Name the column alias that identifies the entity's discriminator.- 参数:
columnAlias- The discriminator column alias- 返回:
this, for method chaining
-
addProperty
SQLQuery.RootReturn addProperty(String propertyName, String columnAlias)
Add a simple property-to-one-column mapping.- 参数:
propertyName- The name of the property.columnAlias- The name of the column- 返回:
this, for method chaining
-
addProperty
SQLQuery.ReturnProperty addProperty(String propertyName)
Add a property, presumably with more than one column.- 参数:
propertyName- The name of the property.- 返回:
- The config object for further control.
-
-