⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountiteratorpoatie.java

📁 基于corba的资源池,实现了实例池供客户端调用,并且实例池对实例的分配采用策略模式支持随即抽取,最近使用和循环抽取三个不同策略.(在visibroke下面开发的)
💻 JAVA
字号:

package Bank;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "D:/exp/NewWork/Exp6/src/Bank.idl"
 * <li> <b>IDL Name</b>      ::Bank::AccountIterator
 * <li> <b>Repository Id</b> IDL:Bank/AccountIterator:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface AccountIterator {
  ...
};
 * </pre>
 */
public class AccountIteratorPOATie extends AccountIteratorPOA {
  private Bank.AccountIteratorOperations _delegate;
  private org.omg.PortableServer.POA _poa;

  public AccountIteratorPOATie (final Bank.AccountIteratorOperations _delegate) {
    this._delegate = _delegate;
  }

  public AccountIteratorPOATie (final Bank.AccountIteratorOperations _delegate, 
                              final org.omg.PortableServer.POA _poa) {
    this._delegate = _delegate;
    this._poa = _poa;
  }

  public Bank.AccountIteratorOperations _delegate () {
    return this._delegate;
  }

  public void _delegate (final Bank.AccountIteratorOperations delegate) {
    this._delegate = delegate;
  }

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

  /**
   * <pre>
   *   boolean hasNext ();
   * </pre>
   */
  public boolean hasNext () {
    return this._delegate.hasNext();
  }

  /**
   * <pre>
   *   boolean hasPre ();
   * </pre>
   */
  public boolean hasPre () {
    return this._delegate.hasPre();
  }

  /**
   * <pre>
   *   Bank.AccountInfoSeq next (in string sql);
   * </pre>
   */
  public Bank.AccountInfo[] next (java.lang.String sql) {
    return this._delegate.next(sql);
  }

  /**
   * <pre>
   *   Bank.AccountInfoSeq pre ();
   * </pre>
   */
  public Bank.AccountInfo[] pre () {
    return this._delegate.pre();
  }

  /**
   * <pre>
   *   long getTotalPage ();
   * </pre>
   */
  public int getTotalPage () {
    return this._delegate.getTotalPage();
  }

  /**
   * <pre>
   *   long getNowPage ();
   * </pre>
   */
  public int getNowPage () {
    return this._delegate.getNowPage();
  }

  /**
   * <pre>
   *   void clean ();
   * </pre>
   */
  public void clean () {
    this._delegate.clean();
  }

  /**
   * <pre>
   *   Bank.AccountInfoSeq returnFirstPage ();
   * </pre>
   */
  public Bank.AccountInfo[] returnFirstPage () {
    return this._delegate.returnFirstPage();
  }

  /**
   * <pre>
   *   Bank.AccountInfoSeq returnLastPage ();
   * </pre>
   */
  public Bank.AccountInfo[] returnLastPage () {
    return this._delegate.returnLastPage();
  }

  /**
   * <pre>
   *   void setNowPage (in long nowPage);
   * </pre>
   */
  public void setNowPage (int nowPage) {
    this._delegate.setNowPage(nowPage);
  }

}

⌨️ 快捷键说明

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