net.liftweb.db

DriverType

class DriverType extends AnyRef

JDBC Driver Abstraction base class. New driver types should extend this base class. New drivers should "register" in the companion object DriverType.calcDriver method.

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

Instance Constructors

  1. new DriverType (name: String)

Type Members

  1. type TypeMapFunc = PartialFunction[Int, Int]

Abstract Value Members

  1. def binaryColumnType : String

    Attributes
    abstract
  2. def booleanColumnType : String

    Attributes
    abstract
  3. def clobColumnType : String

    Attributes
    abstract
  4. def dateColumnType : String

    Attributes
    abstract
  5. def dateTimeColumnType : String

    Attributes
    abstract
  6. def doubleColumnType : String

    Attributes
    abstract
  7. def enumColumnType : String

    Attributes
    abstract
  8. def enumListColumnType : String

    Attributes
    abstract
  9. def integerColumnType : String

    Attributes
    abstract
  10. def integerIndexColumnType : String

    Attributes
    abstract
  11. def longColumnType : String

    Attributes
    abstract
  12. def longForeignKeyColumnType : String

    Attributes
    abstract
  13. def longIndexColumnType : String

    Attributes
    abstract
  14. def timeColumnType : String

    Attributes
    abstract

Concrete 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. def alterAddColumn : String

    This defines the syntax for adding a column in an alter.

    This defines the syntax for adding a column in an alter. This is used because some DBs (Oracle, for one) use slightly different syntax.

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def brokenLimit_? : Boolean

    Whether this database supports LIMIT clause in SELECTs.

  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def columnTypeMap : TypeMapFunc

    Allow the driver to do specific remapping of column types for cases where not all types are supported.

    Allow the driver to do specific remapping of column types for cases where not all types are supported. Classes that want to do custom type mapping for columns should override the customColumnTypeMap method.

  11. def createTablePostpend : String

  12. def customColumnTypeMap : TypeMapFunc

    Allows the Vendor-specific Driver to do custom type mapping for a particular column type.

    Allows the Vendor-specific Driver to do custom type mapping for a particular column type.

    Attributes
    protected
  13. def defaultSchemaName : Box[String]

    Name of the default db schema.

    Name of the default db schema. If not set, then the schema is assumed to equal the db user name.

  14. def eq (arg0: AnyRef): Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def maxSelectLimit : String

    Maximum value of the LIMIT clause in SELECT.

  21. val name : String

  22. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  25. def performInsert [T] (conn: SuperConnection, query: String, setter: (PreparedStatement) ⇒ Unit, tableName: String, genKeyNames: List[String])(handler: (Either[ResultSet, Int]) ⇒ T): T

    Performs an insert and optionally returns the ResultSet of the generated keys that were inserted.

    Performs an insert and optionally returns the ResultSet of the generated keys that were inserted. If no keys are specified, return the number of rows updated.

    conn

    A connection that the method can optionally use if it needs to execute ancillary statements

    query

    The prepared query string to use for the insert

    setter

    A function that will set the parameters on the prepared statement

  26. def performInsertWithGenKeys [T] (conn: SuperConnection, query: String, setter: (PreparedStatement) ⇒ Unit, tableName: String, genKeyNames: List[String], handler: (Either[ResultSet, Int]) ⇒ T): T

    Attributes
    protected
  27. def pkDefinedByIndexColumn_? : Boolean

    Whether the primary key has been defined by the index column.

  28. def primaryKeySetup (tableName: String, columnName: String): List[String]

    This method can be overriden by DriverType impls to allow for custom setup of Primary Key Columns (creating sequeneces or special indices, for example).

    This method can be overriden by DriverType impls to allow for custom setup of Primary Key Columns (creating sequeneces or special indices, for example). The List of commands will be executed in order.

  29. def schemifierMustAutoCommit_? : Boolean

    This indicates that Schemifier needs to run with a non-transacted connection.

    This indicates that Schemifier needs to run with a non-transacted connection. Certain databases require that gathering information on tables (which Schemifier uses for updates) run outside of a transaction.

  30. def supportsForeignKeys_? : Boolean

    This specifies that the driver supports FKs in tables.

    This specifies that the driver supports FKs in tables. Note that to enable FK generation in Schemifier, you also need to set MapperRules.createForeignKeys_? to true before running it.

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

    Attributes
    final
    Definition Classes
    AnyRef
  32. def toString (): String

    Definition Classes
    AnyRef → Any
  33. def varcharColumnType (len: Int): String

  34. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any