net.liftweb.mapper.DriverType

class DriverType

abstract class DriverType(val name : String)

 extends ScalaObject


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


Companion: DriverType

Source: Driver.scala(27)

Direct Known Subclasses

BasePostgreSQLDriver, SqlServerDriver, DerbyDriver, H2Driver, MaxDbDriver, MySqlDriver, OracleDriver,

 Constructors

def this(name : String)

 Fields

binaryColumnType.. abstract def binaryColumnType String
booleanColumnType.. abstract def booleanColumnType String
brokenLimit_?.. def brokenLimit_?
Whether this database supports LIMIT clause in SELECTs
Boolean
clobColumnType.. abstract def clobColumnType String
columnTypeMap.. def columnTypeMap
Allow the driver to do specific remapping of column types for cases where not all types are supported [details]
Classes that want to do custom type mapping for columns should override the customColumnTypeMap method.
PartialFunction
createTablePostpend.. def createTablePostpend String
customColumnTypeMap.. protected def customColumnTypeMap
Allows the Vendor-specific Driver to do custom type mapping for a particular column type
PartialFunction
dateColumnType.. abstract def dateColumnType String
dateTimeColumnType.. abstract def dateTimeColumnType String
defaultSchemaName.. def defaultSchemaName
Name of the default db schema [details]
If not set, then the schema is assumed to equal the db user name.
Box[String]
doubleColumnType.. abstract def doubleColumnType String
enumColumnType.. abstract def enumColumnType String
enumListColumnType.. abstract def enumListColumnType String
integerColumnType.. abstract def integerColumnType String
integerIndexColumnType.. abstract def integerIndexColumnType String
longColumnType.. abstract def longColumnType String
longForeignKeyColumnType.. abstract def longForeignKeyColumnType String
longIndexColumnType.. abstract def longIndexColumnType String
maxSelectLimit.. def maxSelectLimit
Maximum value of the LIMIT clause in SELECT
String
pkDefinedByIndexColumn_?.. def pkDefinedByIndexColumn_?
Whether the primary key has been defined by the index column
Boolean
supportsForeignKeys_?.. def supportsForeignKeys_? Boolean
timeColumnType.. abstract def timeColumnType String

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
performInsert.. def performInsert(conn : Connection, query : String, setter : (PreparedStatement) => Unit, tableName : String, pkNames : List[String])
Performs an insert and optionally returns the ResultSet of the generated keys that were inserted [details]
If no keys are specified, return the number of rows updated.
param
pkName - Zero or more generated column names that need to be returned
query - The prepared query string to use for the insert
setter - A function that will set the parameters on the prepared statement
conn - A connection that the method can optionally use if it needs to execute ancillary statements
Either[ResultSet, Int]
performInsertWithPK.. protected def performInsertWithPK(conn : Connection, query : String, setter : (PreparedStatement) => Unit, tableName : String, pkNames : List[String]) ResultSet
primaryKeySetup.. def primaryKeySetup(tableName : String, columnName : 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) [details]
The List of commands will be executed in order.
List[String]
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.