org.squeryl

Schema

trait Schema extends AnyRef

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

Type Members

  1. class ColGroupDeclaration extends AnyRef

  2. class ReferentialActionImpl extends ReferentialAction

  3. class ReferentialEvent extends AnyRef

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. object NamingConventionTransforms extends AnyRef

  7. def applyDefaultForeignKeyPolicy (foreignKeyDeclaration: ForeignKeyDeclaration): Unit

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def autoIncremented (sequenceName: String): AutoIncremented

    Attributes
    protected
  10. def autoIncremented : AutoIncremented

    Attributes
    protected
  11. def clone (): AnyRef

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

  13. def columnTypeFor (fieldMetaData: FieldMetaData, owner: org.squeryl.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 }

  14. def columns (fieldList: org.squeryl.dsl.ast.TypedExpressionNode[_]*): ColGroupDeclaration

  15. def create : Unit

  16. def createColumnGroupConstraintsAndIndexes : Unit

  17. def dbType (declaration: String): DBType

    Attributes
    protected
  18. def declare [B] (a: BaseColumnAttributeAssignment*): 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
  19. def defaultColumnAttributesForKeyedEntityId (typeOfIdField: Class[_]): scala.collection.immutable.Set[_ >: org.squeryl.internals.PrimaryKey <: Product with Serializable with org.squeryl.internals.AttributeValidOnNumericalColumn]

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

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

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

  23. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  25. def finalize (): Unit

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

  27. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  28. def hashCode (): Int

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

    Attributes
    protected
  30. def indexed : Indexed

    Attributes
    protected
  31. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  32. def name : Option[String]

  33. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  35. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  36. 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
  37. def onDelete : ReferentialEvent

    Attributes
    protected
  38. def onUpdate : ReferentialEvent

    Attributes
    protected
  39. def primaryKey : PrimaryKey

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

  41. def printDdl (pw: PrintWriter): Unit

  42. 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(_))

  43. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

  48. def tableNameFromClassName (tableName: String): String

  49. implicit def thisSchema : Schema

    Attributes
    protected implicit
  50. def toString (): String

    Definition Classes
    AnyRef → Any
  51. def unique : Unique

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

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

    Attributes
    protected
  54. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  57. def applyDefaultForeingKeyPolicy (foreingKeyDeclaration: ForeignKeyDeclaration): Unit

    Attributes
    final
    Annotations
    @deprecated
    Deprecated

    Use applyDefaultForeignKeyPolicy instead

  58. def findTableFor [A] (a: A): Option[Table[A]]

    Annotations
    @deprecated
    Deprecated

    will be removed in a future version, use findTablesFor instead.

Inherited from AnyRef

Inherited from Any