object StatsSchema extends Schema
- Source
- StatsSchema.scala
- Alphabetic
- By Inheritance
- StatsSchema
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class ActiveRecord[A] extends AnyRef
Active Record pattern implementation.
Active Record pattern implementation. Enables the user to insert an object in its existent table with a convenient
save
method.
save }}}
- Definition Classes
- Schema
- class ColGroupDeclaration extends AnyRef
- Definition Classes
- Schema
- class ReferentialActionImpl extends ReferentialAction
- Definition Classes
- Schema
- class ReferentialEvent extends AnyRef
- Definition Classes
- Schema
Value Members
- object NamingConventionTransforms
- Definition Classes
- Schema
- 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
- def afterDelete[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterDelete[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterInsert[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterSelect[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterSelect[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterUpdate[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def afterUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- implicit def anyRef2ActiveTransaction[A](a: A)(implicit queryDsl: QueryDsl, m: ClassTag[A]): ActiveRecord[A]
Creates a ActiveRecord instance for the given the object.
Creates a ActiveRecord instance for the given the object. That allows the user to save the given object using the Active Record pattern.
- returns
a instance of ActiveRecord associated to the given object.
- Definition Classes
- Schema
- def applyDefaultForeignKeyPolicy(foreignKeyDeclaration: ForeignKeyDeclaration): Unit
- Definition Classes
- Schema
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def autoIncremented(sequenceName: String): AutoIncremented
- Attributes
- protected
- Definition Classes
- Schema
- def autoIncremented: AutoIncremented
- Attributes
- protected
- Definition Classes
- Schema
- def beforeDelete[K, A]()(implicit m: ClassTag[A], ked: KeyedEntityDef[A, K]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def beforeDelete[A](t: Table[A])(implicit ev: KeyedEntityDef[A, _]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def beforeInsert[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def beforeInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def beforeUpdate[A]()(implicit m: ClassTag[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
- Definition Classes
- Schema
- def beforeUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- def callbacks: Seq[LifecycleEvent]
- Definition Classes
- Schema
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def columnNameFromPropertyName(propertyName: String): String
- Definition Classes
- Schema
- def columnTypeFor(fieldMetaData: FieldMetaData, owner: Table[_]): Option[String]
Use this method to override the DatabaseAdapter's default column type for the given field (FieldMetaData), returning None means that no override will take place.
Use this method to override the DatabaseAdapter's default column type for the given field (FieldMetaData), returning None means that no override will take place.
There are two levels at which db column type can be overridden, in order of precedence :
on(professors)(p => declare( s.yearlySalary is(dbType("real")) ))
overrides (has precedence over) :
MySchema extends Schema { ... override def columnTypeFor(fieldMetaData: FieldMetaData, owner: Table[_]) = if(fieldMetaData.wrappedFieldType.isInstanceOf[Int) Some("number") else None }
- Definition Classes
- Schema
- def columns(fieldList: TypedExpression[_, _]*): ColGroupDeclaration
- Definition Classes
- Schema
- def create: Unit
- Definition Classes
- Schema
- def createColumnGroupConstraintsAndIndexes: Unit
- Definition Classes
- Schema
- def dbType(declaration: String): DBType
- Attributes
- protected
- Definition Classes
- Schema
- def declare[B](a: BaseColumnAttributeAssignment*): Seq[BaseColumnAttributeAssignment]
protected since table declarations must only be done inside a Schema
protected since table declarations must only be done inside a Schema
- Attributes
- protected
- Definition Classes
- Schema
- def defaultColumnAttributesForKeyedEntityId(typeOfIdField: Class[_]): Set[_ >: PrimaryKey <: AttributeValidOnNumericalColumn with Product with Serializable]
- Definition Classes
- Schema
- def defaultLengthOfString: Int
- returns
the default database storage (column) length for String columns for this Schema, Can be overridden by the Column Annotation ex.: Column(length=256) default is 128
- Definition Classes
- Schema
- def defaultSizeOfBigDecimal: (Int, Int)
- returns
a Tuple2 with (LengthOfDecimal, Scale) that will determine the storage length of the database type that map fields of type java.lang.BigDecimal Can be overridden by the Column Annotation, ex.: Column(length=22, scale=20) default is (20,16)
- Definition Classes
- Schema
- def drop: Unit
This will drop all tables and related sequences in the schema...
This will drop all tables and related sequences in the schema... it's a dangerous operation, typically this is only useful for development database instances, the method is protected in order to make it a little less 'accessible'
- Definition Classes
- StatsSchema → Schema
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def factoryFor[A](table: Table[A]): PosoFactoryPercursorTable[A]
- Attributes
- protected
- Definition Classes
- Schema
- implicit val fieldMapper: FieldMapper
- Definition Classes
- Schema
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findAllTablesFor[A](c: Class[A]): Iterable[Table[_]]
- Definition Classes
- Schema
- def findTablesFor[A](a: A): Iterable[Table[A]]
- Definition Classes
- Schema
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexed(indexName: String): Indexed
- Attributes
- protected
- Definition Classes
- Schema
- def indexed: Indexed
- Attributes
- protected
- Definition Classes
- Schema
- def invocationStats: Query[GroupWithMeasures[Product2[Int, Int], Product4[Option[Double], Long, Option[Long], Float]]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name: Option[String]
- Definition Classes
- Schema
- def named(name: String): Named
- Attributes
- protected
- Definition Classes
- Schema
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def on[A](table: Table[A])(declarations: (A) => Seq[BaseColumnAttributeAssignment]): Unit
protected since table declarations must only be done inside a Schema
protected since table declarations must only be done inside a Schema
- Attributes
- protected
- Definition Classes
- Schema
- def onDelete: ReferentialEvent
- Attributes
- protected
- Definition Classes
- Schema
- def onUpdate: ReferentialEvent
- Attributes
- protected
- Definition Classes
- Schema
- def primaryKey: PrimaryKey
- Attributes
- protected
- Definition Classes
- Schema
- def printDdl(statementHandler: (String) => Unit): Unit
- statementHandler
is a closure that receives every declaration in the schema.
- Definition Classes
- Schema
- def printDdl(pw: PrintWriter): Unit
- Definition Classes
- Schema
- def printDdl: Unit
Prints the schema to standard output, it is simply : schema.printDdl(println(_))
Prints the schema to standard output, it is simply : schema.printDdl(println(_))
- Definition Classes
- Schema
- def recordEndOfIteration(statementInvocationId: String, iterationEndTime: Long, rowCount: Int, iterationCompleted: Boolean): Int
- def recordStatementInvocation(sie: StatementInvocationEvent): String
- val statementInvocations: Table[StatementInvocation]
- val statements: Table[Statement]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def table[T](name: String, prefix: String)(implicit ClassTagT: ClassTag[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]
- Attributes
- protected
- Definition Classes
- Schema
- def table[T](name: String)(implicit ClassTagT: ClassTag[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]
- Attributes
- protected
- Definition Classes
- Schema
- def table[T]()(implicit ClassTagT: ClassTag[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]
- Attributes
- protected
- Definition Classes
- Schema
- def tableNameFromClass(c: Class[_]): String
- Definition Classes
- Schema
- def tableNameFromClassName(tableName: String): String
- Definition Classes
- Schema
- def tables: Seq[Table[_]]
- Definition Classes
- Schema
- implicit def thisSchema: Schema
- Attributes
- protected
- Definition Classes
- Schema
- def toString(): String
- Definition Classes
- AnyRef → Any
- def topRankingStatements(topN: Int, measure: Measure): Query[StatLine]
- def transient: IsTransient
- Attributes
- protected
- Definition Classes
- Schema
- def uninsertable: Uninsertable
- Attributes
- protected
- Definition Classes
- Schema
- def unique: Unique
- Attributes
- protected
- Definition Classes
- Schema
- def unupdatable: Unupdatable
- Attributes
- protected
- Definition Classes
- Schema
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()