setRelyOnExistingSession
setRelyOnExistingSession(
relyOnExistingSession
)
setRelyOnExistingSession
メソッドは、
startSession
コマンドで既存のセッションを使用するかどうかを定義するブールを定義します。
true
の場合、
executeBatch
のセッション ID は既存のセッション ID と一致する必要があります。
false
の場合、
executeBatch
メソッドを使用して、新しいセッション ID を提供する必要があります。
relyOnExistingSession
— ブール (
true
または
false
)。
戻り値
ありません。
例
以下の例は、
startSession
を呼び出す
executeBatch
メソッドからの抜粋です。
boolean relyOnExistingSession=false;
. . .
Command startSessionCommand = new CommandImpl();
startSessionCommand.setRelyOnExistingSession(relyOnExistingSession);
Copyright IBM Corporation 2012. All Rights Reserved.