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[tresql.QueryParser.Exp]

    Permalink

    Cache for parsed expressions

  3. trait CacheBase[E] extends AnyRef

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

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

    Permalink
  6. 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

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

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

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

    Permalink
    Definition Classes
    CoreTypes
  10. abstract class CoreTypes extends AnyRef

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

    Permalink
  12. class DeleteResult extends DMLResult

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

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

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

    Permalink
  16. trait DynamicRow extends RowLike with Dynamic

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

    Permalink
  18. class Env extends Resources with Metadata

    Permalink
  19. trait EnvProvider extends AnyRef

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

    Permalink
  21. class InOutPar extends OutPar

    Permalink

    In out parameter box for callable statement

  22. class InsertResult extends DMLResult

    Permalink
  23. trait LogTopic extends AnyRef

    Permalink
  24. class Macros extends AnyRef

    Permalink
  25. trait Metadata extends TypeMapper

    Permalink

    Implementation of meta data must be thread safe

  26. class MissingBindVariableException extends RuntimeException

    Permalink
  27. trait ORT extends Query

    Permalink

    Object Relational Transformations - ORT

  28. class OutPar extends AnyRef

    Permalink

    Out parameter box for callable statement

  29. trait Query extends QueryBuilder with TypedQuery

    Permalink
  30. trait QueryBuilder extends EnvProvider with Transformer with Typer

    Permalink
  31. trait Resources extends AnyRef

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

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

    Permalink
    Definition Classes
    CoreTypes
  34. trait RowLike extends Typed

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

    Permalink
  36. class SimpleCache extends SimpleCacheBase[tresql.QueryParser.Exp] with Cache

    Permalink

    Cache based on java concurrent hash map

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

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

    Permalink
  39. class TooManyRowsException extends RuntimeException

    Permalink
  40. trait Transformer extends AnyRef

    Permalink
  41. 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
      }
    }
  42. trait Typed extends AnyRef

    Permalink
  43. trait TypedQuery extends AnyRef

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

    Permalink
  45. trait Typer extends AnyRef

    Permalink
  46. class UpdateResult extends DMLResult

    Permalink
  47. class WeakHashCache extends WeakHashCacheBase[tresql.QueryParser.Exp] with Cache

    Permalink

    Cache based on scala WeakHashMap

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

    Permalink

Value Members

  1. object ArrayResult

    Permalink
  2. object CoreTypes extends CoreTypes

    Permalink
  3. object Env extends Resources

    Permalink
  4. object InOutPar

    Permalink
  5. object LogTopic

    Permalink
  6. object ORT extends ORT

    Permalink
  7. object OutPar

    Permalink
  8. object Query extends Query

    Permalink
  9. object QueryBuildCtx

    Permalink
  10. object QueryCompiler extends Compiler

    Permalink
  11. object QueryParser extends QueryParsers with ExpTransformer

    Permalink
  12. package compiling

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    CoreTypes
  57. package dialects

    Permalink
  58. object implicits

    Permalink
  59. package java_api

    Permalink
  60. 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

  61. package macro_

    Permalink
  62. package metadata

    Permalink
  63. package parsing

    Permalink
  64. package result

    Permalink

Inherited from CoreTypes

Inherited from AnyRef

Inherited from Any

Ungrouped