Class EntityClause
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.EntityClause
-
public class EntityClause extends java.lang.Object
Generic Entity Clause - Used to string together entities to make a find clause
-
-
Constructor Summary
Constructors Constructor Description EntityClause()
EntityClause(java.lang.String firstEntity, java.lang.String firstField, java.lang.Object value, EntityOperator<?,?,?> interFieldOperation, EntityOperator<?,?,?> intraFieldOperation)
EntityClause(java.lang.String firstEntity, java.lang.String secondEntity, java.lang.String firstField, java.lang.String secondField, EntityOperator<?,?,?> interFieldOperation, EntityOperator<?,?,?> intraFieldOperation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFirstEntity()
java.lang.String
getFirstField()
protected ModelEntity
getFirstModelEntity()
<L,R,T>
EntityOperator<L,R,T>getInterFieldOperation()
<L,R,T>
EntityOperator<L,R,T>getIntraFieldOperation()
java.lang.String
getSecondEntity()
java.lang.String
getSecondField()
protected ModelEntity
getSecondModelEntity()
java.lang.Object
getValue()
void
setFirstEntity(java.lang.String firstEntity)
void
setFirstField(java.lang.String firstField)
<L,R,T>
voidsetInterFieldOperation(EntityOperator<L,R,T> interFieldOperation)
<L,R,T>
voidsetIntraFieldOperation(EntityOperator<L,R,T> intraFieldOperation)
protected void
setModelEntities(ModelReader modelReader)
void
setSecondEntity(java.lang.String secondEntity)
void
setSecondField(java.lang.String secondField)
java.lang.String
toString()
-
-
-
Constructor Detail
-
EntityClause
public EntityClause()
-
EntityClause
public EntityClause(java.lang.String firstEntity, java.lang.String secondEntity, java.lang.String firstField, java.lang.String secondField, EntityOperator<?,?,?> interFieldOperation, EntityOperator<?,?,?> intraFieldOperation)
-
EntityClause
public EntityClause(java.lang.String firstEntity, java.lang.String firstField, java.lang.Object value, EntityOperator<?,?,?> interFieldOperation, EntityOperator<?,?,?> intraFieldOperation)
-
-
Method Detail
-
getFirstEntity
public java.lang.String getFirstEntity()
-
getSecondEntity
public java.lang.String getSecondEntity()
-
getFirstField
public java.lang.String getFirstField()
-
getSecondField
public java.lang.String getSecondField()
-
getValue
public java.lang.Object getValue()
-
getInterFieldOperation
public <L,R,T> EntityOperator<L,R,T> getInterFieldOperation()
-
getIntraFieldOperation
public <L,R,T> EntityOperator<L,R,T> getIntraFieldOperation()
-
setFirstEntity
public void setFirstEntity(java.lang.String firstEntity)
-
setSecondEntity
public void setSecondEntity(java.lang.String secondEntity)
-
setFirstField
public void setFirstField(java.lang.String firstField)
-
setSecondField
public void setSecondField(java.lang.String secondField)
-
setInterFieldOperation
public <L,R,T> void setInterFieldOperation(EntityOperator<L,R,T> interFieldOperation)
-
setIntraFieldOperation
public <L,R,T> void setIntraFieldOperation(EntityOperator<L,R,T> intraFieldOperation)
-
setModelEntities
protected void setModelEntities(ModelReader modelReader) throws GenericEntityException
- Throws:
GenericEntityException
-
getFirstModelEntity
protected ModelEntity getFirstModelEntity()
-
getSecondModelEntity
protected ModelEntity getSecondModelEntity()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-