SQLQuery contract.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static interface | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final boolean | |
| private List | |
| private List | |
| private Collection |
| Access | Constructor and Description |
|---|---|
| pack-priv | SQLQueryImpl(NamedSQLQueryDefinition
The representation of the defined queryDef, SessionImplementor The session to which this SQLQueryImpl belongs. session, ParameterMetadata Metadata about parameters found in the query. parameterMetadata)Constructs a SQLQueryImpl given a sql query defined in the mappings. |
| pack-priv | SQLQueryImpl(final String sql, final String[] returnAliases, final Class<T>[] returnClasses, final LockMode[] lockModes, final SessionImplementor session, final Collection<String> querySpaces, final FlushMode flushMode, ParameterMetadata parameterMetadata)
|
| pack-priv | SQLQueryImpl(final String sql, final String[] returnAliases, final Class<T>[] returnClasses, final SessionImplementor session, ParameterMetadata parameterMetadata)
|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public SQLQuery | addEntity(String
The entity name that is the root return of the query. entityName)Implements org. |
| public SQLQuery | addEntity(String
The SQL table alias alias, String The entity name entityName)Implements org. |
| public SQLQuery | addEntity(String
The SQL table alias alias, String The entity name entityName, LockMode The lock mode for this return. lockMode)Implements org. |
| public SQLQuery | addEntity(Class<T>
The java type of the entity to add as a root entityType)Implements org. |
| public SQLQuery | addEntity(String
The SQL table alias alias, Class<T> The java type of the entity to add as a root entityClass)Implements org. |
| public SQLQuery | addEntity(String
The SQL table alias alias, Class<T> The entity name entityClass, LockMode The lock mode for this return. lockMode)Implements org. |
| public SQLQuery. | addFetch(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)Implements org. |
| public SQLQuery | addJoin(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)Implements org. |
| public SQLQuery | addJoin(String
The SQL table alias for the data to be mapped to this fetch alias, String The association path ([owner-alias].[property-name]). path)Implements org. |
| public SQLQuery | addJoin(String
The SQL table alias for the data to be mapped to this fetch alias, String The association path ([owner-alias].[property-name]). path, LockMode The lock mode for this return. lockMode)Implements org. |
| private SQLQuery | |
| public SQLQuery. | addRoot(String
The SQL table alias to map to this entity tableAlias, String The name of the entity. entityName)Implements org. RootReturn to allow further definition
|
| public SQLQuery. | addRoot(String
The SQL table alias to map to this entity tableAlias, Class<T> The java type of the entity. entityType)Implements org. RootReturn to allow further definition
|
| public SQLQuery | addScalar(final String
The column alias in the result-set to be processed as a scalar result columnAlias, final Type The Hibernate type as which to treat the value. type)Implements org. |
| public SQLQuery | addScalar(String
The column alias in the result-set to be processed as a scalar result columnAlias)Implements org. |
| public SQLQuery | addSynchronizedEntityClass(Class<T>
The class of the entity upon whose defined query spaces we should additionally synchronize. entityClass)Implements org. |
| public SQLQuery | addSynchronizedEntityName(String
The name of the entity upon whose defined query spaces we should additionally synchronize. entityName)Implements org. |
| public SQLQuery | addSynchronizedQuerySpace(String
The query space to be auto-flushed for this query. querySpace)Implements org. |
| private SQLQuery. | |
| public int | executeUpdate()
Implements org. |
| private NativeSQLQuerySpecification | |
| public LockOptions | |
| public QueryParameters | getQueryParameters(Map<K, V> namedParams)
Overrides org. |
| private NativeSQLQueryReturn[] | |
| public String[] | getReturnAliases()
Overrides org. Implements org. |
| public Type[] | getReturnTypes()
Overrides org. Implements org. |
| public Iterator | |
| public List | |
| private void | |
| public ScrollableResults | scroll(ScrollMode scrollMode)
Implements org. |
| public ScrollableResults | |
| public Query | setLockMode(String
a query alias, or this for a collection filter alias, LockMode lockMode)Implements org. |
| public Query | setLockOptions(LockOptions lockOptions)
Implements org. |
| public SQLQuery | setResultSetMapping(String
The name of the mapping to use. name)Implements org. |
| protected void | verifyParameters()
Overrides org. |