User: dsundstrom
  Date: 02/04/14 09:26:25

  Modified:    src/main/org/jboss/ejb/plugins/cmp/ejbql JBossQLParser.jjt
  Log:
  Added parameter support to the IN and LIKE operators.
  
  Revision  Changes    Path
  1.2       +9 -3      jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/JBossQLParser.jjt
  
  Index: JBossQLParser.jjt
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/JBossQLParser.jjt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JBossQLParser.jjt 26 Feb 2002 23:16:40 -0000      1.1
  +++ JBossQLParser.jjt 14 Apr 2002 16:26:24 -0000      1.2
  @@ -46,7 +46,7 @@
    * This class parses JBossQL into an abstract syntax tree.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dain Sundstrom</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */                            
   public class JBossQLParser {
      private Catalog catalog;
  @@ -289,19 +289,25 @@
         ArithmeticExpression() <AND> ArithmeticExpression()
   }
   
  +////////////////////// New or changed elements /////////////////////////////
  +
   void InExpression() #In :
   {}
   {
      StringValuedPath() [<NOT> { jjtThis.not=true; } ] <IN> 
  -      <LPAREN> StringLiteral() ( <COMMA> StringLiteral() )* <RPAREN>
  +      <LPAREN> ( StringLiteral() | StringValuedParameter() )
  +      ( <COMMA> ( StringLiteral() | StringValuedParameter() ) )* <RPAREN>
   }
   
   void LikeExpression() #Like :
   {}
   {
      StringValuedPath() [<NOT> { jjtThis.not=true; } ] <LIKE>
  -      StringLiteral() [<ESCAPE> StringLiteral()]
  +      ( StringLiteral() | StringValuedParameter() )
  +      [<ESCAPE> ( StringLiteral() | StringValuedParameter() ) ]
   }
  +
  +////////////////////////////////////////////////////////////////////////////
   
   void NullComparisonExpression() #NullComparison :
   {}
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to