类 NativeQueryReturnBuilderRootImpl
- java.lang.Object
-
- org.hibernate.query.internal.NativeQueryReturnBuilderRootImpl
-
- 所有已实现的接口:
NativeQueryReturnBuilder,SQLQuery.RootReturn
public class NativeQueryReturnBuilderRootImpl extends Object implements SQLQuery.RootReturn, NativeQueryReturnBuilder
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 NativeQueryReturnBuilderRootImpl(String alias, String entityName)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.NativeSQLQueryReturnbuildReturn()SQLQuery.RootReturnsetDiscriminatorAlias(String alias)Name the column alias that identifies the entity's discriminator.SQLQuery.RootReturnsetLockMode(LockMode lockMode)Set the lock mode for this return.
-
-
-
方法详细资料
-
setLockMode
public SQLQuery.RootReturn setLockMode(LockMode lockMode)
从接口复制的说明:SQLQuery.RootReturnSet the lock mode for this return.- 指定者:
setLockMode在接口中SQLQuery.RootReturn- 参数:
lockMode- The new lock mode.- 返回:
this, for method chaining
-
setDiscriminatorAlias
public SQLQuery.RootReturn setDiscriminatorAlias(String alias)
从接口复制的说明:SQLQuery.RootReturnName the column alias that identifies the entity's discriminator.- 指定者:
setDiscriminatorAlias在接口中SQLQuery.RootReturn- 参数:
alias- The discriminator column alias- 返回:
this, for method chaining
-
addProperty
public SQLQuery.RootReturn addProperty(String propertyName, String columnAlias)
从接口复制的说明:SQLQuery.RootReturnAdd a simple property-to-one-column mapping.- 指定者:
addProperty在接口中SQLQuery.RootReturn- 参数:
propertyName- The name of the property.columnAlias- The name of the column- 返回:
this, for method chaining
-
addProperty
public SQLQuery.ReturnProperty addProperty(String propertyName)
从接口复制的说明:SQLQuery.RootReturnAdd a property, presumably with more than one column.- 指定者:
addProperty在接口中SQLQuery.RootReturn- 参数:
propertyName- The name of the property.- 返回:
- The config object for further control.
-
buildReturn
public NativeSQLQueryReturn buildReturn()
- 指定者:
buildReturn在接口中NativeQueryReturnBuilder
-
-