trait JdbcType[T] extends BaseTypedType[T]
A JdbcType object represents a Scala type that can be used as a column type in the database. Implicit JdbcTypes for the standard types of a profile are provided by the drivers.
- Self Type
- JdbcType[T]
- Source
- JdbcType.scala
- Alphabetic
- By Inheritance
- JdbcType
- BaseTypedType
- AtomicType
- TypedType
- Type
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
classTag: ClassTag[_]
A ClassTag for the erased type of this type's Scala values
A ClassTag for the erased type of this type's Scala values
- Definition Classes
- Type
-
abstract
def
getValue(r: ResultSet, idx: Int): T
Get a result column of the type.
Get a result column of the type. For reference types, SQL NULL values are returned as
null
, for primitive types a default value is returned. -
abstract
def
hasLiteralForm: Boolean
Indicates whether values of this type have a literal representation in SQL statements.
Indicates whether values of this type have a literal representation in SQL statements. This must return false if
valueToSQLLiteral
throws a SlickException. QueryBuilder (and driver-specific subclasses thereof) uses this method to treat LiteralNodes as volatile (i.e. using bind variables) as needed. -
abstract
def
scalaType: ScalaType[T]
- Definition Classes
- TypedType
-
abstract
def
setNull(p: PreparedStatement, idx: Int): Unit
Set a parameter of the type to NULL.
-
abstract
def
setValue(v: T, p: PreparedStatement, idx: Int): Unit
Set a parameter of the type.
-
abstract
def
sqlType: Int
The constant from java.sql.Types that is used for setting parameters of the type to NULL.
-
abstract
def
sqlTypeName: String
The default name for the SQL type that is used for column declarations.
-
abstract
def
updateValue(v: T, r: ResultSet, idx: Int): Unit
Update a column of the type in a mutable result set.
-
abstract
def
valueToSQLLiteral(value: T): String
Convert a value to a SQL literal.
Convert a value to a SQL literal. This should throw a
SlickException
ifhasLiteralForm
is false. -
abstract
def
wasNull(r: ResultSet, idx: Int): Boolean
Check if the value returned by the immediately preceding call to getValue() was NULL.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (JdbcType[T], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
children: Seq[Type]
All children of this Type.
All children of this Type.
- Definition Classes
- AtomicType → Type
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (JdbcType[T]) ⇒ Boolean, msg: ⇒ Any): JdbcType[T]
- def ensuring(cond: (JdbcType[T]) ⇒ Boolean): JdbcType[T]
- def ensuring(cond: Boolean, msg: ⇒ Any): JdbcType[T]
- def ensuring(cond: Boolean): JdbcType[T]
-
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] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
mapChildren(f: (Type) ⇒ Type): JdbcType.this.type
Apply a transformation to all type children and reconstruct this type with the new children, or return the original object if no child is changed.
Apply a transformation to all type children and reconstruct this type with the new children, or return the original object if no child is changed.
- Definition Classes
- AtomicType → Type
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
optionType: OptionTypedType[T]
- Definition Classes
- TypedType
-
def
select(sym: ast.Symbol): Type
- Definition Classes
- Type
-
final
def
setOption(v: Option[T], p: PreparedStatement, idx: Int): Unit
Set an Option parameter of the type.
-
def
structural: Type
The structural view of this type
The structural view of this type
- Definition Classes
- Type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- JdbcType → AnyRef → Any
-
def
updateNull(r: ResultSet, idx: Int): Unit
Update a column of the type in a mutable result set with NULL.
-
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( ... )
- def →[B](y: B): (JdbcType[T], B)
edit this text on github
Scala Language-Integrated Connection Kit
This is the documentation for the Slick database library. Slick is a joint effort by Typesafe and LAMP, EPFL Lausanne.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...
Important places
Type-safe query operators
Plain SQL queries
Driver / Connection related
Mapping related
Model / Table class related
Other