com.poscoict.glueframework.transaction
Interface GlueTransactionManager

All Known Subinterfaces:
GlueLazyTransactionManager
All Known Implementing Classes:
GlueDataSourceTransactionManager, GlueHibernateTransactionManager, GlueLazyDataSourceTransactionManager

public interface GlueTransactionManager

Æ®·£Àè¼Ç °ü¸® ÀÎÅÍÆäÀ̽ºÀÌ´Ù.


Method Summary
 org.springframework.transaction.TransactionStatus changeTransaction(org.springframework.transaction.TransactionStatus transactionStatus)
          ThreadLocalÀÇ Transaction Status¸¦ ±³Ã¼ÇÑ´Ù
 boolean commit()
          Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÑ´Ù.
 boolean rollback()
          Æ®·£Àè¼ÇÀ» ·Ñ¹éÇÑ´Ù.
 void startTransaction()
          Æ®·£Àè¼ÇÀ» ½ÃÀÛÇÑ´Ù.
 

Method Detail

startTransaction

void startTransaction()
                      throws GlueException
Æ®·£Àè¼ÇÀ» ½ÃÀÛÇÑ´Ù. ¸í½ÃÀûÀ¸·Î startTransaction ¸Þ¼Òµå¸¦ È£ÃâÇÏÁö ¾ÊÀ¸¸é Æ®·£Àè¼ÇÀÌ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.

Throws:
GlueException - Æ®·£Àè¼Ç ½ÃÀÛ ½ÇÆÐ ½Ã

commit

boolean commit()
               throws GlueException
Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÑ´Ù. Ä¿¹Ô ¼öÇà ÈÄ »õ·Î¿î Æ®·£Àè¼ÇÀ» ½ÃÀÛÇϱâ À§Çؼ­´Â startThreadLocalTransaction ¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.

Returns:
¼º°øÇϸé true
Throws:
GlueException - Æ®·£Àè¼Ç Ä¿¹Ô ½ÇÆÐ ½Ã

rollback

boolean rollback()
                 throws GlueException
Æ®·£Àè¼ÇÀ» ·Ñ¹éÇÑ´Ù. ·Ñ¹é ¼öÇà ÈÄ »õ·Î¿î Æ®·£Àè¼ÇÀ» ½ÃÀÛÇϱâ À§Çؼ­´Â startThreadLocalTransaction ¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.

Returns:
¼º°øÇϸé true
Throws:
GlueException - Æ®·£Àè¼ÇÀ» ·Ñ¹é ½ÇÆÐ ½Ã

changeTransaction

org.springframework.transaction.TransactionStatus changeTransaction(org.springframework.transaction.TransactionStatus transactionStatus)
                                                                    throws GlueException
ThreadLocalÀÇ Transaction Status¸¦ ±³Ã¼ÇÑ´Ù

Parameters:
TransactionStatus - »õ·Ó°Ô ThreadLocal¿¡ ¼³Á¤ÇÒ TransactionStatus
Returns:
TransactionStatus ±âÁ¸¿¡ »ç¿ëÇÏ°í ÀÖ´ø TransactionStatus
Throws:
GlueException


Copyright © 2013–2017 POSCO ICT. All rights reserved.