public class NativeQueryReturnBuilderRootImpl extends java.lang.Object implements SQLQuery.RootReturn, NativeQueryReturnBuilder
Constructor and Description |
---|
NativeQueryReturnBuilderRootImpl(java.lang.String alias,
java.lang.String entityName) |
Modifier and Type | Method and Description |
---|---|
SQLQuery.ReturnProperty |
addProperty(java.lang.String propertyName)
Add a property, presumably with more than one column.
|
SQLQuery.RootReturn |
addProperty(java.lang.String propertyName,
java.lang.String columnAlias)
Add a simple property-to-one-column mapping.
|
NativeSQLQueryReturn |
buildReturn() |
SQLQuery.RootReturn |
setDiscriminatorAlias(java.lang.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 NativeQueryReturnBuilderRootImpl(java.lang.String alias, java.lang.String entityName)
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(java.lang.String alias)
SQLQuery.RootReturn
setDiscriminatorAlias
in interface SQLQuery.RootReturn
alias
- The discriminator column aliasthis
, for method chainingpublic SQLQuery.RootReturn addProperty(java.lang.String propertyName, java.lang.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(java.lang.String propertyName)
SQLQuery.RootReturn
addProperty
in interface SQLQuery.RootReturn
propertyName
- The name of the property.public NativeSQLQueryReturn buildReturn()
buildReturn
in interface NativeQueryReturnBuilder
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.