org.talares.api.queries

Query

case class Query(name: String, args: Seq[(String, String)] = Seq())(parent: Option[Query] = None)(options: Seq[QueryOption] = Seq()) 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)] = Seq())(parent: Option[Query] = None)(options: Seq[QueryOption] = Seq())

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. 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

  4. 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

  5. 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

  6. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  7. val args: Seq[(String, String)]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

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

    Definition Classes
    Any
  14. val name: String

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

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

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

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

    Definition Classes
    AnyRef
  19. def toString(): String

    returns

    the Query#value field.

    Definition Classes
    Query → AnyRef → Any
  20. 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. *

  21. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. 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