C# Class NHibernate.Mapping.Column

Inheritance: ISelectable, ICloneable
Mostra file Open project: nhibernate/nhibernate-core Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Shallow copy, the value is not copied

Column ( ) : System

Initializes a new instance of Column.

Column ( string columnName ) : System

Initializes a new instance of Column.

Equals ( Column column ) : bool

Determines if this instance of Column and the specified Column can be considered the same.

Equals ( object obj ) : bool

Determines if this instance of Column and a specified object, which must be a Column can be considered the same.

GetAlias ( Dialect dialect ) : string

For any column name, generate an alias that is unique to that column name, and also take Dialect.MaxAliasLength into account.

GetAlias ( Dialect dialect, NHibernate.Mapping.Table table ) : string
GetHashCode ( ) : int

Returns the hash code for this instance.

GetQuotedName ( ) : string

returns quoted name as it would be in the mapping file.

GetQuotedName ( Dialect d ) : string

Gets the name of this Column in quoted form if it is necessary.

GetSqlType ( Dialect dialect, IMapping mapping ) : string

Gets the name of the data type for the column.

If the mapping file contains a value of the attribute sql-type this will return the string contained in that attribute. Otherwise it will use the typename from the Dialect.Dialect of the SqlType object.

GetSqlTypeCode ( IMapping mapping ) : NHibernate.SqlTypes.SqlType
GetTemplate ( Dialect dialect, NHibernate.Dialect.Function.SQLFunctionRegistry functionRegistry ) : string
GetText ( Dialect dialect ) : string
IsCaracteristicsDefined ( ) : bool
IsLengthDefined ( ) : bool
IsPrecisionDefined ( ) : bool
ToString ( ) : string

Private Methods

Method Description
GetAlias ( int maxAliasLength ) : string
GetDialectTypeName ( Dialect dialect, IMapping mapping ) : string

Method Details

Clone() public method

Shallow copy, the value is not copied
public Clone ( ) : object
return object

Column() public method

Initializes a new instance of Column.
public Column ( ) : System
return System

Column() public method

Initializes a new instance of Column.
public Column ( string columnName ) : System
columnName string The name of the column.
return System

Equals() public method

Determines if this instance of Column and the specified Column can be considered the same.
public Equals ( Column column ) : bool
column Column A to compare to this Column.
return bool

Equals() public method

Determines if this instance of Column and a specified object, which must be a Column can be considered the same.
public Equals ( object obj ) : bool
obj object An that should be a .
return bool

GetAlias() public method

For any column name, generate an alias that is unique to that column name, and also take Dialect.MaxAliasLength into account.
public GetAlias ( Dialect dialect ) : string
dialect Dialect
return string

GetAlias() public method

public GetAlias ( Dialect dialect, NHibernate.Mapping.Table table ) : string
dialect Dialect
table NHibernate.Mapping.Table
return string

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

GetQuotedName() public method

returns quoted name as it would be in the mapping file.
public GetQuotedName ( ) : string
return string

GetQuotedName() public method

Gets the name of this Column in quoted form if it is necessary.
public GetQuotedName ( Dialect d ) : string
d Dialect /// The that knows how to quote /// the column name. ///
return string

GetSqlType() public method

Gets the name of the data type for the column.
If the mapping file contains a value of the attribute sql-type this will return the string contained in that attribute. Otherwise it will use the typename from the Dialect.Dialect of the SqlType object.
public GetSqlType ( Dialect dialect, IMapping mapping ) : string
dialect Dialect The to use to get the valid data types.
mapping IMapping
return string

GetSqlTypeCode() public method

public GetSqlTypeCode ( IMapping mapping ) : NHibernate.SqlTypes.SqlType
mapping IMapping
return NHibernate.SqlTypes.SqlType

GetTemplate() public method

public GetTemplate ( Dialect dialect, NHibernate.Dialect.Function.SQLFunctionRegistry functionRegistry ) : string
dialect Dialect
functionRegistry NHibernate.Dialect.Function.SQLFunctionRegistry
return string

GetText() public method

public GetText ( Dialect dialect ) : string
dialect Dialect
return string

IsCaracteristicsDefined() public method

public IsCaracteristicsDefined ( ) : bool
return bool

IsLengthDefined() public method

public IsLengthDefined ( ) : bool
return bool

IsPrecisionDefined() public method

public IsPrecisionDefined ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string