Class EntityConditionBase

  • All Implemented Interfaces:
    Direct Known Subclasses:
    EntityCondition, EntityConditionValue, EntityOperator

    public abstract class EntityConditionBase
    extends java.lang.Object

    Represents the conditions to be used to constrain a query.

    An EntityCondition can represent various type of constraints, including:

    • EntityConditionList: a list of EntityConditions, combined with the operator specified
    • EntityExpr: for simple expressions or expressions that combine EntityConditions
    • EntityFieldMap: a map of fields where the field (key) equals the value, combined with the operator specified
    These can be used in various combinations using the EntityConditionList and EntityExpr objects.
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      static java.util.Map<?,​?> _emptyMap  
      static java.util.Map<java.lang.String,​java.lang.String> emptyAliases  
      static java.util.List<?> emptyList  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addValue​(java.lang.StringBuilder buffer, ModelField field, java.lang.Object value, java.util.List<EntityConditionParam> params)  
      static java.lang.Boolean castBoolean​(boolean result)  
      boolean equals​(java.lang.Object obj)  
      protected static boolean equals​(java.lang.Object o1, java.lang.Object o2)  
      protected java.lang.String getColName​(java.util.Map<java.lang.String,​java.lang.String> tableAliases, ModelEntity modelEntity, java.lang.String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)  
      protected java.lang.String getColName​(java.util.Map<java.lang.String,​java.lang.String> tableAliases, ModelEntity modelEntity, ModelField modelField, java.lang.String fieldName, boolean includeTableNamePrefix, Datasource datasourceInfo)  
      protected java.lang.String getColName​(ModelField modelField, java.lang.String fieldName)  
      protected ModelField getField​(ModelEntity modelEntity, java.lang.String fieldName)  
      int hashCode()  
      protected static int hashCode​(java.lang.Object o)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • emptyList

        public static final java.util.List<?> emptyList
      • _emptyMap

        public static final java.util.Map<?,​?> _emptyMap
      • emptyAliases

        public static final java.util.Map<java.lang.String,​java.lang.String> emptyAliases
    • Constructor Detail

      • EntityConditionBase

        public EntityConditionBase()
    • Method Detail

      • getColName

        protected java.lang.String getColName​(java.util.Map<java.lang.String,​java.lang.String> tableAliases,
                                              ModelEntity modelEntity,
                                              java.lang.String fieldName,
                                              boolean includeTableNamePrefix,
                                              Datasource datasourceInfo)
      • getColName

        protected java.lang.String getColName​(ModelField modelField,
                                              java.lang.String fieldName)
      • getColName

        protected java.lang.String getColName​(java.util.Map<java.lang.String,​java.lang.String> tableAliases,
                                              ModelEntity modelEntity,
                                              ModelField modelField,
                                              java.lang.String fieldName,
                                              boolean includeTableNamePrefix,
                                              Datasource datasourceInfo)
      • addValue

        protected void addValue​(java.lang.StringBuilder buffer,
                                ModelField field,
                                java.lang.Object value,
                                java.util.List<EntityConditionParam> params)
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        protected static boolean equals​(java.lang.Object o1,
                                        java.lang.Object o2)
      • hashCode

        protected static int hashCode​(java.lang.Object o)
      • castBoolean

        public static java.lang.Boolean castBoolean​(boolean result)