User: rinkrank
  Date: 02/07/05 10:20:00

  Modified:    modules/ejb/src/xdoclet/modules/ejb EjbTagsHandler.java
  Log:
  Changed weblogic relations so that the @weblogic.column-map tag now has to be put on 
the fk side (and not the pk side as bafore). This breaks BWC, but it didn't work 
properly in the previous release either.
  
  Further, the taghandler is now smarter, so it discovers the pk column (as long as 
there is only one column iinvolved in the relationship). For more info see:
  
  http://sourceforge.net/mailarchive/forum.php?thread_id=864378&forum_id=1105
  
  Revision  Changes    Path
  1.7       +25 -2     xdoclet/modules/ejb/src/xdoclet/modules/ejb/EjbTagsHandler.java
  
  Index: EjbTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/EjbTagsHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -w -r1.6 -r1.7
  --- EjbTagsHandler.java       18 Jun 2002 20:10:50 -0000      1.6
  +++ EjbTagsHandler.java       5 Jul 2002 17:19:59 -0000       1.7
  @@ -23,7 +23,6 @@
   import xdoclet.SubTask;
   import xdoclet.XDocletException;
   import xdoclet.XDocletTagSupport;
  -import xdoclet.modules.ejb.*;
   
   import xdoclet.modules.ejb.entity.*;
   import xdoclet.modules.ejb.home.HomeInterfaceSubTask;
  @@ -45,7 +44,7 @@
    * @author               Ara Abrahamian ([EMAIL PROTECTED])
    * @created              Oct 15, 2001
    * @xdoclet.taghandler   namespace="Ejb"
  - * @version              $Revision: 1.6 $
  + * @version              $Revision: 1.7 $
    */
   public class EjbTagsHandler extends XDocletTagSupport
   {
  @@ -155,6 +154,30 @@
                   return true;
               }
           }
  +    }
  +
  +    /**
  +     * Returns the class with the specified ejb name
  +     *
  +     * @param name
  +     * @return
  +     * @exception XDocletException
  +     */
  +    public static XClass getEjb(String name) throws XDocletException
  +    {
  +        try {
  +            XClass[] classes = XJavaDoc.getInstance().getSourceClasses();
  +
  +            for (int i = 0; i < classes.length; i++) {
  +                if (name.equals(getEjbNameFor(classes[i]))) {
  +                    return classes[i];
  +                }
  +            }
  +        }
  +        catch (XJavaDocException e) {
  +            throw new XDocletException(e.getMessage());
  +        }
  +        return null;
       }
   
       /**
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to