Namespaces

Types

Type SequenceGenerator

Namespace NHibernate.Id

Interfaces IPersistentIdentifierGenerator, IConfigurable

Methods

Fields

Public instance methods

void Configure(IType type, IDictionary parms, Dialect dialect)

Configures the SequenceGenerator by reading the value of sequence and schema from the parms parameter.
Parameters
IType type The IType the identifier should be.
IDictionary parms An IDictionary of Param values that are keyed by parameter name.
Dialect dialect The Dialect to help with Configuration.

bool Equals(object obj)

Parameters
return bool
object obj

object Generate(ISessionImplementor session, object obj)

Generate an Int16 , Int32 , or Int64 for the identifier by using a database sequence.
Parameters
return object The new identifier as a Int16 , Int32 , or Int64 .
ISessionImplementor session The ISessionImplementor this id is being generated in.
object obj The entity for which the id is being generated.

object GeneratorKey()

Return a key unique to the underlying database objects for a SequenceGenerator.
Parameters
return object The configured sequence name.

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

String[] SqlCreateStrings(Dialect dialect)

The SQL required to create the database objects for a SequenceGenerator.
Parameters
return String[] An array of String objects that contain the Dialect specific sql to create the necessary database objects for the SequenceGenerator.
Dialect dialect The Dialect to help with creating the sql.

string SqlDropString(Dialect dialect)

The SQL required to remove the underlying database objects for a SequenceGenerator.
Parameters
return string A String that will drop the database objects for the SequenceGenerator.
Dialect dialect The Dialect to help with creating the sql.

string ToString()

Parameters
return string

Public fields

string Sequence

The name of the sequence parameter.
return string

string Schema

The name of the schema parameter.
return string