
public class GlueHibernateTransactionManager extends HibernateTransactionManager implements GlueTransactionManager
Bean Property - sessionFactory : (Çʼö) ¿¹Á¦»ç¿ë ¿¹# 1
HbSample01.hbm.xml org.hibernate.dialect.HSQLDialect true false
SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION| Constructor and Description |
|---|
GlueHibernateTransactionManager() |
GlueHibernateTransactionManager(org.hibernate.SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
TransactionStatus |
changeTransaction(TransactionStatus ts)
ThreadLocalÀÇ Transaction Status¸¦ ±³Ã¼ÇÑ´Ù
|
boolean |
commit()
Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÑ´Ù.
|
protected TransactionStatus |
getTransactionStatus() |
boolean |
rollback()
Æ®·£Àè¼ÇÀ» ·Ñ¹éÇÑ´Ù.
|
void |
setTransactionDefinition(TransactionDefinition def)
setter method for DI.
|
void |
startTransaction()
Æ®·£Àè¼ÇÀ» ½ÃÀÛÇÑ´Ù.
|
afterPropertiesSet, convertHibernateAccessException, convertJdbcAccessException, doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doResume, doRollback, doSetRollbackOnly, doSuspend, getDataSource, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getJdbcExceptionTranslator, getResourceFactory, getSessionFactory, isExistingTransaction, isSameConnectionForEntireSession, prepareForCommit, setAutodetectDataSource, setBeanFactory, setDataSource, setEarlyFlushBeforeCommit, setEntityInterceptor, setEntityInterceptorBeanName, setHibernateManagedSession, setJdbcExceptionTranslator, setPrepareConnection, setSessionFactorycommit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommit, getTransaction, rollbackpublic GlueHibernateTransactionManager()
public GlueHibernateTransactionManager(org.hibernate.SessionFactory sessionFactory)
sessionFactory - protected TransactionStatus getTransactionStatus()
public void setTransactionDefinition(TransactionDefinition def)
def - public void startTransaction()
throws GlueException
GlueTransactionManagerstartTransaction ¸Þ¼Òµå¸¦ È£ÃâÇÏÁö ¾ÊÀ¸¸é Æ®·£Àè¼ÇÀÌ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.startTransaction in interface GlueTransactionManagerGlueException - Æ®·£Àè¼Ç ½ÃÀÛ ½ÇÆÐ ½Ãpublic boolean commit()
throws GlueException
GlueTransactionManagerstartThreadLocalTransaction ¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.commit in interface GlueTransactionManagerGlueException - Æ®·£Àè¼Ç Ä¿¹Ô ½ÇÆÐ ½Ãpublic boolean rollback()
throws GlueException
GlueTransactionManagerstartThreadLocalTransaction ¸Þ¼Òµå¸¦ È£ÃâÇØ ÁÖ¾î¾ß ÇÑ´Ù.rollback in interface GlueTransactionManagerGlueException - Æ®·£Àè¼ÇÀ» ·Ñ¹é ½ÇÆÐ ½Ãpublic TransactionStatus changeTransaction(TransactionStatus ts) throws GlueException
GlueTransactionManagerchangeTransaction in interface GlueTransactionManagerGlueExceptionCopyright © 2013–2016 POSCO ICT. All rights reserved.