Class

org.squeryl

Schema

Related Doc: package squeryl

Permalink

class Schema extends AnyRef

Source
Schema.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Schema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Schema()(implicit fieldMapper: FieldMapper)

    Permalink

Type Members

  1. class ActiveRecord[A] extends AnyRef

    Permalink

    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 }}}

  2. class ColGroupDeclaration extends AnyRef

    Permalink
  3. class ReferentialActionImpl extends ReferentialAction

    Permalink
  4. class ReferentialEvent extends AnyRef

    Permalink

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. object NamingConventionTransforms

    Permalink
  5. def afterDelete[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  6. def afterDelete[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  7. def afterInsert[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  8. def afterInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  9. def afterSelect[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  10. def afterSelect[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  11. def afterUpdate[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  12. def afterUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  13. implicit def anyRef2ActiveTransaction[A](a: A)(implicit queryDsl: QueryDsl, m: Manifest[A]): ActiveRecord[A]

    Permalink

    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.

  14. def applyDefaultForeignKeyPolicy(foreignKeyDeclaration: ForeignKeyDeclaration): Unit

    Permalink
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def autoIncremented(sequenceName: String): AutoIncremented

    Permalink
    Attributes
    protected
  17. def autoIncremented: AutoIncremented

    Permalink
    Attributes
    protected
  18. def beforeDelete[K, A]()(implicit m: Manifest[A], ked: KeyedEntityDef[A, K]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  19. def beforeDelete[A](t: Table[A])(implicit ev: KeyedEntityDef[A, _]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  20. def beforeInsert[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  21. def beforeInsert[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  22. def beforeUpdate[A]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

    Permalink
    Attributes
    protected
  23. def beforeUpdate[A](t: Table[A]): LifecycleEventPercursorTable[A]

    Permalink
    Attributes
    protected
  24. def callbacks: Seq[LifecycleEvent]

    Permalink
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def columnNameFromPropertyName(propertyName: String): String

    Permalink
  27. def columnTypeFor(fieldMetaData: FieldMetaData, owner: Table[_]): Option[String]

    Permalink

    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 }

  28. def columns(fieldList: TypedExpression[_, _]*): ColGroupDeclaration

    Permalink
  29. def create: Unit

    Permalink
  30. def createColumnGroupConstraintsAndIndexes: Unit

    Permalink
  31. def dbType(declaration: String): DBType

    Permalink
    Attributes
    protected
  32. def declare[B](a: BaseColumnAttributeAssignment*): Seq[BaseColumnAttributeAssignment]

    Permalink

    protected since table declarations must only be done inside a Schema

    protected since table declarations must only be done inside a Schema

    Attributes
    protected
  33. def defaultColumnAttributesForKeyedEntityId(typeOfIdField: Class[_]): Set[_ >: PrimaryKey <: AttributeValidOnNumericalColumn with Product with Serializable]

    Permalink
  34. def defaultLengthOfString: Int

    Permalink

    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

  35. def defaultSizeOfBigDecimal: (Int, Int)

    Permalink

    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)

  36. def drop: Unit

    Permalink

    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'

  37. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. def factoryFor[A](table: Table[A]): PosoFactoryPercursorTable[A]

    Permalink
    Attributes
    protected
  40. implicit val fieldMapper: FieldMapper

    Permalink
  41. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  42. def findAllTablesFor[A](c: Class[A]): Traversable[Table[_]]

    Permalink
  43. def findTablesFor[A](a: A): Iterable[Table[A]]

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  46. def indexed(indexName: String): Indexed

    Permalink
    Attributes
    protected
  47. def indexed: Indexed

    Permalink
    Attributes
    protected
  48. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  49. def name: Option[String]

    Permalink
  50. def named(name: String): Named

    Permalink
    Attributes
    protected
  51. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. def on[A](table: Table[A])(declarations: (A) ⇒ Seq[BaseColumnAttributeAssignment]): Unit

    Permalink

    protected since table declarations must only be done inside a Schema

    protected since table declarations must only be done inside a Schema

    Attributes
    protected
  55. def onDelete: ReferentialEvent

    Permalink
    Attributes
    protected
  56. def onUpdate: ReferentialEvent

    Permalink
    Attributes
    protected
  57. def primaryKey: PrimaryKey

    Permalink
    Attributes
    protected
  58. def printDdl(statementHandler: (String) ⇒ Unit): Unit

    Permalink

    statementHandler

    is a closure that receives every declaration in the schema.

  59. def printDdl(pw: PrintWriter): Unit

    Permalink
  60. def printDdl: Unit

    Permalink

    Prints the schema to standard output, it is simply : schema.printDdl(println(_))

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

    Permalink
    Definition Classes
    AnyRef
  62. def table[T](name: String, prefix: String)(implicit manifestT: Manifest[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]

    Permalink
    Attributes
    protected
  63. def table[T](name: String)(implicit manifestT: Manifest[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]

    Permalink
    Attributes
    protected
  64. def table[T]()(implicit manifestT: Manifest[T], ked: OptionalKeyedEntityDef[T, _]): Table[T]

    Permalink
    Attributes
    protected
  65. def tableNameFromClass(c: Class[_]): String

    Permalink
  66. def tableNameFromClassName(tableName: String): String

    Permalink
  67. def tables: Seq[Table[_]]

    Permalink
  68. implicit def thisSchema: Schema

    Permalink
    Attributes
    protected
  69. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  70. def transient: IsTransient

    Permalink
    Attributes
    protected
  71. def uninsertable: Uninsertable

    Permalink
    Attributes
    protected
  72. def unique: Unique

    Permalink
    Attributes
    protected
  73. def unupdatable: Unupdatable

    Permalink
    Attributes
    protected
  74. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped