Namespaces

Types

Type IdentifierGeneratorFactory

Namespace NHibernate.Id

Methods

Fields

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

IIdentifierGenerator Create(string strategy, IType type, IDictionary parms, Dialect dialect)

Creates an IIdentifierGenerator from the named strategy.
Parameters
return IIdentifierGenerator An instantiated and configured IIdentifierGenerator .
string strategy The name of the generator to create. This can be one of the NHibernate abbreviations (ie - native , sequence , guid.comb , etc...), a full class name if the Type is in the NHibernate assembly, or a full type name if the strategy is in an external assembly.
IType type The IType that the retured identifier should be.
IDictionary parms An IDictionary of values from the mapping.
Dialect dialect The Dialect to help with Configuration.

object CreateNumber(long value, Type type)

Create the correct boxed Type for the identifier.
Parameters
return object The identifier value converted to the Type .
long value The value of the new identifier.
Type type The IType the identifier should be.

object Get(IDataReader rs, IType type, ISessionImplementor session)

Gets the value of the identifier from the IDataReader and ensures it is the correct Type .
Parameters
return object The value for the identifier.
IDataReader rs The IDataReader to read the identifier value from.
IType type The IIdentifierType the value should be converted to.
ISessionImplementor session The ISessionImplementor the value is retrieved in.

Public fields

object ShortCircuitIndicator

When this is returned by Generate() it indicates that the object has already been saved.
return object

object IdentityColumnIndicator

When this is return
return object