Class EntityClause
java.lang.Object
org.apache.ofbiz.entity.condition.EntityClause
Generic Entity Clause - Used to string together entities to make a find clause
-
Constructor Summary
ConstructorDescriptionEntityClause
(String firstEntity, String firstField, Object value, EntityOperator<?, ?> interFieldOperation, EntityOperator<?, ?> intraFieldOperation) EntityClause
(String firstEntity, String secondEntity, String firstField, String secondField, EntityOperator<?, ?> interFieldOperation, EntityOperator<?, ?> intraFieldOperation) -
Method Summary
Modifier and TypeMethodDescriptionGets first entity.Gets first field.protected ModelEntity
Gets first model entity.<L,
R> EntityOperator<L, R> Gets inter field operation.<L,
R> EntityOperator<L, R> Gets intra field operation.Gets second entity.Gets second field.protected ModelEntity
Gets second model entity.getValue()
Gets value.void
setFirstEntity
(String firstEntity) Sets first entity.void
setFirstField
(String firstField) Sets first field.<L,
R> void setInterFieldOperation
(EntityOperator<L, R> interFieldOperation) Sets inter field operation.<L,
R> void setIntraFieldOperation
(EntityOperator<L, R> intraFieldOperation) Sets intra field operation.protected void
setModelEntities
(ModelReader modelReader) Sets model entities.void
setSecondEntity
(String secondEntity) Sets second entity.void
setSecondField
(String secondField) Sets second field.toString()
-
Constructor Details
-
EntityClause
public EntityClause() -
EntityClause
public EntityClause(String firstEntity, String secondEntity, String firstField, String secondField, EntityOperator<?, ?> interFieldOperation, EntityOperator<?, ?> intraFieldOperation) -
EntityClause
public EntityClause(String firstEntity, String firstField, Object value, EntityOperator<?, ?> interFieldOperation, EntityOperator<?, ?> intraFieldOperation)
-
-
Method Details
-
getFirstEntity
Gets first entity.- Returns:
- the first entity
-
getSecondEntity
Gets second entity.- Returns:
- the second entity
-
getFirstField
Gets first field.- Returns:
- the first field
-
getSecondField
Gets second field.- Returns:
- the second field
-
getValue
Gets value.- Returns:
- the value
-
getInterFieldOperation
Gets inter field operation.- Type Parameters:
L
- the type parameterR
- the type parameter- Returns:
- the inter field operation
-
getIntraFieldOperation
Gets intra field operation.- Type Parameters:
L
- the type parameterR
- the type parameter- Returns:
- the intra field operation
-
setFirstEntity
Sets first entity.- Parameters:
firstEntity
- the first entity
-
setSecondEntity
Sets second entity.- Parameters:
secondEntity
- the second entity
-
setFirstField
Sets first field.- Parameters:
firstField
- the first field
-
setSecondField
Sets second field.- Parameters:
secondField
- the second field
-
setInterFieldOperation
Sets inter field operation.- Type Parameters:
L
- the type parameterR
- the type parameter- Parameters:
interFieldOperation
- the inter field operation
-
setIntraFieldOperation
Sets intra field operation.- Type Parameters:
L
- the type parameterR
- the type parameter- Parameters:
intraFieldOperation
- the intra field operation
-
setModelEntities
Sets model entities.- Parameters:
modelReader
- the model reader- Throws:
GenericEntityException
- the generic entity exception
-
getFirstModelEntity
Gets first model entity.- Returns:
- the first model entity
-
getSecondModelEntity
Gets second model entity.- Returns:
- the second model entity
-
toString
-