The Loader type exposes the following members.

Constructors

  NameDescription
Loader

Methods

  NameDescription
ApplyLocks
Append FOR UPDATE OF clause, if necessary. This empty superclass implementation merely returns its first argument.
BindNamedParameters
Bind named parameters to the IDbCommand
BindPositionalParameters
Bind positional parameter values to the IDbCommand (these are parameters specified by ?).
ConvertITypesToSqlTypes
DoList
Actually execute a query, ignoring the query cache
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetLockModes
What lock mode does this load entities with?
GetNamedParameterLocs
GetParameterTypes
GetQueryStringAndTypes
GetResultColumnOrRow
Get the actual object that is returned in the user-visible result list.
GetResultList
GetResultSet
Fetch a IDbCommand, call SetMaxRows and then execute it, advance to the first result and return an SQL IDataReader
GetType
Gets the Type of the current instance.
(Inherited from Object.)
HasSubselectLoadableCollections
List
Return the query results, using the query cache, called by subclasses that implement cacheable queries
LoadCollection
Called by subclasses that load collections
LoadCollectionBatch
Called by wrappers that batch initialize collections
LoadCollectionSubselect
Called by subclasses that batch initialize collections
LoadEntity
Called by subclasses that load entities
LoadEntityBatch
Called by subclasses that batch load entities
LoadSingleRow
Loads a single row from the result set. This is the processing used from the ScrollableResults where no collection fetches were encountered.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
PostInstantiate
Calculate and cache select-clause suffixes. Must be called by subclasses after instantiation.
PrepareQueryCommand
Obtain an IDbCommand with all parameters pre-bound. Bind positional parameters, named parameters, and limit parameters.
PreprocessSQL
Modify the SQL, adding lock hints and comments, if necessary
ProcessFilters
SetMaxRows
Limits the number of rows returned by the Sql query if necessary.
ToString (Overrides Object..::.ToString()()().)
UpgradeLocks
Does this query return objects that might be already cached by the session, whose lock mode may need upgrading.

Properties

  NameDescription
Aliases
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading
CollectionAliases
CollectionOwners
Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (i.e. in the case of a collection initializer) or no collection.
CollectionPersisters
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
EntityAliases
Get the result set descriptor
EntityPersisters
An array of persisters of entity classes contained in each row of results; implemented by all subclasses
Factory
IsSingleRowLoader
Return false is this loader is a batch entity loader
IsSubselectLoadingEnabled
OwnerAssociationTypes
Owners
An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner")
SqlString
The SqlString to be called; implemented by all subclasses

See Also