com.imageworks.migration

TableDefinition

class TableDefinition extends AnyRef

A builder to define a table. Its methods add the specified type of column to the table's definition.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TableDefinition
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TableDefinition(adapter: DatabaseAdapter, tableName: String)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. final def bigint(name: String, options: ColumnOption*): TableDefinition

    Add a BIGINT column type to the table.

    Add a BIGINT column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  6. final def blob(name: String, options: ColumnOption*): TableDefinition

    Add a BLOB column type to the table.

    Add a BLOB column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  7. final def boolean(name: String, options: ColumnOption*): TableDefinition

    Add a BOOLEAN column type to the table.

    Add a BOOLEAN column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  8. final def char(name: String, options: ColumnOption*): TableDefinition

    Add a CHAR column type to the table.

    Add a CHAR column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def column(name: String, columnType: SqlType, options: ColumnOption*): TableDefinition

    Add any known column type to the table.

    Add any known column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    columnType

    the type of column being added

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  11. final def decimal(name: String, options: ColumnOption*): TableDefinition

    Add a DECIMAL column type to the table.

    Add a DECIMAL column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  17. final def integer(name: String, options: ColumnOption*): TableDefinition

    Add a INTEGER column type to the table.

    Add a INTEGER column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def smallint(name: String, options: ColumnOption*): TableDefinition

    Add a SMALLINT column type to the table.

    Add a SMALLINT column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

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

    Definition Classes
    AnyRef
  24. final def timestamp(name: String, options: ColumnOption*): TableDefinition

    Add a TIMESTAMP column type to the table.

    Add a TIMESTAMP column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  25. final def toSql: String

    Generate a SQL string representation of the columns in the table.

    Generate a SQL string representation of the columns in the table.

    returns

    the SQL text that defines the columns in the table

  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def varbinary(name: String, options: ColumnOption*): TableDefinition

    Add a VARBINARY column type to the table.

    Add a VARBINARY column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  28. final def varchar(name: String, options: ColumnOption*): TableDefinition

    Add a VARCHAR column type to the table.

    Add a VARCHAR column type to the table. The actual SQL text used to create the column is chosen by the database adapter and may be different than the name of the columnType argument.

    name

    the column's name

    options

    a possibly empty array of column options to customize the column

    returns

    the same instance

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped