o

net.liftweb.db

H2Driver

object H2Driver extends DriverType

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. H2Driver
  2. DriverType
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type TypeMapFunc = PartialFunction[Int, Int]
    Definition Classes
    DriverType

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

    Definition Classes
    DriverType
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def binaryColumnType: String
    Definition Classes
    H2DriverDriverType
  7. def booleanColumnType: String
    Definition Classes
    H2DriverDriverType
  8. def brokenLimit_?: Boolean

    Whether this database supports LIMIT clause in SELECTs.

    Whether this database supports LIMIT clause in SELECTs.

    Definition Classes
    DriverType
  9. def clobColumnType: String
    Definition Classes
    H2DriverDriverType
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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.

    Definition Classes
    DriverType
  12. def createTablePostpend: String
    Definition Classes
    DriverType
  13. 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
    Definition Classes
    DriverType
  14. def dateColumnType: String
    Definition Classes
    H2DriverDriverType
  15. def dateTimeColumnType: String
    Definition Classes
    H2DriverDriverType
  16. 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.

    Definition Classes
    H2DriverDriverType
  17. def doubleColumnType: String
    Definition Classes
    H2DriverDriverType
  18. def enumColumnType: String
    Definition Classes
    H2DriverDriverType
  19. def enumListColumnType: String
    Definition Classes
    H2DriverDriverType
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  25. def integerColumnType: String
    Definition Classes
    H2DriverDriverType
  26. def integerIndexColumnType: String
    Definition Classes
    H2DriverDriverType
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def longColumnType: String
    Definition Classes
    H2DriverDriverType
  29. def longForeignKeyColumnType: String
    Definition Classes
    H2DriverDriverType
  30. def longIndexColumnType: String
    Definition Classes
    H2DriverDriverType
  31. def maxSelectLimit: String

    Maximum value of the LIMIT clause in SELECT.

    Maximum value of the LIMIT clause in SELECT.

    Definition Classes
    H2DriverDriverType
  32. val name: String
    Definition Classes
    DriverType
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  36. 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

    Definition Classes
    DriverType
  37. def performInsertWithGenKeys[T](conn: SuperConnection, query: String, setter: (PreparedStatement) ⇒ Unit, tableName: String, genKeyNames: List[String], handler: (Either[ResultSet, Int]) ⇒ T): T
    Attributes
    protected
    Definition Classes
    DriverType
  38. def pkDefinedByIndexColumn_?: Boolean

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

    Whether the primary key has been defined by the index column. H2 creates primary key for a table, when AUTO_INCREMENT type is used. <--- NOT TRUE I went into the H2 console, created a table with auto_increment and was able to insert duplicate ids. Then I created it with AUTO_INCREMENT PRIMARY KEY and it did not allow it.

    Definition Classes
    H2DriverDriverType
  39. 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.

    Definition Classes
    DriverType
  40. 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.

    Definition Classes
    DriverType
  41. 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.

    Definition Classes
    H2DriverDriverType
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def timeColumnType: String
    Definition Classes
    H2DriverDriverType
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def varcharColumnType(len: Int): String
    Definition Classes
    DriverType
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DriverType

Inherited from AnyRef

Inherited from Any

Ungrouped