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.RootReturn
setLockMode
in interface SQLQuery.RootReturn
lockMode
- The new lock mode.this
, for method chainingpublic SQLQuery.RootReturn setDiscriminatorAlias(String alias)
SQLQuery.RootReturn
setDiscriminatorAlias
in interface SQLQuery.RootReturn
alias
- The discriminator column aliasthis
, for method chainingpublic SQLQuery.RootReturn addProperty(String propertyName, String columnAlias)
SQLQuery.RootReturn
addProperty
in interface SQLQuery.RootReturn
propertyName
- The name of the property.columnAlias
- The name of the columnthis
, for method chainingpublic SQLQuery.ReturnProperty addProperty(String propertyName)
SQLQuery.RootReturn
addProperty
in interface SQLQuery.RootReturn
propertyName
- The name of the property.public NativeSQLQueryReturn buildReturn()
buildReturn
in interface NativeQueryReturnBuilder
Copyright © 2020 JBoss by Red Hat. All rights reserved.