public class GlueDataSourceTransactionManager extends org.springframework.jdbc.datasource.DataSourceTransactionManager implements GlueTransactionManager
Bean Property - dataSource : (Çʼö) - transactionDefinition : (¼±ÅÃ) ¿¹Á¦»ç¿ë ¿¹# 1 »ç¿ë ¿¹# 2 - Transaction Definition Ãß°¡
Constructor and Description |
---|
GlueDataSourceTransactionManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.transaction.TransactionStatus |
changeTransaction(org.springframework.transaction.TransactionStatus ts)
ThreadLocalÀÇ Transaction Status¸¦ ±³Ã¼ÇÑ´Ù
|
boolean |
commit()
Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÑ´Ù.
|
boolean |
rollback()
Æ®·£Àè¼ÇÀ» ·Ñ¹éÇÑ´Ù.
|
void |
setTransactionDefinition(org.springframework.transaction.TransactionDefinition def)
setter method for DI.
|
void |
startTransaction()
Æ®·£Àè¼ÇÀ» ½ÃÀÛÇÑ´Ù.
|
doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doResume, doRollback, doSetRollbackOnly, doSuspend, getDataSource, getResourceFactory, isExistingTransaction, setDataSource
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
public void setTransactionDefinition(org.springframework.transaction.TransactionDefinition def)
def
- Transaction Definitionpublic void startTransaction() throws GlueException
GlueTransactionManager
startTransaction
¸Þ¼Òµå¸¦ È£ÃâÇÏÁö ¾ÊÀ¸¸é Æ®·£Àè¼ÇÀÌ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.startTransaction
in interface GlueTransactionManager
GlueException
- Æ®·£Àè¼Ç ½ÃÀÛ ½ÇÆÐ ½Ãpublic boolean commit() throws GlueException
GlueTransactionManager
startThreadLocalTransaction
¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.commit
in interface GlueTransactionManager
GlueException
- Æ®·£Àè¼Ç Ä¿¹Ô ½ÇÆÐ ½Ãpublic boolean rollback() throws GlueException
GlueTransactionManager
startThreadLocalTransaction
¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.rollback
in interface GlueTransactionManager
GlueException
- Æ®·£Àè¼ÇÀ» ·Ñ¹é ½ÇÆÐ ½Ãpublic org.springframework.transaction.TransactionStatus changeTransaction(org.springframework.transaction.TransactionStatus ts) throws GlueException
changeTransaction
in interface GlueTransactionManager
TransactionStatus
- »õ·Ó°Ô ThreadLocal¿¡ ¼³Á¤ÇÒ TransactionStatusGlueException
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.jdbc.datasource.DataSourceTransactionManager
Copyright © 2013–2020 POSCO ICT. All rights reserved.