Package

org

tresql

Permalink

package tresql

Linear Supertypes
CoreTypes, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. tresql
  2. CoreTypes
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ArrayResult[T <: RowLike] extends Result[T]

    Permalink

    Result with one row

  2. trait Cache extends CacheBase[Exp]

    Permalink

    Cache for parsed expressions

  3. trait CacheBase[E] extends AnyRef

    Permalink
  4. trait CacheResources extends AnyRef

    Permalink
  5. case class Column(idx: Int, name: String, expr: Expr) extends Product with Serializable

    Permalink
  6. class CompiledArrayResult[T <: RowLike] extends ArrayResult[T] with CompiledResult[T]

    Permalink
  7. trait CompiledResult[T <: RowLike] extends Result[T]

    Permalink

    is retured from

    CompiledResult

    is retured from

    Query.apply[T]

    method. Is used from tresql interpolator macro Query.apply[T] }}} Is used from tresql interpolator macro CompiledResult }}} Is used from tresql interpolator macro

  8. trait CompiledRow extends RowLike with Typed

    Permalink

    is used as superclass for parameter type of

    CompiledRow

    is used as superclass for parameter type of

    CompiledResult[T]

    CompiledRow }}}

  9. class CompiledSelectResult[T <: RowLike] extends SelectResult[T] with CompiledResult[T]

    Permalink
  10. type Converter[T] = (RowLike, Manifest[T]) ⇒ T

    Permalink
    Definition Classes
    CoreTypes
  11. abstract class CoreTypes extends AnyRef

    Permalink
  12. trait DMLResult extends CompiledResult[DMLResult] with ArrayResult[DMLResult] with DynamicResult

    Permalink
  13. class DeleteResult extends DMLResult

    Permalink
  14. type Dialect = PartialFunction[Expr, String]

    Permalink
    Definition Classes
    CoreTypes
  15. class DynamicArrayResult extends ArrayResult[DynamicArrayResult] with DynamicResult

    Permalink
  16. trait DynamicResult extends Result[DynamicRow] with DynamicRow

    Permalink
  17. trait DynamicRow extends RowLike with Dynamic

    Permalink
  18. class DynamicSelectResult extends SelectResult[DynamicRow] with DynamicResult

    Permalink
  19. sealed abstract class Expr extends () ⇒ Any

    Permalink
  20. class InOutPar extends OutPar

    Permalink

    In out parameter box for callable statement

  21. class InsertResult extends DMLResult

    Permalink
  22. trait LogTopic extends AnyRef

    Permalink
  23. trait Logging extends AnyRef

    Permalink
  24. trait MacroResources extends AnyRef

    Permalink
  25. class MacroResourcesImpl extends MacroResources

    Permalink
  26. class Macros extends AnyRef

    Permalink
  27. trait Metadata extends TypeMapper

    Permalink

    Implementation of meta data must be thread safe

  28. class MissingBindVariableException extends RuntimeException

    Permalink
  29. trait ORT extends Query

    Permalink

    Object Relational Transformations - ORT

  30. class OutPar extends AnyRef

    Permalink

    Out parameter box for callable statement

  31. trait Query extends QueryBuilder with TypedQuery

    Permalink
  32. trait QueryBuilder extends EnvProvider with Transformer with Typer

    Permalink
  33. class QueryCompiler extends QueryParser with Compiler

    Permalink
  34. class QueryParser extends QueryParsers with ExpTransformer

    Permalink
  35. trait Resources extends MacroResources with CacheResources with Logging

    Permalink

    Resources and configuration for query execution like database connection, metadata, database dialect etc.

  36. trait Result[+T <: RowLike] extends Iterator[T] with RowLike with TypedResult[T] with AutoCloseable

    Permalink
  37. type RowConverter[T] = (RowLike) ⇒ T

    Permalink
    Definition Classes
    CoreTypes
  38. trait RowLike extends Typed

    Permalink
  39. trait SelectResult[T <: RowLike] extends Result[T]

    Permalink
  40. class SimpleCache extends SimpleCacheBase[Exp] with Cache

    Permalink

    Cache based on java concurrent hash map

  41. class SimpleCacheBase[E] extends CacheBase[E]

    Permalink
  42. case class SingleValueResult[T](value: T) extends CompiledResult[SingleValueResult[T]] with ArrayResult[SingleValueResult[T]] with DynamicResult with Product with Serializable

    Permalink
  43. trait ThreadLocalResources extends Resources

    Permalink

    Implementation of Resources with thread local instance based on template

  44. class TooManyRowsException extends RuntimeException

    Permalink
  45. trait Transformer extends AnyRef

    Permalink
  46. implicit final class Tresql extends AnyVal

    Permalink

    Compiles tresql statement and returns compiled result.

    Compiles tresql statement and returns compiled result. For tresql select definition returned result of type see example:

    //class reflecting result row
    class Dept extends CompiledRow {
      var deptno: java.lang.Integer = _
      var dname: java.lang.String = _
      var emps: org.tresql.CompiledResult[Emp] = _
      override def apply(idx: Int) = idx match {
        case 0 => deptno
        case 1 => dname
        case 2 => emps
      }
      override def columnCount = 3
      override val columns = Vector(
        org.tresql.Column(-1, "deptno", null),
        org.tresql.Column(-1, "dname", null),
        org.tresql.Column(-1, "emps", null)
      )
    }
    //RowConverter definition
    object Dept extends RowConverter[Dept] {
      def apply(row: RowLike): Dept = {
        val obj = new Dept
        obj.deptno = row.typed[java.lang.Integer](0)
        obj.dname = row.typed[java.lang.String](1)
        obj.emps = row.typed[org.tresql.CompiledResult[Emp]](2)
        obj
      }
    }
    class Emp extends CompiledRow {
      var empno: java.lang.Integer = _
      var ename: java.lang.String = _
      var hiredate: java.sql.Date = _
      override def apply(idx: Int) = idx match {
        case 0 => empno
        case 1 => ename
        case 2 => hiredate
      }
      override def columnCount = 3
      override val columns = Vector(
        org.tresql.Column(-1, "empno", null),
        org.tresql.Column(-1, "ename", null),
        org.tresql.Column(-1, "hiredate", null)
      )
    }
    object Emp extends RowConverter[Emp] {
      def apply(row: RowLike): Emp = {
        val obj = new Emp
        obj.empno = row.typed[java.lang.Integer](0)
        obj.ename = row.typed[java.lang.String](1)
        obj.hiredate = row.typed[java.sql.Date](2)
        obj
      }
    }
  47. trait Typed extends AnyRef

    Permalink
  48. trait TypedQuery extends AnyRef

    Permalink
  49. trait TypedResult[+R <: RowLike] extends AnyRef

    Permalink
  50. trait Typer extends AnyRef

    Permalink
  51. class UpdateResult extends DMLResult

    Permalink
  52. class WeakHashCache extends WeakHashCacheBase[Exp] with Cache

    Permalink

    Cache based on scala WeakHashMap

  53. class WeakHashCacheBase[E] extends CacheBase[E]

    Permalink

