C# 클래스 Habanero.BO.TransactionalBusinessObject

상속: ITransactional
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
TransactionID ( ) : string

This is the ID that uniquely identifies this item of the transaction. This must be the same for the lifetime of the transaction object. This assumption is relied upon for certain optimisations in the Transaction Comitter.

UpdateAsRolledBack ( ) : void

updates the object as rolled back

UpdateStateAsCommitted ( ) : void

Updates the business object as committed

보호된 메소드들

메소드 설명
CanBePersisted ( string &errMsg ) : bool

Checks whether the Wrapped business object can be Persisted.

CheckCanDelete ( string &errMsg ) : bool

Checks whether the Wrapped business object can be deleted.

CheckDuplicateIdentifier ( List pendingTransactions, List errorMessages ) : void

returns true if there is already an object in the database with the same primary identifier (primary key) or with the same alternate identifier (alternate key)

CheckForConcurrencyErrors ( ) : void

Checks the underlying business object for any concurrency control errors before trying to commit to the datasource

IsNew ( ) : bool

Whether the business object's state is new

IsNewAndDeleted ( ) : bool

returns true if the underlying business object is new and deleted. I.e. it is in an invalid state which means that it has already been deleted from the database.

IsValid ( string &invalidReason ) : bool

Indicates whether all of the property values are valid

TransactionalBusinessObject ( IBusinessObject businessObject ) : System

Creates a TransactionalBusinessObject that wraps the IBusinessObject

UpdateObjectBeforePersisting ( ITransactionCommitter transactionCommitter ) : void

Executes any custom code required by the business object before it is persisted to the database. This has the additionl capability of creating or updating other business objects and adding these to the transaction committer.

비공개 메소드들

메소드 설명
CheckDuplicatePrimaryKey ( BusinessObject bo, List pendingTransactions, IPrimaryKey primaryKey, List errorMessages ) : void
GetClassDisplayName ( BusinessObject bo ) : string
GetDuplicateKeyCriteria ( Criteria keyCriteria, Criteria primaryKeyCriteria ) : Criteria
GetDuplicateObjectErrMsg ( IBOKey boKey, string classDisplayName ) : string

GetDuplicateObjects ( BusinessObject bo, List pendingTransactions, Criteria keyCriteria ) : IBusinessObjectCollection

메소드 상세

CanBePersisted() 보호된 메소드

Checks whether the Wrapped business object can be Persisted.
protected CanBePersisted ( string &errMsg ) : bool
errMsg string
리턴 bool

CheckCanDelete() 보호된 메소드

Checks whether the Wrapped business object can be deleted.
protected CheckCanDelete ( string &errMsg ) : bool
errMsg string
리턴 bool

CheckDuplicateIdentifier() 보호된 메소드

returns true if there is already an object in the database with the same primary identifier (primary key) or with the same alternate identifier (alternate key)
protected CheckDuplicateIdentifier ( List pendingTransactions, List errorMessages ) : void
pendingTransactions List
errorMessages List
리턴 void

CheckForConcurrencyErrors() 보호된 메소드

Checks the underlying business object for any concurrency control errors before trying to commit to the datasource
protected CheckForConcurrencyErrors ( ) : void
리턴 void

IsNew() 보호된 메소드

Whether the business object's state is new
protected IsNew ( ) : bool
리턴 bool

IsNewAndDeleted() 보호된 메소드

returns true if the underlying business object is new and deleted. I.e. it is in an invalid state which means that it has already been deleted from the database.
protected IsNewAndDeleted ( ) : bool
리턴 bool

IsValid() 보호된 메소드

Indicates whether all of the property values are valid
protected IsValid ( string &invalidReason ) : bool
invalidReason string A string to modify with a reason /// for any invalid values
리턴 bool

TransactionID() 공개 메소드

This is the ID that uniquely identifies this item of the transaction. This must be the same for the lifetime of the transaction object. This assumption is relied upon for certain optimisations in the Transaction Comitter.
public TransactionID ( ) : string
리턴 string

TransactionalBusinessObject() 보호된 메소드

Creates a TransactionalBusinessObject that wraps the IBusinessObject
protected TransactionalBusinessObject ( IBusinessObject businessObject ) : System
businessObject IBusinessObject
리턴 System

UpdateAsRolledBack() 공개 메소드

updates the object as rolled back
public UpdateAsRolledBack ( ) : void
리턴 void

UpdateObjectBeforePersisting() 보호된 메소드

Executes any custom code required by the business object before it is persisted to the database. This has the additionl capability of creating or updating other business objects and adding these to the transaction committer.
protected UpdateObjectBeforePersisting ( ITransactionCommitter transactionCommitter ) : void
transactionCommitter ITransactionCommitter the transaction committer that is executing the transaction
리턴 void

UpdateStateAsCommitted() 공개 메소드

Updates the business object as committed
public UpdateStateAsCommitted ( ) : void
리턴 void