C# Class NHibernate.Mapping.Column

Inheritance: ISelectable, ICloneable
Afficher le fichier Open project: nhibernate/nhibernate-core Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetAlias ( int maxAliasLength ) : string
GetDialectTypeName ( Dialect dialect, IMapping mapping ) : string

Method Details

Clone() public méthode

Shallow copy, the value is not copied
public Clone ( ) : object
Résultat object

Column() public méthode

Initializes a new instance of Column.
public Column ( ) : System
Résultat System

Column() public méthode

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

Equals() public méthode

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.
Résultat bool

Equals() public méthode

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 .
Résultat bool

GetAlias() public méthode

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
Résultat string

GetAlias() public méthode

public GetAlias ( Dialect dialect, NHibernate.Mapping.Table table ) : string
dialect Dialect
table NHibernate.Mapping.Table
Résultat string

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

GetQuotedName() public méthode

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

GetQuotedName() public méthode

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. ///
Résultat string

GetSqlType() public méthode

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
Résultat string

GetSqlTypeCode() public méthode

public GetSqlTypeCode ( IMapping mapping ) : NHibernate.SqlTypes.SqlType
mapping IMapping
Résultat NHibernate.SqlTypes.SqlType

GetTemplate() public méthode

public GetTemplate ( Dialect dialect, NHibernate.Dialect.Function.SQLFunctionRegistry functionRegistry ) : string
dialect Dialect
functionRegistry NHibernate.Dialect.Function.SQLFunctionRegistry
Résultat string

GetText() public méthode

public GetText ( Dialect dialect ) : string
dialect Dialect
Résultat string

IsCaracteristicsDefined() public méthode

public IsCaracteristicsDefined ( ) : bool
Résultat bool

IsLengthDefined() public méthode

public IsLengthDefined ( ) : bool
Résultat bool

IsPrecisionDefined() public méthode

public IsPrecisionDefined ( ) : bool
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string