public class NativeQueryReturnBuilderFetchImpl extends Object implements SQLQuery.FetchReturn, NativeQueryReturnBuilder
Constructor and Description |
---|
NativeQueryReturnBuilderFetchImpl(String alias,
String ownerTableAlias,
String joinedPropertyName) |
Modifier and Type | Method and Description |
---|---|
SQLQuery.ReturnProperty |
addProperty(String propertyName)
Add a property, presumably with more than one column.
|
SQLQuery.FetchReturn |
addProperty(String propertyName,
String columnAlias)
Add a simple property-to-one-column mapping.
|
NativeSQLQueryReturn |
buildReturn() |
SQLQuery.FetchReturn |
setLockMode(LockMode lockMode)
Set the lock mode for this return.
|
public SQLQuery.FetchReturn setLockMode(LockMode lockMode)
SQLQuery.FetchReturn
setLockMode
in interface SQLQuery.FetchReturn
lockMode
- The new lock mode.this
, for method chainingpublic SQLQuery.FetchReturn addProperty(String propertyName, String columnAlias)
SQLQuery.FetchReturn
addProperty
in interface SQLQuery.FetchReturn
propertyName
- The name of the property.columnAlias
- The name of the columnthis
, for method chainingpublic SQLQuery.ReturnProperty addProperty(String propertyName)
SQLQuery.FetchReturn
addProperty
in interface SQLQuery.FetchReturn
propertyName
- The name of the property.public NativeSQLQueryReturn buildReturn()
buildReturn
in interface NativeQueryReturnBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.