org.alfresco.repo.dictionary
Class DictionaryModelType.DictionaryModelTypeTransactionListener

java.lang.Object
  extended by org.alfresco.repo.transaction.TransactionListenerAdapter
      extended by org.alfresco.repo.dictionary.DictionaryModelType.DictionaryModelTypeTransactionListener
All Implemented Interfaces:
TransactionListener
Enclosing class:
DictionaryModelType

public class DictionaryModelType.DictionaryModelTypeTransactionListener
extends TransactionListenerAdapter

Dictionary model type transaction listener class.


Constructor Summary
DictionaryModelType.DictionaryModelTypeTransactionListener(org.alfresco.service.cmr.repository.NodeService nodeService, ContentService contentService)
           
 
Method Summary
 void afterCommit()
          Invoked after transaction commit.
 void beforeCommit(boolean readOnly)
          Called before a transaction is committed.
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
afterRollback, beforeCompletion, flush
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryModelType.DictionaryModelTypeTransactionListener

public DictionaryModelType.DictionaryModelTypeTransactionListener(org.alfresco.service.cmr.repository.NodeService nodeService,
                                                                  ContentService contentService)
Method Detail

afterCommit

public void afterCommit()
Description copied from class: TransactionListenerAdapter
Invoked after transaction commit.

Any exceptions generated here will cause the transaction to rollback.

Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.

Specified by:
afterCommit in interface TransactionListener
Overrides:
afterCommit in class TransactionListenerAdapter

beforeCommit

public void beforeCommit(boolean readOnly)
Description copied from class: TransactionListenerAdapter
Called before a transaction is committed.

All transaction resources are still available.

Specified by:
beforeCommit in interface TransactionListener
Overrides:
beforeCommit in class TransactionListenerAdapter
Parameters:
readOnly - true if the transaction is read-only
See Also:
TransactionListener.beforeCommit(boolean)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.