com.imageworks.migration

ColumnDefinition

abstract class ColumnDefinition extends AnyRef

Abstract base class for the definition of a column type. It stores all the information for the column type, e.g. if it supports a default value, if it supports a limit on the range of values it can hold, etc.

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

Instance Constructors

  1. new ColumnDefinition()

Abstract Value Members

  1. abstract def sql: String

    Attributes
    protected

Concrete 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. var adapterOpt: Option[DatabaseAdapter]

    The database adapter associated with this column definition, which may or may not be set.

    The database adapter associated with this column definition, which may or may not be set.

    Attributes
    protected[com.imageworks.migration]
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var columnNameOpt: Option[String]

    The column's name, which may or may not be set.

    The column's name, which may or may not be set.

    Attributes
    protected[com.imageworks.migration]
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getAdapter: DatabaseAdapter

    The database adapter associated with this column definition.

    The database adapter associated with this column definition.

    returns

    the database adapter associated with this column definition

    Attributes
    protected[com.imageworks.migration]
    Exceptions thrown
    java.util.NoSuchElementException

    if the database adapter has not been associated with this column definition

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

    Definition Classes
    AnyRef → Any
  13. def getColumnName: String

    Get the column's name.

    Get the column's name.

    returns

    the column name

    Attributes
    protected[com.imageworks.migration]
    Exceptions thrown
    java.util.NoSuchElementException

    if the column name has not been set

  14. def getTableName: String

    Get the table name the column is defined in.

    Get the table name the column is defined in.

    returns

    the table name the column is defined in

    Attributes
    protected[com.imageworks.migration]
    Exceptions thrown
    java.util.NoSuchElementException

    if the table name has not been set

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def initialize(): Unit

    Called after the above properties have been wired.

  17. var isAutoIncrement: Boolean

    If AutoIncrement is specified for the column.

    If AutoIncrement is specified for the column.

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

    Definition Classes
    Any
  19. def limit: Option[String]

    Get the limit for the column.

    Get the limit for the column.

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

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

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

    Definition Classes
    AnyRef
  23. def optionallyAddLimitToDataType(columnTypeName: String): String

    Given the SQL for a column data type, return it with the LIMIT syntax appended if a limit is specified on the column definition instance, otherwise return SQL unmodified.

    Given the SQL for a column data type, return it with the LIMIT syntax appended if a limit is specified on the column definition instance, otherwise return SQL unmodified.

    columnTypeName

    the column type name

    returns

    the column type name with the limit syntax if the column definition specifies a limit

    Attributes
    protected
  24. def optionallyAddLimitToDataType(columnTypeName: String, limitOpt: Option[String]): String

    Given the SQL for a column data type, return it with the LIMIT syntax appended if a limit is given, otherwise return SQL unmodified.

    Given the SQL for a column data type, return it with the LIMIT syntax appended if a limit is given, otherwise return SQL unmodified.

    columnTypeName

    the column type name

    limitOpt

    optional column limit

    returns

    the column type name with the limit syntax if a limit was given

    Attributes
    protected
  25. var options: List[ColumnOption]

    Column options.

    Column options.

    Attributes
    protected[com.imageworks.migration]
  26. def precision: Option[Int]

    Get the precision for the column.

  27. def scale: Option[Int]

    Get the scale for the column.

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

    Definition Classes
    AnyRef
  29. var tableNameOpt: Option[String]

    The table name the column is defined in, which may or may not be set.

    The table name the column is defined in, which may or may not be set.

    Attributes
    protected[com.imageworks.migration]
  30. final def toSql: String

  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped