An instance of QueryTranslator translates a Hibernate query string to SQL.
The following tables list the members exposed by the QueryTranslator type.
Public Methods
| Name | Description | |
|---|---|---|
| AddCollectionToFetch | ||
| AddEntityToFetch | Overloaded. | |
| AddFromJoinOnly | ||
| ConcreteQueries | ||
| DecoratePropertyMapping | ||
| ExecuteUpdate | ||
| GetColumnNames | ||
| GetDecoratedPropertyMapping | ||
| GetEnumerable | ||
| GetNamedParameterLocs | (Overrides .GetNamedParameterLocs(String).) | |
| GetParameterTranslations | ||
| GetPropertyMapping | ||
| GetQueryStringAndTypes | (Inherited from Loader.) | |
| List | Overloaded. | |
| List | ||
| LoadCollection |
Called by subclasses that load collections
(Inherited from Loader.) | |
| LoadCollectionBatch |
Called by wrappers that batch initialize collections
(Inherited from Loader.) | |
| LoadSingleRow | (Overrides .LoadSingleRow(IDataReader, ISessionImplementor, QueryParameters, Boolean).) | |
| ScalarName | ||
| ToString | (Overrides .ToString().) |
Protected Methods
| Name | Description | |
|---|---|---|
| AddFromAssociation | ||
| ApplyLocks | (Overrides .ApplyLocks(SqlString, IDictionary, Dialect).) | |
| BindNamedParameters |
Bind named parameters to the IDbCommand (Inherited from Loader.) | |
| BindPositionalParameters |
Bind positional parameter values to the IDbCommand
(these are parameters specified by ?).
(Inherited from Loader.) | |
| Compile | Overloaded. | |
| ConvertITypesToSqlTypes | (Inherited from Loader.) | |
| DoList |
Actually execute a query, ignoring the query cache
(Inherited from Loader.) | |
| GetLockModes | (Overrides .GetLockModes(IDictionary).) | |
| GetParameterTypes | (Inherited from Loader.) | |
| GetResultColumnOrRow | (Overrides .GetResultColumnOrRow(Object[](), IResultTransformer, IDataReader, ISessionImplementor).) | |
| GetResultList | (Overrides .GetResultList(IList, IResultTransformer).) | |
| GetResultSet |
Fetch a IDbCommand, call SetMaxRows and then execute it,
advance to the first result and return an SQL IDataReader (Inherited from Loader.) | |
| HasSubselectLoadableCollections | (Inherited from Loader.) | |
| List |
Return the query results, using the query cache, called
by subclasses that implement cacheable queries
(Inherited from Loader.) | |
| LoadCollectionSubselect |
Called by subclasses that batch initialize collections
(Inherited from Loader.) | |
| LoadEntity |
Called by subclasses that load entities
(Inherited from Loader.) | |
| LoadEntityBatch |
Called by subclasses that batch load entities
(Inherited from Loader.) | |
| PostInstantiate | (Inherited from BasicLoader.) | |
| PrepareQueryCommand |
Obtain an IDbCommand with all parameters pre-bound. Bind positional parameters,
named parameters, and limit parameters.
(Inherited from Loader.) | |
| PreprocessSQL |
Modify the SQL, adding lock hints and comments, if necessary
(Inherited from Loader.) | |
| ProcessFilters | (Inherited from Loader.) | |
| SetMaxRows |
Limits the number of rows returned by the Sql query if necessary.
(Inherited from Loader.) | |
| UpgradeLocks | (Overrides .UpgradeLocks().) |
Public Constructors
| Name | Description | |
|---|---|---|
| QueryTranslatorNew |
Construct a query translator
|
Public Properties
| Name | Description | |
|---|---|---|
| CollectSqlStrings | ||
| ContainsCollectionFetches | ||
| EnabledFilters | ||
| Factory | (Inherited from Loader.) | |
| IsManipulationStatement | ||
| IsShallowQuery |
Is this query called by Scroll() or Iterate()?
| |
| IsSubquery | ||
| QuerySpaces | ||
| QueryString | ||
| ReturnAliases | ||
| ReturnTypes |
Types of the return values of an Enumerate() style query.
Return an array of ITypes.
| |
| ScalarColumnNames | ||
| SQLString |
Protected Properties
| Name | Description | |
|---|---|---|
| Aliases | (Overrides .Aliases.) | |
| CollectionAliases | (Inherited from BasicLoader.) | |
| CollectionOwners | (Overrides .CollectionOwners.) | |
| CollectionPersisters | (Overrides .CollectionPersisters.) | |
| CollectionSuffixes | (Overrides .CollectionSuffixes.) | |
| Compiled | ||
| EntityAliases | (Inherited from BasicLoader.) | |
| EntityPersisters |
Persisters for the return values of a Find style query
(Overrides .EntityPersisters.) | |
| IsSingleRowLoader |
Return false is this loader is a batch entity loader
(Inherited from Loader.) | |
| IsSubselectLoadingEnabled | (Overrides .IsSubselectLoadingEnabled.) | |
| OwnerAssociationTypes | (Overrides .OwnerAssociationTypes.) | |
| Owners | (Overrides .Owners.) | |
| SqlString | (Overrides .SqlString.) | |
| Suffixes | (Overrides .Suffixes.) |