我需要编写代码来调用“transferControl”例程并读取收件箱中的信息。我的 java 代码调用“transferControl”方法会怎样?请帮助我,我是java新手
public class WhatNext
{
//
// this method is invoked by the business logic to determine the
// NextStep and set it in the receipient's Inbox. There is a suggested
// InBox layout design in this code
//
public static void transferControl ( String requestId,
String businessTransactionId,
String transactionStepId,
String selector,
String requesterId)
{
InStorDB theDB = new InStorDB(); // "connect" to the DB
NextStep next = theDB.getNextStep(businessTransactionId,
transactionStepId,
selector);
//
// these 'columns' provide information on the next step to be taken
//
String nextTranId = next.nextBusinessTransactionId;
String nextStepId = next.nextBusinessStepId;
//
// which is then used to obtain the next initiation environment
//
CurrentStep current = theDB.getCurrentStep(nextTranId,
nextStepId);
//
// then used to set up the InBox fields of the recepient
// "to be coded"
//
// and stored in Inbox database
// "to be coded"
}
}
最佳答案
由于方法transferControl是静态的,您可以像下面这样调用方法
WhatNext.transferControl(parameters);
关于java - java中调用方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31911170/