accountpoatie.java

来自「CORBA实例」· Java 代码 · 共 58 行

JAVA
58
字号

package corba.calculator.server.Bank;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "J:/java/corba/src/corba/calculator/server/sample1.idl"
 * <li> <b>IDL Name</b>      ::Bank::Account
 * <li> <b>Repository Id</b> IDL:Bank/Account:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface Account {
  ...
};
 * </pre>
 */
public class AccountPOATie extends AccountPOA {
  private corba.calculator.server.Bank.AccountOperations _delegate;
  private org.omg.PortableServer.POA _poa;

  public AccountPOATie (final corba.calculator.server.Bank.AccountOperations _delegate) {
    this._delegate = _delegate;
  }

  public AccountPOATie (final corba.calculator.server.Bank.AccountOperations _delegate, 
                              final org.omg.PortableServer.POA _poa) {
    this._delegate = _delegate;
    this._poa = _poa;
  }

  public corba.calculator.server.Bank.AccountOperations _delegate () {
    return this._delegate;
  }

  public void _delegate (final corba.calculator.server.Bank.AccountOperations the_delegate) {
    this._delegate = the_delegate;
  }

  public org.omg.PortableServer.POA _default_POA () {
    if (_poa != null) {
      return _poa;
    } 
    else {
      return super._default_POA();
    }
  }

  /**
   * <pre>
   *   float balance ();
   * </pre>
   */
  public float balance () {
    return this._delegate.balance();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?