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. class ChildSaveException extends RuntimeException

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

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

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

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

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

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

    Permalink
    Definition Classes
    CoreTypes
  12. abstract class CoreTypes extends AnyRef

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

    Permalink
  14. class DeleteResult extends DMLResult

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

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

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

    Permalink
  18. trait DynamicRow extends RowLike with Dynamic

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

    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. trait Logging extends AnyRef

    Permalink
  25. trait MacroResources extends AnyRef

    Permalink
  26. class MacroResourcesImpl extends MacroResources

    Permalink
  27. class Macros extends AnyRef

    Permalink
  28. trait Metadata extends TypeMapper

    Permalink

    Implementation of meta data must be thread safe

  29. class MissingBindVariableException extends RuntimeException

    Permalink
  30. trait ORT extends Query

    Permalink

    Object Relational Transformations - ORT

  31. class OutPar extends AnyRef

    Permalink

    Out parameter box for callable statement

  32. trait Query extends QueryBuilder with TypedQuery

    Permalink
  33. trait QueryBuilder extends EnvProvider with Transformer with Typer

    Permalink
  34. class QueryCompiler extends QueryParser with Compiler

    Permalink
  35. class QueryParser extends QueryParsers with ExpTransformer

    Permalink
  36. trait Resources extends MacroResources with CacheResources with Logging

    Permalink

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

  37. final case class ResourcesTemplate(conn: Connection, metadata: Metadata, dialect: CoreTypes.Dialect, idExpr: (String) ⇒ String, queryTimeout: Int, fetchSize: Int, maxResultSize: Int, recursiveStackDepth: Int, params: Map[String, Any], macros: Any = null) extends Resources with Product with Serializable

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

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

    Permalink
    Definition Classes
    CoreTypes
  40. trait RowLike extends Typed

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

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

    Permalink

    Cache based on java concurrent hash map

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

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

    Permalink
  45. trait ThreadLocalResources extends Resources

    Permalink

    Implementation of Resources with thread local instance based on template

  46. class TooManyRowsException extends RuntimeException

    Permalink
  47. trait Transformer extends AnyRef

    Permalink
  48. 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
      }
    }
  49. class TresqlException extends RuntimeException

    Permalink
  50. trait Typed extends AnyRef

    Permalink
  51. trait TypedQuery extends AnyRef

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

    Permalink
  53. trait Typer extends AnyRef

    Permalink
  54. class UpdateResult extends DMLResult

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

    Permalink

    Cache based on scala WeakHashMap

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