Value Members

  1. object ArrayResult

    Permalink
  2. object CoreTypes extends CoreTypes

    Permalink
  3. object InOutPar

    Permalink
  4. object LogTopic

    Permalink
  5. object ORT extends ORT

    Permalink
  6. object OutPar

    Permalink
  7. object Query extends Query

    Permalink
  8. object QueryBuildCtx

    Permalink
  9. package compiling

    Permalink
  10. implicit def convAny(r: RowLike, m: Manifest[Any]): Any

    Permalink
    Definition Classes
    CoreTypes
  11. implicit def convBigDecimal(r: RowLike, m: Manifest[BigDecimal]): BigDecimal

    Permalink
    Definition Classes
    CoreTypes
  12. implicit def convBlob(r: RowLike, m: Manifest[Blob]): Blob

    Permalink
    Definition Classes
    CoreTypes
  13. implicit def convBoolean(r: RowLike, m: Manifest[Boolean]): Boolean

    Permalink
    Definition Classes
    CoreTypes
  14. implicit def convByteArray(r: RowLike, m: Manifest[Array[Byte]]): Array[Byte]

    Permalink
    Definition Classes
    CoreTypes
  15. implicit def convClob(r: RowLike, m: Manifest[Clob]): Clob

    Permalink
    Definition Classes
    CoreTypes
  16. implicit def convDate(r: RowLike, m: Manifest[Date]): Date

    Permalink
    Definition Classes
    CoreTypes
  17. implicit def convDouble(r: RowLike, m: Manifest[Double]): Double

    Permalink
    Definition Classes
    CoreTypes
  18. implicit def convInputStream(r: RowLike, m: Manifest[InputStream]): InputStream

    Permalink
    Definition Classes
    CoreTypes
  19. implicit def convInt(r: RowLike, m: Manifest[Int]): Int

    Permalink
    Definition Classes
    CoreTypes
  20. implicit def convJBigDecimal(r: RowLike, m: Manifest[BigDecimal]): BigDecimal

    Permalink
    Definition Classes
    CoreTypes
  21. implicit def convJBoolean(r: RowLike, m: Manifest[Boolean]): Boolean

    Permalink
    Definition Classes
    CoreTypes
  22. implicit def convJDouble(r: RowLike, m: Manifest[Double]): Double

    Permalink
    Definition Classes
    CoreTypes
  23. implicit def convJInt(r: RowLike, m: Manifest[Integer]): Integer

    Permalink
    Definition Classes
    CoreTypes
  24. implicit def convJLong(r: RowLike, m: Manifest[Long]): Long

    Permalink
    Definition Classes
    CoreTypes
  25. implicit def convLocalDate(r: RowLike, m: Manifest[LocalDate]): LocalDate

    Permalink
    Definition Classes
    CoreTypes
  26. implicit def convLocalDatetime(r: RowLike, m: Manifest[LocalDateTime]): LocalDateTime

    Permalink
    Definition Classes
    CoreTypes
  27. implicit def convLong(r: RowLike, m: Manifest[Long]): Long

    Permalink
    Definition Classes
    CoreTypes
  28. implicit def convReader(r: RowLike, m: Manifest[Reader]): Reader

    Permalink
    Definition Classes
    CoreTypes
  29. implicit def convSqlDate(r: RowLike, m: Manifest[Date]): Date

    Permalink
    Definition Classes
    CoreTypes
  30. implicit def convSqlTimestamp(r: RowLike, m: Manifest[Timestamp]): Timestamp

    Permalink
    Definition Classes
    CoreTypes
  31. implicit def convString(r: RowLike, m: Manifest[String]): String

    Permalink
    Definition Classes
    CoreTypes
  32. def convTuple[T <: Product](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  33. implicit def convTuple1[T <: Tuple1[_]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  34. implicit def convTuple10[T <: Tuple10[_, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  35. implicit def convTuple11[T <: Tuple11[_, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  36. implicit def convTuple12[T <: Tuple12[_, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  37. implicit def convTuple13[T <: Tuple13[_, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  38. implicit def convTuple14[T <: Tuple14[_, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  39. implicit def convTuple15[T <: Tuple15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  40. implicit def convTuple16[T <: Tuple16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  41. implicit def convTuple17[T <: Tuple17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  42. implicit def convTuple18[T <: Tuple18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  43. implicit def convTuple19[T <: Tuple19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  44. implicit def convTuple2[T <: Tuple2[_, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  45. implicit def convTuple20[T <: Tuple20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  46. implicit def convTuple21[T <: Tuple21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  47. implicit def convTuple22[T <: Tuple22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  48. implicit def convTuple3[T <: Tuple3[_, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  49. implicit def convTuple4[T <: Tuple4[_, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  50. implicit def convTuple5[T <: Tuple5[_, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  51. implicit def convTuple6[T <: Tuple6[_, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  52. implicit def convTuple7[T <: Tuple7[_, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  53. implicit def convTuple8[T <: Tuple8[_, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  54. implicit def convTuple9[T <: Tuple9[_, _, _, _, _, _, _, _, _]](r: RowLike, m: Manifest[T]): T

    Permalink
    Definition Classes
    CoreTypes
  55. implicit def convUnit(r: RowLike, m: Manifest[Unit]): Unit

    Permalink
    Definition Classes
    CoreTypes
  56. package dialects

    Permalink
  57. package java_api

    Permalink
  58. implicit def jdbcResultToTresqlResult(jdbcResult: ResultSet): DynamicSelectResult

    Permalink

    Does not refer to scala compiler macro.

    Does not refer to scala compiler macro. Is placed here to be in the package object tresql

  59. package macro_

    Permalink
  60. package metadata

    Permalink
  61. package parsing

    Permalink
  62. package result

    Permalink

Inherited from CoreTypes

Inherited from AnyRef

Inherited from Any

Ungrouped