Namespaces

Types

Type ValueTypeType

Namespace NHibernate.Type

Parent ImmutableType

Interfaces ILiteralType

Methods

Properties

Public instance methods

object Assemble(object cached, ISessionImplementor session, object owner)

Parameters
return object
object cached
ISessionImplementor session
object owner

object DeepCopy(object val)

Parameters
return object
object val

object DeepCopyNotNull(object val)

Parameters
return object
object val

object Disassemble(object value, ISessionImplementor session)

Parameters
return object
object value
ISessionImplementor session

bool Equals(object obj)

Parameters
return bool
object obj

bool Equals(object x, object y)

Compare two instances of the class mapped by this IType for persistence "equality" - ie. Equality of persistent state.
Parameters
return bool True if the two objects contain the same values.
object x The left hand side object.
object y The right hand side object.

object FromString(string xml)

Parameters
return object
string xml

object FromStringValue(string xml)

Parameters
return object
string xml

object Get(IDataReader rs, int index)

Parameters
return object
IDataReader rs
int index

object Get(IDataReader rs, string name)

Parameters
return object
IDataReader rs
string name

int GetColumnSpan(IMapping session)

Parameters
return int
IMapping session

int GetHashCode(object x, ISessionFactoryImplementor factory)

Parameters
return int
object x
ISessionFactoryImplementor factory

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

object Hydrate(IDataReader rs, String[] names, ISessionImplementor session, object owner)

Parameters
return object
IDataReader rs
String[] names
ISessionImplementor session
object owner

bool IsDatabaseNull(object value)

Parameters
return bool
object value

bool IsDirty(object old, object current, Boolean[] checkable, ISessionImplementor session)

Parameters
return bool
object old
object current
Boolean[] checkable
ISessionImplementor session

bool IsDirty(object old, object current, ISessionImplementor session)

Parameters
return bool
object old
object current
ISessionImplementor session

bool IsModified(object old, object current, Boolean[] checkable, ISessionImplementor session)

Parameters
return bool
object old
object current
Boolean[] checkable
ISessionImplementor session

object NullSafeGet(IDataReader rs, string name, ISessionImplementor session, object owner)

Parameters
return object
IDataReader rs
string name
ISessionImplementor session
object owner

object NullSafeGet(IDataReader rs, String[] names)

Parameters
return object
IDataReader rs
String[] names

object NullSafeGet(IDataReader rs, String[] names, ISessionImplementor session, object owner)

Parameters
return object
IDataReader rs
String[] names
ISessionImplementor session
object owner

object NullSafeGet(IDataReader rs, string name)

Parameters
return object
IDataReader rs
string name

void NullSafeSet(IDbCommand cmd, object value, int index)

Parameters
IDbCommand cmd
object value
int index

void NullSafeSet(IDbCommand st, object value, int index, Boolean[] settable, ISessionImplementor session)

Parameters
IDbCommand st
object value
int index
Boolean[] settable
ISessionImplementor session

void NullSafeSet(IDbCommand st, object value, int index, ISessionImplementor session)

Parameters
IDbCommand st
object value
int index
ISessionImplementor session

string ObjectToSQLString(object val)

When implemented by a class, return a String representation of the value, suitable for embedding in an SQL statement
Parameters
return string A string that containts a well formed SQL Statement.
object val The object to convert to a string for the SQL statement.

object Replace(object original, object current, ISessionImplementor session, object owner, IDictionary copiedAlready)

Parameters
return object
object original
object current
ISessionImplementor session
object owner
IDictionary copiedAlready

object ResolveIdentifier(object value, ISessionImplementor session, object owner)

Parameters
return object
object value
ISessionImplementor session
object owner

object SemiResolve(object value, ISessionImplementor session, object owner)

Parameters
return object
object value
ISessionImplementor session
object owner

void Set(IDbCommand cmd, object value, int index)

Parameters
IDbCommand cmd
object value
int index

SqlType[] SqlTypes(IMapping mapping)

Parameters
return SqlType[]
IMapping mapping

string ToLoggableString(object value, ISessionFactoryImplementor factory)

Parameters
return string
object value
ISessionFactoryImplementor factory

string ToString(object val)

A representation of the value to be embedded in an XML element
This just calls ToString so if there is a possibility of this PrimitiveType having any characters that need to be encoded then this method should be overridden. TODO: figure out if this is used to build Xml strings or will have encoding done automattically.
Parameters
return string An Xml formatted string.
object val The object that contains the values.

string ToString()

Parameters
return string

Public properties

bool HasNiceEquals get;

return bool

bool IsAnyType get;

return bool

bool IsAssociationType get;

return bool

bool IsCollectionType get;

return bool

bool IsComponentType get;

return bool

bool IsEntityType get;

return bool

bool IsMutable get;

return bool

string Name get;

return string

Type ReturnedClass get;

return Type

SqlType SqlType get;

return SqlType