Class EntityClause

java.lang.Object
org.apache.ofbiz.entity.condition.EntityClause

public class EntityClause extends Object
Generic Entity Clause - Used to string together entities to make a find clause
  • Constructor Details

  • Method Details

    • getFirstEntity

      public String getFirstEntity()
      Gets first entity.
      Returns:
      the first entity
    • getSecondEntity

      public String getSecondEntity()
      Gets second entity.
      Returns:
      the second entity
    • getFirstField

      public String getFirstField()
      Gets first field.
      Returns:
      the first field
    • getSecondField

      public String getSecondField()
      Gets second field.
      Returns:
      the second field
    • getValue

      public Object getValue()
      Gets value.
      Returns:
      the value
    • getInterFieldOperation

      public <L, R> EntityOperator<L,R> getInterFieldOperation()
      Gets inter field operation.
      Type Parameters:
      L - the type parameter
      R - the type parameter
      Returns:
      the inter field operation
    • getIntraFieldOperation

      public <L, R> EntityOperator<L,R> getIntraFieldOperation()
      Gets intra field operation.
      Type Parameters:
      L - the type parameter
      R - the type parameter
      Returns:
      the intra field operation
    • setFirstEntity

      public void setFirstEntity(String firstEntity)
      Sets first entity.
      Parameters:
      firstEntity - the first entity
    • setSecondEntity

      public void setSecondEntity(String secondEntity)
      Sets second entity.
      Parameters:
      secondEntity - the second entity
    • setFirstField

      public void setFirstField(String firstField)
      Sets first field.
      Parameters:
      firstField - the first field
    • setSecondField

      public void setSecondField(String secondField)
      Sets second field.
      Parameters:
      secondField - the second field
    • setInterFieldOperation

      public <L, R> void setInterFieldOperation(EntityOperator<L,R> interFieldOperation)
      Sets inter field operation.
      Type Parameters:
      L - the type parameter
      R - the type parameter
      Parameters:
      interFieldOperation - the inter field operation
    • setIntraFieldOperation

      public <L, R> void setIntraFieldOperation(EntityOperator<L,R> intraFieldOperation)
      Sets intra field operation.
      Type Parameters:
      L - the type parameter
      R - the type parameter
      Parameters:
      intraFieldOperation - the intra field operation
    • setModelEntities

      protected void setModelEntities(ModelReader modelReader) throws GenericEntityException
      Sets model entities.
      Parameters:
      modelReader - the model reader
      Throws:
      GenericEntityException - the generic entity exception
    • getFirstModelEntity

      protected ModelEntity getFirstModelEntity()
      Gets first model entity.
      Returns:
      the first model entity
    • getSecondModelEntity

      protected ModelEntity getSecondModelEntity()
      Gets second model entity.
      Returns:
      the second model entity
    • toString

      public String toString()
      Overrides:
      toString in class Object