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.
- Alphabetic
- By Inheritance
- DriverType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DriverType(name: String)
Type Members
- type TypeMapFunc = PartialFunction[Int, Int]
Abstract Value Members
- abstract def binaryColumnType: String
- abstract def booleanColumnType: String
- abstract def clobColumnType: String
- abstract def dateColumnType: String
- abstract def dateTimeColumnType: String
- abstract def doubleColumnType: String
- abstract def enumColumnType: String
- abstract def enumListColumnType: String
- abstract def integerColumnType: String
- abstract def integerIndexColumnType: String
- abstract def longColumnType: String
- abstract def longForeignKeyColumnType: String
- abstract def longIndexColumnType: String
- abstract def timeColumnType: String
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
brokenLimit_?: Boolean
Whether this database supports LIMIT clause in SELECTs.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.
- def createTablePostpend: String
-
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
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxSelectLimit: String
Maximum value of the LIMIT clause in SELECT.
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
def
performInsertWithGenKeys[T](conn: SuperConnection, query: String, setter: (PreparedStatement) ⇒ Unit, tableName: String, genKeyNames: List[String], handler: (Either[ResultSet, Int]) ⇒ T): T
- Attributes
- protected
-
def
pkDefinedByIndexColumn_?: Boolean
Whether the primary key has been defined by the index column.
-
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.
-
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.
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def varcharColumnType(len: Int): String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )