org.squeryl

Schema

trait 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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ActiveRecord[A] extends AnyRef

    Active Record pattern implementation.

  2. class ColGroupDeclaration extends AnyRef

  3. class ReferentialActionImpl extends ReferentialAction

  4. class ReferentialEvent extends AnyRef

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object NamingConventionTransforms

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

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

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

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

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

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

    Attributes
    protected
  13. 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.

  14. def applyDefaultForeignKeyPolicy(foreignKeyDeclaration: ForeignKeyDeclaration): Unit

  15. final def asInstanceOf[T0]: T0

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

    Attributes
    protected
  17. def autoIncremented: AutoIncremented

    Attributes
    protected
  18. def beforeDelete[K, A <: KeyedEntity[K]]()(implicit m: Manifest[A]): LifecycleEventPercursorClass[A]

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

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

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

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

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

    Attributes
    protected
  24. def callbacks: Seq[LifecycleEvent]

  25. def clone(): AnyRef

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

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

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

  29. def create: Unit

  30. def createColumnGroupConstraintsAndIndexes: Unit

  31. def dbType(declaration: String): DBType

    Attributes
    protected
  32. 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
  33. def defaultColumnAttributesForKeyedEntityId(typeOfIdField: Class[_]): Set[_ >: PrimaryKey <: AttributeValidOnNumericalColumn with Product with Serializable]

  34. 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

  35. 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)

  36. 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'

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

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

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

    Attributes
    protected
  40. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def findTablesFor[A](a: A): Iterable[Table[A]]

  42. final def getClass(): Class[_]

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

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

    Attributes
    protected
  45. def indexed: Indexed

    Attributes
    protected
  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def name: Option[String]

  48. def named(name: String): Named

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

    Definition Classes
    AnyRef
  50. final def notify(): Unit

    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  52. 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
  53. def onDelete: ReferentialEvent

    Attributes
    protected
  54. def onUpdate: ReferentialEvent

    Attributes
    protected
  55. def primaryKey: PrimaryKey

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

  57. def printDdl(pw: PrintWriter): Unit

  58. def printDdl: Unit

    Prints the schema to standard output, it is simply : schema.

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

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

    Definition Classes
    AnyRef
  60. def table[T](name: String, prefix: String)(implicit manifestT: Manifest[T]): Table[T]

    Attributes
    protected
  61. def table[T](name: String)(implicit manifestT: Manifest[T]): Table[T]

    Attributes
    protected
  62. def table[T]()(implicit manifestT: Manifest[T]): Table[T]

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

  64. def tableNameFromClassName(tableName: String): String

  65. def tables: Seq[Table[_]]

  66. implicit def thisSchema: Schema

    Attributes
    protected
  67. def toString(): String

    Definition Classes
    AnyRef → Any
  68. def uninsertable: Uninsertable

    Attributes
    protected
  69. def unique: Unique

    Attributes
    protected
  70. def unupdatable: Unupdatable

    Attributes
    protected
  71. def view[T](name: String)(implicit manifestT: Manifest[T]): View[T]

    Attributes
    protected
  72. def view[T]()(implicit manifestT: Manifest[T]): View[T]

    Attributes
    protected
  73. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped