tournamentmatchmanager.java
来自「一些很有用的spring的书籍」· Java 代码 · 共 62 行
JAVA
62 行
/*
package com.apress.springbook.chapter07;
import org.springframework.transaction.annotation.Transactional;
//@Transactional
public interface TournamentMatchManager {
@Transactional
public void endMatch(Match match) throws
UnknownMatchException, MatchIsFinishedException,
MatchCannotBePlayedException, PreviousMatchesNotFinishedException;
// other methods ommitted
}
*/
/*
package com.apress.springbook.chapter07;
import org.springframework.transaction.annotation.Transactional;
@Transactional(
rollbackFor = {
UnknownMatchException.class,
MatchIsFinishedException.class,
MatchCannotBePlayedException.class,
PreviousMatchesNotFinishedException.class
}
)
public interface TournamentMatchManager {
public void endMatch(Match match) throws
UnknownMatchException, MatchIsFinishedException,
MatchCannotBePlayedException, PreviousMatchesNotFinishedException;
// other methods ommitted
}
*/
package com.apress.springbook.chapter07;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;
@Transactional(
rollbackFor = {
UnknownMatchException.class,
MatchIsFinishedException.class,
MatchCannotBePlayedException.class,
PreviousMatchesNotFinishedException.class
},
propagation = Propagation.REQUIRED
)
public interface TournamentMatchManager {
public void endMatch(Match match) throws
UnknownMatchException, MatchIsFinishedException,
MatchCannotBePlayedException, PreviousMatchesNotFinishedException;
// other methods ommitted
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?