JAVA/CORBA クラス
例:IsDocumentLockingEnabled プロパティ
1. 次のエージェントは、現在のデータベースで文書のロックが有効であるかどうかを表示します。
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
if (db.isDocumentLockingEnabled())
System.out.println("Document locking is enabled");
else
System.out.println("Document locking is not enabled");
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. 次のエージェントは、現在のデータベースの文書のロックを切り替えます。
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
db.setDocumentLockingEnabled(!db.isDocumentLockingEnabled());
} catch(Exception e) {
e.printStackTrace();
}
}
}
関連項目
IsDocumentLockingEnabled プロパティ
用語集
フィードバック
ヘルプ
または
プロダクトユーザビリティ
ヘルプの使い方
すべてのヘルプ項目
用語集