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.FetchReturnsetLockMode in interface SQLQuery.FetchReturnlockMode - The new lock mode.this, for method chainingpublic SQLQuery.FetchReturn addProperty(String propertyName, String columnAlias)
SQLQuery.FetchReturnaddProperty in interface SQLQuery.FetchReturnpropertyName - The name of the property.columnAlias - The name of the columnthis, for method chainingpublic SQLQuery.ReturnProperty addProperty(String propertyName)
SQLQuery.FetchReturnaddProperty in interface SQLQuery.FetchReturnpropertyName - The name of the property.public NativeSQLQueryReturn buildReturn()
buildReturn in interface NativeQueryReturnBuilderCopyright © 2019 JBoss by Red Hat. All rights reserved.