Package nexj.core.persistence.operator

Examples of nexj.core.persistence.operator.EqualsOperator


            }

            break;

         case EqualsOperator.ORDINAL:
            EqualsOperator eq = (EqualsOperator)op;

            if (eq.getLeft().getOrdinal() == AttributeOperator.ORDINAL)
            {
               if (eq.getRight().isConstant())
               {
                  source = ((AttributeOperator)eq.getLeft()).getSource();
                  value = eq.getRight().getValue();
               }
            }
            else if (eq.getRight().getOrdinal() == AttributeOperator.ORDINAL)
            {
               if (eq.getLeft().isConstant())
               {
                  source = ((AttributeOperator)eq.getRight()).getSource();
                  value = eq.getLeft().getValue();
               }
            }

            break;
      }
View Full Code Here


            return in;
         }
         else
         {
            EqualsOperator eq = new EqualsOperator();

            eq.setLeft(new AttributeOperator(typeCodeField));
            eq.setRight(new ConstantOperator(value));

            return eq;
         }
      }
      else
View Full Code Here

   {
      Operator op = m_constraint;

      if (op instanceof EqualsOperator)
      {
         EqualsOperator eq = (EqualsOperator)m_constraint;
         Object value = eq.getRight().getValue();

         if (value instanceof OIDHolder)
         {
            OID oid = ((OIDHolder)value).getOID();

            if (oid != null)
            {
               op = eq.getParent();

               while (op != null && op.getOrdinal() == AndOperator.ORDINAL)
               {
                  op = op.getParent();
               }
View Full Code Here

         AttributeOperator aop = new AttributeOperator(new Field(this, m_mapping, m_childItem, m_metaclass, null, null, false));

         if (isCached() && m_persistenceMapping.getCaching() == PersistenceMapping.CACHING_INSTANCE)
         {
            EqualsOperator eq = new EqualsOperator();

            eq.setLeft(aop);
            eq.setRight(new ConstantOperator(null));

            for (Iterator itr = oidSet.iterator(); itr.hasNext();)
            {
               EqualsOperator clone = (oidSet.size() == 1) ? eq : (EqualsOperator)eq.clone();

               clone.getRight().setValue(itr.next());
               read(clone);
            }
         }
         else
         {
View Full Code Here

TOP

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

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.