recordinghome.java

来自「此程序都是企业级 的数据库开发程序 全面揭示了JAVA对数据库的操作」· Java 代码 · 共 35 行

JAVA
35
字号
package ejb.recording;

import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.ejb.EJBHome;
import java.util.Collection;

public interface RecordingHome extends EJBHome {

  /**
   * Create a new Recording with the given data
   */
  public Recording create(Integer key, String catalogNumber, 
                          Double listPrice, String recordingArtist, 
                          String recordingTitle) throws RemoteException, 
                          CreateException;


  // Both of these find methods are implemented by the container at runtime.
  // If we used BMP we have to implement these in the bean class...

  /**
   * Find a Recording matching the target primary key
   */
  public Recording findByPrimaryKey(Integer target) 
          throws RemoteException, FinderException;

  /**
   * Find Recordings with recordingArtist field same as the artist parameter
   */
  public Collection findByArtist(String artist) throws RemoteException, 
                                                       FinderException;
}

⌨️ 快捷键说明

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