com.tactix4.t4openerp.connector

OESession

case class OESession(uid: OEResult[Int], transportAdaptor: OETransportAdaptor, config: OETransportConfig, database: String, password: String, context: OEContext = ...)(implicit ec: ExecutionContext) extends LazyLogging with Product with Serializable

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

Instance Constructors

  1. new OESession(uid: OEResult[Int], transportAdaptor: OETransportAdaptor, config: OETransportConfig, database: String, password: String, context: OEContext = ...)(implicit ec: ExecutionContext)

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def callMethod(model: String, methodName: String, params: OEType*): OEResult[OEType]

    Call an arbitrary method

    Call an arbitrary method

    model

    the model to call the method on

    methodName

    the method to call

    params

    the method parameters

    returns

    an FutureEither[OEType]

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val config: OETransportConfig

  10. val context: OEContext

  11. def create(model: String, fields: Map[String, OEType]): OEResult[Int]

    Create a new record

    Create a new record

    model

    the model within which to create the record

    fields

    the fieldnames and values to write

    returns

    a FutureEither containing the id of the new record

  12. val database: String

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

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

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

    Definition Classes
    Any
  17. lazy val logger: Logger

    Attributes
    protected
    Definition Classes
    LazyLogging → Logging
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. val password: String

  22. def read(model: String, ids: List[Int], fieldNames: List[String] = Nil): OEResult[List[Map[String, OEType]]]

    Read/fetch the supplied ids from the openERP server

    Read/fetch the supplied ids from the openERP server

    ids

    a scala.collection.immutable.List of type scala.Int representing the ids of the records to read

    fieldNames

    a scala.collection.immutable.List[String] specifying the names of the fields to return

    returns

    a List of OEDictionaries, wrapped in an OEResult

  23. def search(model: String, domain: Option[Domain] = None, offset: Int = 0, limit: Int = 0, order: String = ""): OEResult[List[Int]]

    Search the supplied model with the optional domain

    Search the supplied model with the optional domain

    model

    the model to search

    domain

    the domain to apply to the search

    offset

    the number of records to skip

    limit

    a limit on the number of results

    order

    the field name by which to order the results

    returns

    an OEResult[List[Int]] of the resultant Int

  24. def searchAndRead(model: String, domain: Option[Domain] = None, fields: List[String] = Nil, offset: Int = 0, limit: Int = 0, order: String = ""): OEResult[List[Map[String, OEType]]]

    Combines the search and the read operations for convenience

    Combines the search and the read operations for convenience

    model

    the model to query

    domain

    the optional domain to filter the query

    fields

    the fields to return

    offset

    the number of records to skip

    limit

    the maximum number of records to return

    order

    the column name by which to sort the results

    returns

    a List of OEDictionaries, wrapped in an OEResult

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. val transportAdaptor: OETransportAdaptor

  27. val uid: OEResult[Int]

  28. def unlink(model: String, ids: List[Int]): OEResult[Boolean]

    Delete records from model with given ids

    Delete records from model with given ids

    model

    the model to delete from

    ids

    the ids of the records to delete

    returns

    FutureEither[true]

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def write(model: String, ids: List[Int], fields: Map[String, OEType]): OEResult[Boolean]

    write to and update an existing record

    write to and update an existing record

    Depending on the type of the record to update - different field values are expected. Refer to the openerp documentation for details

    model

    the model to update

    ids

    the ids of the records to update

    fields

    the field names and associated values to update

    returns

    a FutureEither[True]

    See also

    https://doc.openerp.com/trunk/server/api_models/#openerp.osv.orm.BaseModel.write

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped