public class NativeQueryReturnBuilderRootImpl extends Object implements SQLQuery.RootReturn, NativeQueryReturnBuilder
| Constructor and Description |
|---|
NativeQueryReturnBuilderRootImpl(String alias,
String entityName) |
| Modifier and Type | Method and Description |
|---|---|
SQLQuery.ReturnProperty |
addProperty(String propertyName)
Add a property, presumably with more than one column.
|
SQLQuery.RootReturn |
addProperty(String propertyName,
String columnAlias)
Add a simple property-to-one-column mapping.
|
NativeSQLQueryReturn |
buildReturn() |
SQLQuery.RootReturn |
setDiscriminatorAlias(String alias)
Name the column alias that identifies the entity's discriminator.
|
SQLQuery.RootReturn |
setLockMode(LockMode lockMode)
Set the lock mode for this return.
|
public SQLQuery.RootReturn setLockMode(LockMode lockMode)
SQLQuery.RootReturnsetLockMode in interface SQLQuery.RootReturnlockMode - The new lock mode.this, for method chainingpublic SQLQuery.RootReturn setDiscriminatorAlias(String alias)
SQLQuery.RootReturnsetDiscriminatorAlias in interface SQLQuery.RootReturnalias - The discriminator column aliasthis, for method chainingpublic SQLQuery.RootReturn addProperty(String propertyName, String columnAlias)
SQLQuery.RootReturnaddProperty in interface SQLQuery.RootReturnpropertyName - The name of the property.columnAlias - The name of the columnthis, for method chainingpublic SQLQuery.ReturnProperty addProperty(String propertyName)
SQLQuery.RootReturnaddProperty in interface SQLQuery.RootReturnpropertyName - The name of the property.public NativeSQLQueryReturn buildReturn()
buildReturn in interface NativeQueryReturnBuilderCopyright © 2019 JBoss by Red Hat. All rights reserved.