Class Criteria
java.lang.Object
com.e1c.langtool.history.db.query.Criteria
- All Implemented Interfaces:
ICriteria,IExpression
Immutable and thread-safe implementation of
ICriteria.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.history.db.query.ICriteria
ICriteria.CompareOp, ICriteria.Field -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IExpressionVisitor visitor) Accepts the given expression visitor.static CriteriacreateForContextField(Context context) static CriteriacreateForStringField(ICriteria.Field field, ICriteria.CompareOp op, String value) booleangetField()Returns the field of translation storage of which value comparing with this criteria value.getValue()Returns the value to compare with the field.inthashCode()toString()
-
Method Details
-
createForStringField
public static Criteria createForStringField(ICriteria.Field field, ICriteria.CompareOp op, String value) -
createForContextField
-
accept
Description copied from interface:IExpressionAccepts the given expression visitor.The visitor's
visitmethod is called with this expression.- Specified by:
acceptin interfaceIExpression- Parameters:
visitor- the visitor
-
getField
Description copied from interface:ICriteriaReturns the field of translation storage of which value comparing with this criteria value. -
getValue
Description copied from interface:ICriteriaReturns the value to compare with the field. -
getOperator
- Specified by:
getOperatorin interfaceICriteria
-
hashCode
public int hashCode() -
equals
-
toString
-