Namespaces

Types

Type IMultiQuery

Namespace NHibernate

Methods

Public instance methods

IMultiQuery Add(string hql)

Add the specified HQL query to the multi query
Parameters
return IMultiQuery
string hql

IMultiQuery Add(IQuery query)

Add the specified HQL query to the multi query
Parameters
return IMultiQuery
IQuery query

IMultiQuery AddNamedQuery(string namedQuery)

Add a named query to the multi query
Parameters
return IMultiQuery
string namedQuery

IList List()

Get all the
Parameters
return IList

IMultiQuery SetAnsiString(string name, string val)

Bind an instance of a String to a named parameter using an NHibernate AnsiStringType .
Parameters
return IMultiQuery
string name The name of the parameter
string val A non-null instance of a String .

IMultiQuery SetBinary(string name, Byte[] val)

Parameters
return IMultiQuery
string name
Byte[] val

IMultiQuery SetBoolean(string name, bool val)

Bind an instance of a Boolean to a named parameter using an NHibernate BooleanType .
Parameters
return IMultiQuery
string name The name of the parameter
bool val A non-null instance of a Boolean .

IMultiQuery SetByte(string name, Byte val)

Bind an instance of a Byte to a named parameter using an NHibernate ByteType .
Parameters
return IMultiQuery
string name The name of the parameter
Byte val A non-null instance of a Byte .

IMultiQuery SetCacheable(bool cacheable)

Enable caching of this query result set.
Parameters
return IMultiQuery
bool cacheable Should the query results be cacheable?

IMultiQuery SetCacheRegion(string cacheRegion)

Parameters
return IMultiQuery
string cacheRegion ${WriteSummary(content)}

IMultiQuery SetCharacter(string name, Char val)

Bind an instance of a Char to a named parameter using an NHibernate CharType .
Parameters
return IMultiQuery
string name The name of the parameter
Char val A non-null instance of a Char .

IMultiQuery SetDateTime(string name, DateTime val)

Bind an instance of a DateTime to a named parameter using an NHibernate DateTimeType .
Parameters
return IMultiQuery
string name The name of the parameter
DateTime val A non-null instance of a DateTime .

IMultiQuery SetDecimal(string name, decimal val)

Bind an instance of a Decimal to a named parameter using an NHibernate DecimalType .
Parameters
return IMultiQuery
string name The name of the parameter
decimal val A non-null instance of a Decimal .

IMultiQuery SetDouble(string name, double val)

Bind an instance of a Double to a named parameter using an NHibernate DoubleType .
Parameters
return IMultiQuery
string name The name of the parameter
double val A non-null instance of a Double .

IMultiQuery SetEntity(string name, object val)

Bind an instance of a mapped persistent class to a named parameter.
Parameters
return IMultiQuery
string name The name of the parameter
object val A non-null instance of a persistent class

IMultiQuery SetEnum(string name, Enum val)

Bind an instance of a persistent enumeration class to a named parameter using an NHibernate PersistentEnumType .
Parameters
return IMultiQuery
string name The name of the parameter
Enum val A non-null instance of a persistent enumeration

IMultiQuery SetFlushMode(FlushMode flushMode)

Override the current session flush mode, just for this query.
Parameters
return IMultiQuery
FlushMode flushMode

IMultiQuery SetForceCacheRefresh(bool forceCacheRefresh)

Parameters
return IMultiQuery
bool forceCacheRefresh Should the query result in a forceable refresh of the query cache?

IMultiQuery SetInt16(string name, short val)

Bind an instance of a Int16 to a named parameter using an NHibernate Int16Type .
Parameters
return IMultiQuery
string name The name of the parameter
short val A non-null instance of a Int16 .

IMultiQuery SetInt32(string name, int val)

Bind an instance of a Int32 to a named parameter using an NHibernate Int32Type .
Parameters
return IMultiQuery
string name The name of the parameter
int val A non-null instance of a Int32 .

IMultiQuery SetInt64(string name, long val)

Bind an instance of a Int64 to a named parameter using an NHibernate Int64Type .
Parameters
return IMultiQuery
string name The name of the parameter
long val A non-null instance of a Int64 .

IMultiQuery SetParameter(string name, object val)

Bind a value to a named query parameter, guessing the NHibernate IType from the class of the given object.
Parameters
return IMultiQuery
string name The name of the parameter
object val The non-null parameter value

IMultiQuery SetParameter(string name, object val, IType type)

Bind a value to a named query parameter
Parameters
return IMultiQuery
string name The name of the parameter
object val The possibly null parameter value
IType type The NHibernate IType .

IMultiQuery SetParameterList(string name, ICollection vals, IType type)

Bind multiple values to a named query parameter. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)
Parameters
return IMultiQuery
string name The name of the parameter
ICollection vals A collection of values to list
IType type The Hibernate type of the values

IMultiQuery SetParameterList(string name, ICollection vals)

Bind multiple values to a named query parameter, guessing the Hibernate type from the class of the first object in the collection. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)
Parameters
return IMultiQuery
string name The name of the parameter
ICollection vals A collection of values to list

IMultiQuery SetResultTransformer(IResultTransformer transformer)

Set a strategy for handling the query results. This can be used to change "shape" of the query result.
Parameters
return IMultiQuery
IResultTransformer transformer

IMultiQuery SetSingle(string name, float val)

Bind an instance of a Single to a named parameter using an NHibernate SingleType .
Parameters
return IMultiQuery
string name The name of the parameter
float val A non-null instance of a Single .

IMultiQuery SetString(string name, string val)

Bind an instance of a String to a named parameter using an NHibernate StringType .
Parameters
return IMultiQuery
string name The name of the parameter
string val A non-null instance of a String .

IMultiQuery SetTime(string name, DateTime val)

Bind an instance of a DateTime to a named parameter using an NHibernate DateTimeType .
Parameters
return IMultiQuery
string name The name of the parameter
DateTime val A non-null instance of a DateTime .

IMultiQuery SetTimeout(int timeout)

The timeout for the underlying ADO query
Parameters
return IMultiQuery
int timeout

IMultiQuery SetTimestamp(string name, DateTime val)

Bind an instance of a DateTime to a named parameter using an NHibernate TimestampType .
Parameters
return IMultiQuery
string name The name of the parameter
DateTime val A non-null instance of a DateTime .