📄 personalinfoimpl.java
字号:
/**
* Copyright (c) 2001
* Template File
* InterfaceServerImpl.java.template
* IDL Object
* humanresourcedemo.HumanResource.PersonalInfo
* Generation Date
* 2001年12月10日 下午10时17分52秒
* IDL Source File
* E:/HumanResourceDemo/src/humanresourcedemo/HumanResource.idl
* Abstract
* Provides default implementation for the server side of a CORBA interface.
* @version 1.0
*/
package humanresourcedemo.HumanResource.server;
import java.sql.*;
import java.util.*;
import java.math.*;
import org.omg.PortableServer.*;
public class PersonalInfoImpl extends humanresourcedemo.HumanResource.PersonalInfoPOA
{
String _name = "PersonalInfo";
public static ServerMonitorPage monitor = null;
private void init()
{
if (monitor == null)
{
monitor = ServerMonitor.addPage(this, "PersonalInfo");
monitor.showObjectCounter(true);
}
monitor.updateObjectCounter(1);
}
public PersonalInfoImpl(java.lang.String name, java.lang.String creationParameters)
{
this._name = name;
init();
}
public PersonalInfoImpl(java.lang.String name)
{
this._name = name;
init();
}
public PersonalInfoImpl()
{
init();
}
public String getName(short IdNumber)
{
ServerMonitor.log("(" + _name + ") PersonalInfoImpl.java getName()");
if( IdNumber == 5 )
return "John";
else
return "Undefined";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -