📄 financialaccountdelegate.java
字号:
package com.fund.client;
import com.fund.ServiceLocator;
import com.fund.ServiceLocatorException;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class FinancialAccountDelegate {
/**
*financialAccountSessionFacadeHome
*/
private FinancialAccountSessionFacadeHome financialAccountSessionFacadeHome;
/**
* financialAccountSessionFacade
*/
private FinancialAccountSessionFacade financialAccountSessionFacade;
/**
* constructor
* @throws Exception e
*/
public FinancialAccountDelegate() throws Exception {
initializeFinancialAccountSessionFacadeHome();
financialAccountSessionFacade = financialAccountSessionFacadeHome.
create();
}
/**
*
* @param financialAccountDto FinancialAccountDto
* @throws Exception e
*/
public void createFinancialAccount(FinancialAccountDto financialAccountDto)
throws
Exception {
financialAccountSessionFacade.createFinancialAccount(
financialAccountDto);
}
/**
*
* @param accountNo Integer
* @throws Exception e
*/
public void removeFinancialAccount(Integer accountNo) throws Exception {
financialAccountSessionFacade.removeFinancialAccount(accountNo);
}
/**
*
* @param financialAccountDto FinancialAccountDto
* @throws Exception e
*/
public void removeFinancialAccount(FinancialAccountDto financialAccountDto)
throws
Exception {
financialAccountSessionFacade.removeFinancialAccount(
financialAccountDto);
}
/**
*
* @param financialAccountDto FinancialAccountDto
* @throws Exception e
*/
public void updateFinancialAccount(FinancialAccountDto financialAccountDto)
throws
Exception {
financialAccountSessionFacade.updateFinancialAccount(
financialAccountDto);
}
/**
*
* @param financialAccountDtos FinancialAccountDto[]
* @throws Exception e
*/
public void updateFinancialAccounts(FinancialAccountDto[]
financialAccountDtos) throws Exception {
financialAccountSessionFacade.updateFinancialAccounts(
financialAccountDtos);
}
/**
*
* @param accountNo Integer
* @return FinancialAccountDto
* @throws Exception e
*/
public FinancialAccountDto financialAccountFindByPrimaryKey(Integer
accountNo) throws Exception {
return financialAccountSessionFacade.financialAccountFindByPrimaryKey(
accountNo);
}
/**
*
* @param clientNo Integer
* @return FinancialAccountDto
* @throws Exception e
*/
public FinancialAccountDto financialAccountFindByClientNo(Integer clientNo)
throws
Exception {
return financialAccountSessionFacade.financialAccountFindByClientNo(
clientNo);
}
/**
*
* @throws Exception e
*/
private void initializeFinancialAccountSessionFacadeHome()
throws Exception {
String facadeName = "FinancialAccountSessionFacade";
Class facadeClass = com.fund.client.
FinancialAccountSessionFacadeHome.class;
if (financialAccountSessionFacadeHome == null) {
try {
ServiceLocator locator = ServiceLocator.getInstance();
financialAccountSessionFacadeHome = (
FinancialAccountSessionFacadeHome) locator.getEjbHome(
facadeName, facadeClass);
if (financialAccountSessionFacadeHome == null) {
throw new Exception("Did not get home for " + facadeName);
}
} catch (ServiceLocatorException e) {
throw new Exception(e.getMessage());
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -