Determines the state of a business object.

Namespace:  NHibernate.BusinessObjects
Assembly:  NHibernate.BusinessObjects (in NHibernate.BusinessObjects.dll)

Syntax

Visual Basic
<FlagsAttribute> _
Public Enumeration EBusinessObjectState
C#
[FlagsAttribute]
public enum EBusinessObjectState
Visual C++
[FlagsAttribute]
public enum class EBusinessObjectState
JavaScript
NHibernate.BusinessObjects.EBusinessObjectState = function();
NHibernate.BusinessObjects.EBusinessObjectState.createEnum('NHibernate.BusinessObjects.EBusinessObjectState', true);

Members

Member nameValueDescription
Transient1 A business object is set to Transient after it has been created but not yet safed to the database. The state will be set to Persistent when the data are flushed to the database. If a persitent business object has been deleted, it state will change from Persistent to Transient.
Persistent2 A business object state is set to Persistent when a data row exists in the database.
Detached4 Currently not used.
Added64 Currently not used.
Modified16 Currently not used.
Deleted32 Currently not used.
NeedsRefresh256 Indicates whether a business object needs to be reloaded. This flag is set for new business objects that contain an identity column whose value will be set after the object has been persisted to the database.
Disconnected61440 When a session has been closed, all its business objects will be set to the Disconnected state. You must not access disconnected business objects since their values have no meaning. It is not possible to reuse disconnected business objects in another session.

See Also