package squeryl
- Alphabetic
- Public
- All
Type Members
- trait EntityMember extends AnyRef
-
class
ForeignKeyDeclaration
extends AnyRef
ForeignKeyDeclaration are to be manipulated only during the Schema definition (this is why all public methods have the implicit arg (implicit ev: Schema))
- trait IndirectKeyedEntity [K, T] extends KeyedEntity[K]
-
trait
KeyedEntity
[K] extends PersistenceStatus
For use with View[A] or Table[A], when A extends KeyedEntity[K], lookup and delete by key become implicitly available Example :
For use with View[A] or Table[A], when A extends KeyedEntity[K], lookup and delete by key become implicitly available Example :
class Peanut(weight: Float) extends KeyedEntity[Long] val peanutJar = Table[Peanut]
Since Peanut extends KeyedEntity the delete(l:Long) method is available
def removePeanut(idOfThePeanut: Long) = peanutJar.delete(idOfThePeanut)
And lookup by id is also implicitly available :
peanutJar.lookup(idOfThePeanut)
- trait Optimistic extends AnyRef
- trait PersistenceStatus extends AnyRef
- trait PrimitiveTypeMode extends QueryDsl
- trait Query [R] extends Iterable[R] with Queryable[R]
- trait Queryable [T] extends AnyRef
- trait ReferentialAction extends AnyRef
- trait Schema extends AnyRef
- class Session extends AnyRef
- trait SessionFactory extends AnyRef
- class StaleUpdateException extends RuntimeException
- class Table [T] extends View[T]
-
class
View
[T] extends Queryable[T]
This class can be used for read only tables or (database) views for an updatable view, or table use Table[T]
Value Members
- object DummyEnum extends Enumeration
-
object
PrimitiveTypeMode
extends PrimitiveTypeMode
This factory is meant to use POSOs (Plain old Scala Objects), i.e.
This factory is meant to use POSOs (Plain old Scala Objects), i.e. your object use Scala's primitive types to map to columns. This can have a significant performance advantage over using object types i.e. a result set of N rows of objects with M field will generate N * M objects for the garbage collector, while POSOs with primitive types will each count for 1 for the garbage collector (to be more precise, String and Option[] fields will add a +1 in both cases, but a custom String wrapper will also add one ref, for a total of 2 refs vs a single ref per string column for the POSO). This lightweight strategy has a cost : constants and object field references cannot distinguish at compile time, so this mode is less 'strict' than one with a CustomType
- object Session
- object SessionFactory