You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We must be added new decorators called Rollback, Comit, Before/AfterTransaction in the TransactionalZone.
State
virtual transaction id
Rollback
In the rollback decorator, we have to pass error object that includes the method name to parameter.
Commit
in case of commit decorator, it has to pass a virtual transaction id to parameters.
Before/After Transaction
We need to pass a virtual transaction id. in the state called BeforeTransaction, the virtual transactiom id will be created.
Virtual Transaction ID
as you know that the HTTP Server is stateless. so to use the virtual transaction id for dividing a transaction, it will have to save transaction state to Store (like session store)
the Store is basically a Hash structure that needs an unique key. the unique key is the same as a fingerprint of user. generally, in case of session, the server can create the session key when it has completed a login process, and save it to cookie storage. However, in case of transaction, it can't implement it.
When enumerating methods of target class, we need to save some method to hash store.
/** * @type ITransactionStore */exporttypeITransactionStore={/** * 트랜잭션을 시작하기 전에 실행되는 메소드입니다. */[BEFORE_TRANSACTION_TOKEN]?: object;/** * 트랜잭션을 시작한 후에 실행되는 메소드입니다. */[AFTER_TRANSACTION_TOKEN]?: object;/** * 트랜잭션이 커밋된 후 실행되는 메소드입니다. */[TRANSACTION_COMMIT_TOKEN]?: object;/** * 트랜잭션이 롤백된 후 실행되는 메소드입니다. */[TRANSACTION_ROLLBACK_TOKEN]?: object;};
and when performing the transaction, it can be executed by finding a stored method.
The text was updated successfully, but these errors were encountered:
biud436
changed the title
feat: added @Commit and @Rollback, @AfterTransaction decorators
feat(aop): added @Commit and @Rollback, @AfterTransaction decorators
Sep 20, 2023
biud436
changed the title
feat(aop): added @Commit and @Rollback, @AfterTransaction decorators
feat(aop): added @Commit and @Rollback, @Before/AfterTransaction decorators
Sep 20, 2023
biud436
changed the title
feat(aop): added @Commit and @Rollback, @Before/AfterTransaction decorators
feat(aop): add @Commit and @Rollback, @Before/AfterTransaction decorators
Sep 21, 2023
We must be added new decorators called Rollback, Comit, Before/AfterTransaction in the TransactionalZone.
State
Rollback
In the rollback decorator, we have to pass error object that includes the method name to parameter.
Commit
in case of commit decorator, it has to pass a virtual transaction id to parameters.
Before/After Transaction
We need to pass a virtual transaction id. in the state called BeforeTransaction, the virtual transactiom id will be created.
Virtual Transaction ID
as you know that the HTTP Server is stateless. so to use the virtual transaction id for dividing a transaction, it will have to save transaction state to Store (like session store)
the Store is basically a Hash structure that needs an unique key. the unique key is the same as a fingerprint of user. generally, in case of session, the server can create the session key when it has completed a login process, and save it to cookie storage. However, in case of transaction, it can't implement it.
When enumerating methods of target class, we need to save some method to hash store.
and when performing the transaction, it can be executed by finding a stored method.
The text was updated successfully, but these errors were encountered: