object OrtMetadata
- Alphabetic
- By Inheritance
- OrtMetadata
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Filters(insert: Option[String] = None, update: Option[String] = None, delete: Option[String] = None) extends Product with Serializable
Horizontal authentication filters
Horizontal authentication filters
- insert
insert statement where clause
- update
update statement where clause
- delete
delete statement where clause
-
case class
KeyValue(whereTresql: String, valueTresql: TresqlValue) extends OrtValue with Product with Serializable
Column value
Column value
- whereTresql
key find tresql
- valueTresql
key value tresql
-
case class
LookupViewValue(propName: String, view: View) extends OrtValue with Product with Serializable
Column value
Column value
- propName
property name (from environment)
- view
child view
- sealed trait OrtValue extends AnyRef
-
case class
PropPatterns(prop: Regex, tables: Regex, resolverProp: Regex, resolverExp: Regex) extends Product with Serializable
Patterns are for debugging purposes to create
Patterns are for debugging purposes to create
View
from
Mapusing
ortMetadata
method.
Children property format: [@db:]table[:ref]*key[,key]*[#table[:ref]*key[,key]*]*options [alias][|insertFilterTresql, deleteFilterTresql, updateFilterTresql] Options are to be specified in such order: insert, delete, update, i.e. '+-=' Examples: dept#car:deptnr:nr#tyres:carnr:nr dept[dname]#car:deptnr:nr#tyres:carnr:nr dept[+=] alias emp[ename][+-=] e|:deptno in currentUserDept(:current_user), null /* no statement */, e.deptno in currentUserDept(:current_user)
ortMetadata }}}
Children property format: [@db:]table[:ref]*key[,key]*[#table[:ref]*key[,key]*]*options [alias][|insertFilterTresql, deleteFilterTresql, updateFilterTresql] Options are to be specified in such order: insert, delete, update, i.e. '+-=' Examples: dept#car:deptnr:nr#tyres:carnr:nr dept[dname]#car:deptnr:nr#tyres:carnr:nr dept[+=] alias emp[ename][+-=] e|:deptno in currentUserDept(:current_user), null /* no statement */, e.deptno in currentUserDept(:current_user)
Map }}}
Children property format: [@db:]table[:ref]*key[,key]*[#table[:ref]*key[,key]*]*options [alias][|insertFilterTresql, deleteFilterTresql, updateFilterTresql] Options are to be specified in such order: insert, delete, update, i.e. '+-=' Examples: dept#car:deptnr:nr#tyres:carnr:nr dept[dname]#car:deptnr:nr#tyres:carnr:nr dept[+=] alias emp[ename][+-=] e|:deptno in currentUserDept(:current_user), null /* no statement */, e.deptno in currentUserDept(:current_user)
View }}}
Children property format: [@db:]table[:ref]*key[,key]*[#table[:ref]*key[,key]*]*options [alias][|insertFilterTresql, deleteFilterTresql, updateFilterTresql] Options are to be specified in such order: insert, delete, update, i.e. '+-=' Examples: dept#car:deptnr:nr#tyres:carnr:nr dept[dname]#car:deptnr:nr#tyres:carnr:nr dept[+=] alias emp[ename][+-=] e|:deptno in currentUserDept(:current_user), null /* no statement */, e.deptno in currentUserDept(:current_user)
-
case class
Property(col: String, value: OrtValue) extends Product with Serializable
Saveable column.
Saveable column.
- col
Goes to dml column clause or child tresql alias
- value
Goes to dml values clause or column clause as child tresql
-
case class
SaveOptions(doInsert: Boolean, doUpdate: Boolean, doDelete: Boolean) extends Product with Serializable
Save options
Save options
- doInsert
insert new children data
- doUpdate
update existing children data
- doDelete
delete absent children data
-
case class
SaveTo(table: String, refs: Set[String], key: Seq[String]) extends Product with Serializable
Table to save data to.
Table to save data to.
- table
table name
- refs
imported keys of table from parent or linked tables to be set
- key
column names uniquely identifying table record
-
case class
TresqlValue(tresql: String, forInsert: Boolean, forUpdate: Boolean) extends OrtValue with Product with Serializable
Column value
Column value
- tresql
tresql statement
- forInsert
Column is to be included into insert statement if true
- forUpdate
Column is to be included into update statement if true
-
case class
View(saveTo: Seq[SaveTo], filters: Option[Filters], alias: String, forInsert: Boolean, forUpdate: Boolean, properties: Seq[Property], db: String) extends Product with Serializable
Saveable view.
Saveable view.
- saveTo
destination tables. If first table has
refs
it indicates reference field to parent.
- filters
horizontal authentication filters
- alias
table alias in DML statement
- forInsert
view is only designated for insert statement
- forUpdate
view is only designated for update statement (according to save options in case of child view)
- properties
saveable fields
- db
database name (can be null)
-
case class
ViewValue(view: View, saveOptions: SaveOptions) extends OrtValue with Product with Serializable
Column value
Column value
- view
child view
- saveOptions
saveable options [+-=]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Patterns: PropPatterns
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
ortMetadata(tables: String, saveableMap: Map[String, Any])(implicit resources: Resources): (View, SaveOptions)
This method is for debugging purposes.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()