Package org.jboss.ejb.plugins.cmp.ejbql

Examples of org.jboss.ejb.plugins.cmp.ejbql.ASTExactNumericLiteral


            }
            offsetParam = param.number;
         }
         else
         {
            ASTExactNumericLiteral param = (ASTExactNumericLiteral) offsetNode;
            offsetValue = (int) param.value;
         }
      }
      if(node.hasLimit)
      {
         Node limitNode = node.jjtGetChild(child);
         if(limitNode instanceof ASTParameter)
         {
            ASTParameter param = (ASTParameter) limitNode;
            Class parameterType = getParameterType(param.number);
            if(int.class != parameterType && Integer.class != parameterType)
            {
               throw new UnsupportedOperationException("LIMIT parameter must be an int");
            }
            limitParam = param.number;
         }
         else
         {
            ASTExactNumericLiteral param = (ASTExactNumericLiteral) limitNode;
            limitValue = (int) param.value;
         }
      }
      return data;
   }
View Full Code Here


            }
            offsetParam = param.number;
         }
         else
         {
            ASTExactNumericLiteral param = (ASTExactNumericLiteral) offsetNode;
            offsetValue = (int) param.value;
         }
      }
      if(node.hasLimit)
      {
         Node limitNode = node.jjtGetChild(child);
         if(limitNode instanceof ASTParameter)
         {
            ASTParameter param = (ASTParameter) limitNode;
            Class parameterType = getParameterType(param.number);
            if(int.class != parameterType && Integer.class != parameterType)
            {
               throw new UnsupportedOperationException("LIMIT parameter must be an int");
            }
            limitParam = param.number;
         }
         else
         {
            ASTExactNumericLiteral param = (ASTExactNumericLiteral) limitNode;
            limitValue = (int) param.value;
         }
      }
      return data;
   }
View Full Code Here

/*      */         }
/* 1722 */         this.offsetParam = param.number;
/*      */       }
/*      */       else
/*      */       {
/* 1726 */         ASTExactNumericLiteral param = (ASTExactNumericLiteral)offsetNode;
/* 1727 */         this.offsetValue = (int)param.value;
/*      */       }
/*      */     }
/* 1730 */     if (node.hasLimit)
/*      */     {
/* 1732 */       Node limitNode = node.jjtGetChild(child);
/* 1733 */       if ((limitNode instanceof ASTParameter))
/*      */       {
/* 1735 */         ASTParameter param = (ASTParameter)limitNode;
/* 1736 */         Class parameterType = getParameterType(param.number);
/* 1737 */         if ((Integer.TYPE != parameterType) && (Integer.class != parameterType))
/*      */         {
/* 1739 */           throw new UnsupportedOperationException("LIMIT parameter must be an int");
/*      */         }
/* 1741 */         this.limitParam = param.number;
/*      */       }
/*      */       else
/*      */       {
/* 1745 */         ASTExactNumericLiteral param = (ASTExactNumericLiteral)limitNode;
/* 1746 */         this.limitValue = (int)param.value;
/*      */       }
/*      */     }
/* 1749 */     return data;
/*      */   }
View Full Code Here

/*      */         }
/*  404 */         this.offsetParam = param.number;
/*      */       }
/*      */       else
/*      */       {
/*  408 */         ASTExactNumericLiteral param = (ASTExactNumericLiteral)offsetNode;
/*  409 */         this.offsetValue = (int)param.value;
/*      */       }
/*      */     }
/*      */
/*  413 */     if (node.hasLimit)
/*      */     {
/*  415 */       Node limitNode = node.jjtGetChild(child);
/*  416 */       if ((limitNode instanceof ASTParameter))
/*      */       {
/*  418 */         ASTParameter param = (ASTParameter)limitNode;
/*  419 */         Class parameterType = getParameterType(param.number);
/*  420 */         if ((Integer.TYPE != parameterType) && (Integer.class != parameterType))
/*      */         {
/*  422 */           throw new IllegalStateException("LIMIT parameter must be an int");
/*      */         }
/*  424 */         this.limitParam = param.number;
/*      */       }
/*      */       else
/*      */       {
/*  428 */         ASTExactNumericLiteral param = (ASTExactNumericLiteral)limitNode;
/*  429 */         this.limitValue = (int)param.value;
/*      */       }
/*      */     }
/*  432 */     return data;
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.ejbql.ASTExactNumericLiteral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.