Package nexj.core.persistence.operator

Examples of nexj.core.persistence.operator.MultiArgOperator


            return null;
         }

         args = args.getNext();

         MultiArgOperator logical = null;

         for (;;)
         {
            if (!op.setRight(query.createOperator(key, args.getHead(), nOutput)))
            {
               return null;
            }

            op.initialize();

            if (args.getTail() == null)
            {
               break;
            }

            if (logical == null)
            {
               logical = createLogical(query);
               logical.addOperand(op);
            }

            ComparisonOperator right = create(query);

            if (!right.setLeft(query.createOperator(key, args.getHead(), nOutput)))
            {
               return null;
            }

            logical.addOperand(right);
            op = right;
            args = args.getNext();
         }

         if (logical != null)
View Full Code Here


      /**
       * @see nexj.core.persistence.Query.OperatorFactory#create(nexj.core.scripting.Pair, nexj.core.persistence.Query, Object, byte)
       */
      public Operator create(Pair args, Query query, Object key, byte nOutput)
      {
         MultiArgOperator op = create(query);

         for (; args != null; args = args.getNext())
         {
            if (op.addOperand(query.createOperator(key, args.getHead(), nOutput)) < 0)
            {
               return null;
            }
         }

View Full Code Here

      /**
       * @see nexj.core.persistence.sql.SQLGenerator.OperatorAppender#appendOperator(java.lang.StringBuffer, nexj.core.persistence.Operator, nexj.core.persistence.sql.SQLGenerator)
       */
      public void appendOperator(StringBuffer buf, Operator op, SQLGenerator gen)
      {
         MultiArgOperator multiOp = (MultiArgOperator)op;
         int nCount = multiOp.getOperandCount();

         for (int i = 0; i < nCount; ++i)
         {
            if (i > 0)
            {
               buf.append(m_sOperator);
            }

            gen.appendOperator(buf, multiOp.getOperand(i));
         }
      }
View Full Code Here

TOP

Related Classes of nexj.core.persistence.operator.MultiArgOperator

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.