com.tactix4.t4openerp.connector

domain

package domain

Visibility
  1. Public
  2. All

Type Members

  1. case class AND(left: Domain, right: Domain) extends Domain with Product with Serializable

    A class to represent a conjunction of two Domains

    A class to represent a conjunction of two Domains

    left

    the left hand Domain

    right

    the right hand Domain

  2. case class ChildOf() extends DomainOperator with Product with Serializable

  3. sealed trait Domain extends AnyRef

    A trait to specify Domains for com.tactix4.t4openerp.connector.OESession queries

    A trait to specify Domains for com.tactix4.t4openerp.connector.OESession queries

    Used in conjunction with the implicits defined in Domains companion object, a DSL for specifying complex domains is provided

    val complexDomain = ("name" === "ABC") AND ("lang" =/= "EN") AND (NOT("department" child_of "HR") OR ("country" like "Germany"))

    Associativity is to the LEFT - so parenthesis should be used to make precedence unambiguous

    // equates to all all Jim's with ID's of one, OR Jills.
    val ambig = ("id" === 1) AND ("name" === "jim") OR ("name" == "jill")
    
    // equates to any Jim or Jill with an id of 1
    val nonAmbig = ("id" === 1) AND (("name" === "jim") OR ("name" == "jill"))

    Domain's subclasses com.tactix4.t4openerp.connector.domain.AND and com.tactix4.t4openerp.connector.domain.OR build up tree structures of com.tactix4.t4openerp.connector.domain.DomainTuple expressions, which are constructed from a fieldName, an operator and a value.

  4. sealed abstract class DomainOperator extends AnyRef

  5. final class DomainOperators extends AnyRef

    A class used to construct DomainTuples - used via the implicit in the Domain's companion object

  6. case class DomainTuple(fieldName: String, operator: DomainOperator, value: OEType) extends Domain with Product with Serializable

    A class to represent a leaf-node in our tree structure of logical operations

    A class to represent a leaf-node in our tree structure of logical operations

    It constitutes one unit of domain filtering - to be combined with com.tactix4.t4openerp.connector.domain.AND, com.tactix4.t4openerp.connector.domain.OR, or negated with com.tactix4.t4openerp.connector.domain.NOT

    fieldName

    the name of the field on which we are applying a filter

    operator

    the operator of the filter

    value

    the value of the filter

  7. case class Equality() extends DomainOperator with Product with Serializable

  8. case class GreaterThan() extends DomainOperator with Product with Serializable

  9. case class Ilike() extends DomainOperator with Product with Serializable

  10. case class In() extends DomainOperator with Product with Serializable

  11. case class Inequality() extends DomainOperator with Product with Serializable

  12. case class LessThan() extends DomainOperator with Product with Serializable

  13. case class Like() extends DomainOperator with Product with Serializable

  14. case class NOT(value: DomainTuple) extends Domain with Product with Serializable

    A class to represent a negation of a DomainTuple

    A class to represent a negation of a DomainTuple

    value

  15. case class NotIn() extends DomainOperator with Product with Serializable

  16. case class OR(left: Domain, right: Domain) extends Domain with Product with Serializable

    A class to represent a disjunction of two Domains

    A class to represent a disjunction of two Domains

    left
    right

  17. case class ParentLeft() extends DomainOperator with Product with Serializable

  18. case class ParentRight() extends DomainOperator with Product with Serializable

Value Members

  1. object Domain

    Companion object for com.tactix4.t4openerp.connector.domain.Domain providing some implicit conversions as well as an implicit object for conversion to TransportDataTypes

Ungrouped