C# Class NHibernate.Persister.Entity.SingleTableEntityPersister

Default implementation of the ClassPersister interface. Implements the "table-per-class hierarchy" mapping strategy for an entity class.
Inheritance: AbstractEntityPersister, IQueryable
显示文件 Open project: nhibernate/nhibernate-core Class Usage Examples

Private Properties

Property Type Description
DiscriminatorFilterFragment string
GenerateSequentialSelect NHibernate.SqlCommand.SqlString
GetJoinTableId object

Public Methods

Method Description
FilterFragment ( string alias ) : string
FromTableFragment ( string name ) : string
GetIdentifierType ( int j ) : IType
GetPropertyTableName ( string propertyName ) : string
GetSubclassForDiscriminatorValue ( object value ) : string
GetSubclassPropertyTableName ( int i ) : string
GetSubclassPropertyTableNumber ( string propertyName, string entityName ) : int
GetSubclassTableName ( int j ) : string
OneToManyFilterFragment ( string alias ) : string
PostInstantiate ( ) : void
SingleTableEntityPersister ( NHibernate.Mapping.PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping ) : System

Protected Methods

Method Description
AddDiscriminatorToInsert ( NHibernate.SqlCommand.SqlInsertBuilder insert ) : void
AddDiscriminatorToSelect ( NHibernate.SqlCommand.SelectFragment select, string name, string suffix ) : void
GetJoinIdKeyColumns ( int j ) : string[]
GetJoinTableId ( int table, object fields ) : object
GetJoinTableId ( int table, object obj, EntityMode entityMode ) : object
GetKeyColumns ( int table ) : string[]
GetRefIdColumnOfTable ( int table ) : int?
GetSequentialSelect ( string entityName ) : NHibernate.SqlCommand.SqlString
GetSubclassPropertyTableNumber ( int i ) : int
GetSubclassTableKeyColumns ( int j ) : string[]
GetTableName ( int table ) : string
IsClassOrSuperclassTable ( int j ) : bool
IsIdOfTable ( int property, int table ) : bool
IsInverseSubclassTable ( int j ) : bool
IsInverseTable ( int j ) : bool
IsNullableSubclassTable ( int j ) : bool
IsNullableTable ( int j ) : bool
IsPropertyOfTable ( int property, int table ) : bool
IsSubclassPropertyDeferred ( string propertyName, string entityName ) : bool
IsSubclassTableLazy ( int j ) : bool
IsSubclassTableSequentialSelect ( int table ) : bool
IsTableCascadeDeleteEnabled ( int j ) : bool

Private Methods

Method Description
DiscriminatorFilterFragment ( string alias ) : string
GenerateSequentialSelect ( ILoadable persister ) : NHibernate.SqlCommand.SqlString
GetJoinTableId ( int table, int index, object fields ) : object

Method Details

AddDiscriminatorToInsert() protected method

protected AddDiscriminatorToInsert ( NHibernate.SqlCommand.SqlInsertBuilder insert ) : void
insert NHibernate.SqlCommand.SqlInsertBuilder
return void

AddDiscriminatorToSelect() protected method

protected AddDiscriminatorToSelect ( NHibernate.SqlCommand.SelectFragment select, string name, string suffix ) : void
select NHibernate.SqlCommand.SelectFragment
name string
suffix string
return void

FilterFragment() public method

public FilterFragment ( string alias ) : string
alias string
return string

FromTableFragment() public method

public FromTableFragment ( string name ) : string
name string
return string

GetIdentifierType() public method

public GetIdentifierType ( int j ) : IType
j int
return IType

GetJoinIdKeyColumns() protected method

protected GetJoinIdKeyColumns ( int j ) : string[]
j int
return string[]

GetJoinTableId() protected method

protected GetJoinTableId ( int table, object fields ) : object
table int
fields object
return object

GetJoinTableId() protected method

protected GetJoinTableId ( int table, object obj, EntityMode entityMode ) : object
table int
obj object
entityMode EntityMode
return object

GetKeyColumns() protected method

protected GetKeyColumns ( int table ) : string[]
table int
return string[]

GetPropertyTableName() public method

public GetPropertyTableName ( string propertyName ) : string
propertyName string
return string

GetRefIdColumnOfTable() protected method

protected GetRefIdColumnOfTable ( int table ) : int?
table int
return int?

GetSequentialSelect() protected method

protected GetSequentialSelect ( string entityName ) : NHibernate.SqlCommand.SqlString
entityName string
return NHibernate.SqlCommand.SqlString

GetSubclassForDiscriminatorValue() public method

public GetSubclassForDiscriminatorValue ( object value ) : string
value object
return string

GetSubclassPropertyTableName() public method

public GetSubclassPropertyTableName ( int i ) : string
i int
return string

GetSubclassPropertyTableNumber() protected method

protected GetSubclassPropertyTableNumber ( int i ) : int
i int
return int

GetSubclassPropertyTableNumber() public method

public GetSubclassPropertyTableNumber ( string propertyName, string entityName ) : int
propertyName string
entityName string
return int

GetSubclassTableKeyColumns() protected method

protected GetSubclassTableKeyColumns ( int j ) : string[]
j int
return string[]

GetSubclassTableName() public method

public GetSubclassTableName ( int j ) : string
j int
return string

GetTableName() protected method

protected GetTableName ( int table ) : string
table int
return string

IsClassOrSuperclassTable() protected method

protected IsClassOrSuperclassTable ( int j ) : bool
j int
return bool

IsIdOfTable() protected method

protected IsIdOfTable ( int property, int table ) : bool
property int
table int
return bool

IsInverseSubclassTable() protected method

protected IsInverseSubclassTable ( int j ) : bool
j int
return bool

IsInverseTable() protected method

protected IsInverseTable ( int j ) : bool
j int
return bool

IsNullableSubclassTable() protected method

protected IsNullableSubclassTable ( int j ) : bool
j int
return bool

IsNullableTable() protected method

protected IsNullableTable ( int j ) : bool
j int
return bool

IsPropertyOfTable() protected method

protected IsPropertyOfTable ( int property, int table ) : bool
property int
table int
return bool

IsSubclassPropertyDeferred() protected method

protected IsSubclassPropertyDeferred ( string propertyName, string entityName ) : bool
propertyName string
entityName string
return bool

IsSubclassTableLazy() protected method

protected IsSubclassTableLazy ( int j ) : bool
j int
return bool

IsSubclassTableSequentialSelect() protected method

protected IsSubclassTableSequentialSelect ( int table ) : bool
table int
return bool

IsTableCascadeDeleteEnabled() protected method

protected IsTableCascadeDeleteEnabled ( int j ) : bool
j int
return bool

OneToManyFilterFragment() public method

public OneToManyFilterFragment ( string alias ) : string
alias string
return string

PostInstantiate() public method

public PostInstantiate ( ) : void
return void

SingleTableEntityPersister() public method

public SingleTableEntityPersister ( NHibernate.Mapping.PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping ) : System
persistentClass NHibernate.Mapping.PersistentClass
cache ICacheConcurrencyStrategy
factory ISessionFactoryImplementor
mapping IMapping
return System