trait Schema extends AnyRef
- Alphabetic
- By Inheritance
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 }}}
- class ColGroupDeclaration extends AnyRef
- class ReferentialActionImpl extends ReferentialAction
- class ReferentialEvent extends AnyRef
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
-
def
afterDelete[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
afterDelete[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
-
def
afterInsert[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
afterInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
-
def
afterUpdate[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
afterUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
-
implicit
def
anyRef2ActiveTransaction[A](a: A)(implicit queryDsl: QueryDsl, m: Manifest[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.
- def applyDefaultForeignKeyPolicy(foreignKeyDeclaration: ForeignKeyDeclaration): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
autoIncremented(sequenceName: String): AutoIncremented
- Attributes
- protected
-
def
autoIncremented: AutoIncremented
- Attributes
- protected
-
def
beforeDelete[K, A <: KeyedEntity[K]]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
beforeDelete[A](t: Table[A])(implicit ev: <:<[A, KeyedEntity[_]]): LifecycleEventPercursorTable[A]
- Attributes
- protected
-
def
beforeInsert[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
beforeInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
-
def
beforeUpdate[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]
- Attributes
- protected
-
def
beforeUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]
- Attributes
- protected
- def callbacks: Seq[LifecycleEvent]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def columnNameFromPropertyName(propertyName: String): String
-
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 overriden, 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 }
- def columns(fieldList: TypedExpressionNode[_]*): ColGroupDeclaration
- def create: Unit
- def createColumnGroupConstraintsAndIndexes: Unit
-
def
dbType(declaration: String): DBType
- Attributes
- protected
-
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
- def defaultColumnAttributesForKeyedEntityId(typeOfIdField: Class[_]): Set[_ >: PrimaryKey <: AttributeValidOnNumericalColumn with Product with Serializable]
-
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
-
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)
-
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'
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
factoryFor[A](table: Table[A]): PosoFactoryPercursorTable[A]
- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def findTablesFor[A](a: A): Iterable[Table[A]]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
indexed(indexName: String): Indexed
- Attributes
- protected
-
def
indexed: Indexed
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def name: Option[String]
-
def
named(name: String): Named
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
def
onDelete: ReferentialEvent
- Attributes
- protected
-
def
onUpdate: ReferentialEvent
- Attributes
- protected
-
def
primaryKey: PrimaryKey
- Attributes
- protected
- def printDdl(statementHandler: (String) ⇒ Unit): Unit
- def printDdl(pw: PrintWriter): Unit
-
def
printDdl: Unit
Prints the schema to standard output, it is simply : schema.printDdl(println(_))
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
table[T](name: String, prefix: String)(implicit manifestT: Manifest[T]): Table[T]
- Attributes
- protected
-
def
table[T](name: String)(implicit manifestT: Manifest[T]): Table[T]
- Attributes
- protected
-
def
table[T]()(implicit manifestT: Manifest[T]): Table[T]
- Attributes
- protected
- def tableNameFromClass(c: Class[_]): String
- def tableNameFromClassName(tableName: String): String
- def tables: Seq[Table[_]]
-
implicit
def
thisSchema: Schema
- Attributes
- protected
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uninsertable: Uninsertable
- Attributes
- protected
-
def
unique: Unique
- Attributes
- protected
-
def
unupdatable: Unupdatable
- Attributes
- protected
-
def
view[T](name: String)(implicit manifestT: Manifest[T]): View[T]
- Attributes
- protected
-
def
view[T]()(implicit manifestT: Manifest[T]): View[T]
- Attributes
- protected
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object NamingConventionTransforms