trait GenContext[T <: Txn[T]] extends Disposable[T]
Context for rendering generated objects.
- Alphabetic
- By Inheritance
- GenContext
- Disposable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def acquire[A <: Disposable[T]](obj: Obj[T])(init: => A)(implicit tx: T): A
Acquires a resource associated with an object.
Acquires a resource associated with an object. The resource is stored under the key
obj.id
, and an internal use count is maintained, callingdispose
on the resource if the count goes back to zero.- A
the type of resource which must be a
Disposable
- obj
the object used as a look-up key
- init
the function that produces the resource if it was not yet in the cache
- returns
the resource, either already found in the cache or newly produced
- implicit abstract def cursor: Cursor[T]
- abstract def dispose()(implicit tx: T): Unit
- Definition Classes
- Disposable
- abstract def get[A](obj: Obj[T])(implicit tx: T): Option[A]
Attempts to find a resource associated with an object.
Attempts to find a resource associated with an object.
- A
the type of resource
- obj
the object used as a look-up key
- returns
the resource, if it was found in the cache, or
None
- abstract def release(obj: Obj[T])(implicit tx: T): Unit
Releases a resource associated with an object.
Releases a resource associated with an object. This decreases the use count of the resource, and calls
dispose
on it if the count goes back to zero.- obj
the object used as a look-up key
- implicit abstract def workspace: lucre.Workspace[T]
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated