|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.support.AbstractPlatformTransactionManager org.springframework.orm.hibernate3.HibernateTransactionManager com.poscoict.glueframework.transaction.GlueHibernateTransactionManager
public class GlueHibernateTransactionManager
HibernateTransactionManager È®Àå. Data SourceÀÇ Æ®·£Àè¼ÇÀ» °ü¸®ÇÏ´Â Manager Ŭ·¡½ºÀÌ´Ù. ³»ºÎÀûÀ¸·Î Spring Framework¿¡¼ Á¦°øÇÏ´Â HibernateTransactionManager¸¦ »ç¿ëÇÑ´Ù.
Bean Property - sessionFactory : (Çʼö) ¿¹Á¦»ç¿ë ¿¹# 1
HbSample01.hbm.xml org.hibernate.dialect.HSQLDialect true false
Field Summary |
---|
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager |
---|
SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION |
Constructor Summary | |
---|---|
GlueHibernateTransactionManager()
|
|
GlueHibernateTransactionManager(org.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
TransactionStatus |
changeTransaction(TransactionStatus ts)
ThreadLocalÀÇ Transaction Status¸¦ ±³Ã¼ÇÑ´Ù |
boolean |
commit()
Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÑ´Ù. |
protected TransactionStatus |
getTransactionStatus()
|
boolean |
rollback()
Æ®·£Àè¼ÇÀ» ·Ñ¹éÇÑ´Ù. |
void |
setTransactionDefinition(TransactionDefinition def)
setter method for DI. |
void |
startTransaction()
Æ®·£Àè¼ÇÀ» ½ÃÀÛÇÑ´Ù. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.transaction.PlatformTransactionManager |
---|
commit, getTransaction, rollback |
Constructor Detail |
---|
public GlueHibernateTransactionManager()
public GlueHibernateTransactionManager(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- Method Detail |
---|
protected TransactionStatus getTransactionStatus()
public void setTransactionDefinition(TransactionDefinition def)
def
- public 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 TransactionStatus changeTransaction(TransactionStatus ts) throws GlueException
GlueTransactionManager
changeTransaction
in interface GlueTransactionManager
GlueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |