org.talares.api.queries

Query

case class Query(name: String, args: Seq[(String, String)] = ...)(parent: Option[Query] = scala.None)(options: Seq[QueryOption] = ...) extends Product with Serializable

A Scala representation of an OData query URL.

Example:

import org.talares.api.queries._
val q = Query / "Pages" % ("ItemId" -> 123, "PublicationId" -> 1) $ ("Title" ==| "A title") && ("Url" !=| "/path")
Since

0.1.0

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Query
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Query(name: String, args: Seq[(String, String)] = ...)(parent: Option[Query] = scala.None)(options: Seq[QueryOption] = ...)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def $(newOptions: QueryOption*): Query

    Appends the given set of new options to the existing set of options.

    Appends the given set of new options to the existing set of options.

    newOptions

    the new set of options to process

    returns

    a new instance of Query holding the new options

  5. def %(newArgs: (String, Any)*): Query

    Appends the given set of new arguments to the existing set of arguments.

    Appends the given set of new arguments to the existing set of arguments.

    newArgs

    the new set of arguments to process

    returns

    a new instance of Query holding the new arguments

  6. def /(newChild: Query): Query

    Adds the given Query as a child of this query.

    Adds the given Query as a child of this query.

    newChild

    the child this Query will be a parent of

    returns

    a new instance of Query holding a reference to the child Query

  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. val args: Seq[(String, String)]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val name: String

  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    returns

    the Query#value field.

    Definition Classes
    Query → AnyRef → Any
  22. lazy val value: String

    Holds the complete query in String form taking into account it's parent, children, arguments and options.

    Holds the complete query in String form taking into account it's parent, children, arguments and options. *

  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped