Class/Object

net.liftweb.db

DriverType

Related Docs: object DriverType | package db

Permalink

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

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

Instance Constructors

  1. new DriverType(name: String)

    Permalink

Type Members

  1. type TypeMapFunc = PartialFunction[Int, Int]

    Permalink

Abstract Value Members

  1. abstract def binaryColumnType: String

    Permalink
  2. abstract def booleanColumnType: String

    Permalink
  3. abstract def clobColumnType: String

    Permalink
  4. abstract def dateColumnType: String

    Permalink
  5. abstract def dateTimeColumnType: String

    Permalink
  6. abstract def doubleColumnType: String

    Permalink
  7. abstract def enumColumnType: String

    Permalink
  8. abstract def enumListColumnType: String

    Permalink
  9. abstract def integerColumnType: String

    Permalink
  10. abstract def integerIndexColumnType: String

    Permalink
  11. abstract def longColumnType: String

    Permalink
  12. abstract def longForeignKeyColumnType: String

    Permalink
  13. abstract def longIndexColumnType: String

    Permalink
  14. abstract def timeColumnType: String

    Permalink

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alterAddColumn: String

    Permalink

    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.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def brokenLimit_?: Boolean

    Permalink

    Whether this database supports LIMIT clause in SELECTs.

  7. def clone(): AnyRef

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

    Permalink

    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.

  9. def createTablePostpend: String

    Permalink
  10. def customColumnTypeMap: TypeMapFunc

    Permalink

    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
  11. def defaultSchemaName: Box[String]

    Permalink

    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.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def maxSelectLimit: String

    Permalink

    Maximum value of the LIMIT clause in SELECT.

  19. val name: String

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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

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

    Permalink
    Attributes
    protected
  25. def pkDefinedByIndexColumn_?: Boolean

    Permalink

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

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

    Permalink

    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.

  27. def schemifierMustAutoCommit_?: Boolean

    Permalink

    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.

  28. def supportsForeignKeys_?: Boolean

    Permalink

    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.

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

    Permalink
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped