page1
Spring: demarcação transacional declarativa, exemplos
@PersistenceAware
public class DefaultGetMessageInfoOperation
extends BaseService
implements GetMessageInfoOperation
{
@WithReadOnlyTx
public TMessage apply(String messageId) throws ServiceFault {
...
}
}
@PersistenceAware
public class DefaultCopyMessagesOperation
extends BaseService
implements CopyMessagesOperation
{
@WithReadWriteTx
@Override
public Integer apply(String folderId, String... messagesId) throws ServiceFault {
...
}
}