You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2005/07/25 22:36:01 UTC

cvs commit: jakarta-tapestry/examples/VlibBeans/src/descriptor/META-INF ejb-jar.xml

hlship      2005/07/25 13:36:01

  Modified:    examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb
                        IBook.java IBookQuery.java BorrowException.java
                        IBookHome.java Book.java
               examples/VlibBeans/src/descriptor/META-INF ejb-jar.xml
  Log:
  Strip out $Id$ comments.
  
  Revision  Changes    Path
  1.2       +5 -7      jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBook.java
  
  Index: IBook.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBook.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IBook.java	25 Jul 2005 16:07:54 -0000	1.1
  +++ IBook.java	25 Jul 2005 20:36:00 -0000	1.2
  @@ -18,12 +18,10 @@
   import java.sql.Timestamp;
   
   /**
  - *  Remote interface for the Book entity bean.
  - *
  - *  @version $Id$
  - *  @author Howard Lewis Ship
  - *
  - **/
  + * Remote interface for the Book entity bean.
  + * 
  + * @author Howard Lewis Ship
  + */
   
   public interface IBook extends IEntityBean
   {
  @@ -52,7 +50,7 @@
       public Integer getHolderId() throws RemoteException;
   
       public void setPublisherId(Integer value) throws RemoteException;
  -    
  +
       public Integer getPublisherId() throws RemoteException;
   
       public boolean getHidden() throws RemoteException;
  
  
  
  1.2       +24 -29    jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBookQuery.java
  
  Index: IBookQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBookQuery.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IBookQuery.java	25 Jul 2005 16:07:54 -0000	1.1
  +++ IBookQuery.java	25 Jul 2005 20:36:00 -0000	1.2
  @@ -19,57 +19,52 @@
   import javax.ejb.EJBObject;
   
   /**
  - *  Remote interface for the BookQuery stateless session bean.
  - *
  - *  @version $Id$
  - *  @author Howard Lewis Ship
  - *
  - **/
  + * Remote interface for the BookQuery stateless session bean.
  + * 
  + * @author Howard Lewis Ship
  + */
   
   public interface IBookQuery extends EJBObject
   {
       /**
  -     *  Returns the total number of results rows in the query.
  -     *
  -     **/
  +     * Returns the total number of results rows in the query.
  +     */
   
       public int getResultCount() throws RemoteException;
   
       /**
  -     *  Returns a selected subset of the results.
  -     *
  -     **/
  +     * Returns a selected subset of the results.
  +     */
   
       public Book[] get(int offset, int length) throws RemoteException;
   
       /**
  -     *  Performs a query of books with the matching title and (optionally) publisher.
  -     *
  -     *  @param parameters defines subset of books to return.
  -     *  @param sortOrdering order of items in result set.
  -     *
  -     **/
  -
  -    public int masterQuery(MasterQueryParameters parameters, SortOrdering sortOrdering) throws RemoteException;
  +     * Performs a query of books with the matching title and (optionally) publisher.
  +     * 
  +     * @param parameters
  +     *            defines subset of books to return.
  +     * @param sortOrdering
  +     *            order of items in result set.
  +     */
  +
  +    public int masterQuery(MasterQueryParameters parameters, SortOrdering sortOrdering)
  +            throws RemoteException;
   
       /**
  -     *  Queries on books owned by a given person.
  -     *
  -     **/
  +     * Queries on books owned by a given person.
  +     */
   
       public int ownerQuery(Integer ownerPK, SortOrdering sortOrdering) throws RemoteException;
   
       /**
  -     *  Queries on books held by a given person.
  -     *
  -     **/
  +     * Queries on books held by a given person.
  +     */
   
       public int holderQuery(Integer holderPK, SortOrdering sortOrdering) throws RemoteException;
   
       /**
  -     *  Queries the list of books held by the borrower but not owned by the borrower.
  -     *
  -     **/
  +     * Queries the list of books held by the borrower but not owned by the borrower.
  +     */
   
       public int borrowerQuery(Integer borrowerPK, SortOrdering sortOrdering) throws RemoteException;
   }
  \ No newline at end of file
  
  
  
  1.2       +4 -7      jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/BorrowException.java
  
  Index: BorrowException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/BorrowException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BorrowException.java	25 Jul 2005 16:07:54 -0000	1.1
  +++ BorrowException.java	25 Jul 2005 20:36:00 -0000	1.2
  @@ -15,14 +15,11 @@
   package org.apache.tapestry.vlib.ejb;
   
   /**
  - *  Throws when a book may not be borrowed.
  - *
  - *  @see IOperations#borrowBook(Integer,Integer)
  - *
  - *  @version $Id$
  - *  @author Howard Lewis Ship
  + * Throws when a book may not be borrowed.
    * 
  - **/
  + * @see IOperations#borrowBook(Integer,Integer)
  + * @author Howard Lewis Ship
  + */
   
   public class BorrowException extends Exception
   {
  
  
  
  1.2       +4 -6      jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBookHome.java
  
  Index: IBookHome.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/IBookHome.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IBookHome.java	25 Jul 2005 16:07:54 -0000	1.1
  +++ IBookHome.java	25 Jul 2005 20:36:00 -0000	1.2
  @@ -22,12 +22,10 @@
   import javax.ejb.FinderException;
   
   /**
  - *  Home interface for the {@link IBook} entity bean.
  - *
  - *  @author Howard Lewis Ship
  - *  @version $Id$
  - *
  - **/
  + * Home interface for the {@link IBook} entity bean.
  + * 
  + * @author Howard Lewis Ship
  + */
   
   public interface IBookHome extends EJBHome
   {
  
  
  
  1.2       +31 -33    jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/Book.java
  
  Index: Book.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/java/org/apache/tapestry/vlib/ejb/Book.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Book.java	25 Jul 2005 16:07:54 -0000	1.1
  +++ Book.java	25 Jul 2005 20:36:00 -0000	1.2
  @@ -18,72 +18,72 @@
   import java.sql.Timestamp;
   
   /**
  - *  Represents a single result row from a {@link IBookQuery}.  In effect,
  - *  this is a light-wieght, serializable, read-only version of an {@link IBook}
  - *  bean, plus it contains the owner and holder name (which means we don't
  - *  have to go find the correct {@link IPerson} to dig out the name).
  - *
  - *  <p>This is provided for efficient access when doing various queries.
  - *
  - *  @version $Id$
  - *  @author Howard Lewis Ship
  - *
  - **/
  + * Represents a single result row from a {@link IBookQuery}. In effect, this is a light-wieght,
  + * serializable, read-only version of an {@link IBook} bean, plus it contains the owner and holder
  + * name (which means we don't have to go find the correct {@link IPerson} to dig out the name).
  + * <p>
  + * This is provided for efficient access when doing various queries.
  + * 
  + * @author Howard Lewis Ship
  + */
   
   public class Book implements Serializable
   {
       private static final long serialVersionUID = -3423550323411938995L;
  -    
  +
       /**
  -     *  Column index for the Book's primary key.
  -     *
  -     **/
  +     * Column index for the Book's primary key.
  +     */
   
       public static final int ID_COLUMN = 0;
   
       /**
  -     *  Column index for the book title.
  -     *
  -     **/
  +     * Column index for the book title.
  +     */
   
       public static final int TITLE_COLUMN = 1;
   
       public static final int DESCRIPTION_COLUMN = 2;
  +
       public static final int ISBN_COLUMN = 3;
  +
       public static final int OWNER_ID_COLUMN = 4;
   
       /**
  -     *  Column index for a presentable version of the holder's name.
  -     *
  -     *  @see IPerson#getNaturalName()
  -     *
  -     **/
  +     * Column index for a presentable version of the holder's name.
  +     * 
  +     * @see IPerson#getNaturalName()
  +     */
   
       public static final int OWNER_NAME_COLUMN = 5;
   
       public static final int HOLDER_ID_COLUMN = 6;
  +
       public static final int HOLDER_NAME_COLUMN = 7;
  +
       public static final int PUBLISHER_ID_COLUMN = 8;
  +
       public static final int PUBLISHER_NAME_COLUMN = 9;
  +
       public static final int AUTHOR_COLUMN = 10;
   
       public static final int HIDDEN_COLUMN = 11;
  +
       public static final int LENDABLE_COLUMN = 12;
  +
       public static final int DATE_ADDED_COLUMN = 13;
   
       /**
  -     *  Number of columns in the result.
  -     *
  -     **/
  +     * Number of columns in the result.
  +     */
   
       public static final int N_COLUMNS = 14;
   
       private Object[] columns;
   
       /**
  -     *  Constructs a new BookQueryResult, making an internal copy of the columns passed.
  -     *
  -     **/
  +     * Constructs a new BookQueryResult, making an internal copy of the columns passed.
  +     */
   
       public Book(Object[] columns)
       {
  @@ -176,10 +176,8 @@
       }
   
       /**
  -     *  Returns true if the book is borrowed; that is, if its holder doesn't
  -     *  match its owner.
  -     *
  -     **/
  +     * Returns true if the book is borrowed; that is, if its holder doesn't match its owner.
  +     */
   
       public boolean isBorrowed()
       {
  
  
  
  1.2       +0 -1      jakarta-tapestry/examples/VlibBeans/src/descriptor/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/examples/VlibBeans/src/descriptor/META-INF/ejb-jar.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ejb-jar.xml	25 Jul 2005 16:07:57 -0000	1.1
  +++ ejb-jar.xml	25 Jul 2005 20:36:01 -0000	1.2
  @@ -1,5 +1,4 @@
   <?xml version="1.0"?>
  -<!--$Id$-->
   <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" 
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org