Trait

org.tresql

ThreadLocalResources

Related Doc: package tresql

Permalink

trait ThreadLocalResources extends Resources

Implementation of Resources with thread local instance based on template

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThreadLocalResources
  2. Resources
  3. Logging
  4. CacheResources
  5. MacroResources
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BindVarLogFilter = PartialFunction[Expr, String]

    Permalink
    Definition Classes
    Logging
  2. 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
  3. type TresqlLogger = (⇒ String, ⇒ Map[String, Any], LogTopic) ⇒ Unit

    Permalink
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(params: Map[String, Any], reusableExpr: Boolean): Env

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bindVarLogFilter: BindVarLogFilter

    Permalink

    Filter is global not thread local.

    Filter is global not thread local. To be overriden in subclasses. This implementation returns

    super.bindVarLogFilter
    Definition Classes
    ThreadLocalResourcesLogging
  7. def cache: Cache

    Permalink

    Cache is global not thread local.

    Cache is global not thread local. To be overriden in subclasses. This implementation returns

    super.cache
    Definition Classes
    ThreadLocalResourcesCacheResources
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def conn: Connection

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  10. def conn_=(conn: Connection): Unit

    Permalink
  11. def copyResources: Resources_

    Permalink
    Attributes
    protected
    Definition Classes
    Resources
  12. def defaultDialect: CoreTypes.Dialect

    Permalink
    Attributes
    protected
    Definition Classes
    Resources
  13. def dialect: CoreTypes.Dialect

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  14. def dialect_=(dialect: CoreTypes.Dialect): Unit

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def fetchSize: Int

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  18. def fetchSize_=(fetchSize: Int): Unit

    Permalink
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def idExpr: (String) ⇒ String

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  22. def idExpr_=(idExpr: (String) ⇒ String): Unit

    Permalink
  23. def invokeMacro[T](name: String, parser_or_builder: AnyRef, args: List[T]): T

    Permalink
    Definition Classes
    ThreadLocalResourcesMacroResources
  24. def isBuilderMacroDefined(macroName: String): Boolean

    Permalink
    Definition Classes
    ThreadLocalResourcesMacroResources
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isMacroDefined(macroName: String): Boolean

    Permalink
    Definition Classes
    ThreadLocalResourcesMacroResources
  27. def liftDialect(dialect: CoreTypes.Dialect): PartialFunction[Expr, String]

    Permalink
    Attributes
    protected
    Definition Classes
    Resources
  28. def log(msg: ⇒ String, params: ⇒ Map[String, Any] = Map(), topic: LogTopic = LogTopic.info): Unit

    Permalink
    Definition Classes
    Logging
  29. def logger: TresqlLogger

    Permalink

    Logger is global not thread local.

    Logger is global not thread local. To be overriden in subclasses. This implementation returns

    super.logger
    Definition Classes
    ThreadLocalResourcesLogging
  30. def maxResultSize: Int

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  31. def maxResultSize_=(size: Int): Unit

    Permalink
  32. def metadata: Metadata

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  33. def metadata_=(metadata: Metadata): Unit

    Permalink
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  37. def params: Map[String, Any]

    Permalink
    Definition Classes
    Resources
  38. def queryTimeout: Int

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  39. def queryTimeout_=(timeout: Int): Unit

    Permalink
  40. def recursiveStackDepth: Int

    Permalink
    Definition Classes
    ThreadLocalResourcesResources
  41. def recursiveStackDepth_=(depth: Int): Unit

    Permalink
  42. def resourcesTemplate: ResourcesTemplate

    Permalink
    Attributes
    protected
  43. def setMacros(macros: Any): Unit

    Permalink
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def withBindVarLogFilter(filter: BindVarLogFilter): Resources

    Permalink
    Definition Classes
    Resources
  50. def withCache(cache: Cache): Resources

    Permalink
    Definition Classes
    Resources
  51. def withConn(conn: Connection): Resources

    Permalink
    Definition Classes
    Resources
  52. def withDialect(dialect: CoreTypes.Dialect): Resources

    Permalink
    Definition Classes
    Resources
  53. def withFetchSize(fetchSize: Int): Resources

    Permalink
    Definition Classes
    Resources
  54. def withIdExpr(idExpr: (String) ⇒ String): Resources

    Permalink
    Definition Classes
    Resources
  55. def withLogger(logger: TresqlLogger): Resources

    Permalink
    Definition Classes
    Resources
  56. def withMacros(macros: Any): Resources

    Permalink
    Definition Classes
    Resources
  57. def withMaxResultSize(maxResultSize: Int): Resources

    Permalink
    Definition Classes
    Resources
  58. def withMetadata(metadata: Metadata): Resources

    Permalink
    Definition Classes
    Resources
  59. def withParams(params: Map[String, Any]): Resources

    Permalink
    Definition Classes
    Resources
  60. def withQueryTimeout(queryTimeout: Int): Resources

    Permalink
    Definition Classes
    Resources
  61. def withRecursiveStackDepth(recStackDepth: Int): Resources

    Permalink
    Definition Classes
    Resources

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Resources

Inherited from Logging

Inherited from CacheResources

Inherited from MacroResources

Inherited from AnyRef

Inherited from Any

Ungrouped