org.tresql

ORT

object ORT extends AnyRef

Object Relational Transformations - ORT

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ORT
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. val PROP_PATTERN : Regex

    [:<linked property name>][#(insert | update | delete)]

    [:<linked property name>][#(insert | update | delete)]

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def delete (name: String, id: Any)(implicit resources: Resources = Env): Any

  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def fill (name: String, obj: Map[String, _], fillNames: Boolean = false)(implicit resources: Resources = Env): Map[String, Any]

    Fills object properties specified by 'obj' parameter from table specified by 'name' parameter.

    Fills object properties specified by 'obj' parameter from table specified by 'name' parameter. obj contains property names to be filled from database. obj map must contain primary key entry. If no corresponding table column to the property is found property value in returned object remains untouched.

    Returned object contains exactly the same property set as the one passed as a parameter.

    If parameter fillNames is true, foreign key properties are resolved to names using resources.nameExpr(tableName). Name expression column aliases are modified according to the following rules:

    1. if name expression contains one column without column alias column alias is set to "name" 2. if name expression contains two columns without column aliases, second column is taken for the name and alias is set to "name". (first column is interpreted as a primary key) 3. if name expression contains three columns without column aliases, second column is taken for the code and alias is set to "code", third column is taken for the name and alias is set to "name". (first column is interpreted as a primary key)
  13. def fill_tresql (name: String, obj: Map[String, _], fillNames: Boolean, resources: Resources, ids: Option[Seq[_]] = None, parent: Option[(String, String)] = None): String

  14. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def insert (name: String, obj: Map[String, _])(implicit resources: Resources = Env): Any

  18. def insert_tresql (name: String, obj: Map[String, _], parent: String, resources: Resources): String

  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def save (name: String, obj: Map[String, _])(implicit resources: Resources = Env): Any

    Saves object obj specified by parameter name.

    Saves object obj specified by parameter name. If object primary key is set object is updated, if object primary key is not set object is inserted. Children are merged with database i.e. new ones are inserted, existing ones updated, deleted ones deleted. Children structure i.e. property set must be identical, since one tresql statement is used for all of the children

  24. def save_tresql (name: String, obj: Map[String, _], resources: Resources): (String, ListMap[String, Any])

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

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def update (name: String, obj: Map[String, _])(implicit resources: Resources = Env): Any

  28. def update_tresql (name: String, obj: Map[String, _], resources: Resources): String

  29. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. Inherited from AnyRef

    Inherited from Any