sealed trait BasicMeta[A] extends Meta[A]
Meta
for "basic" JDBC types as defined by the specification. These include the basic numeric
and text types with distinct get/setXXX
methods and fixed mappings that ostensibly work for
all compliant drivers. These types defined both "recommended" source types (jdbcSource
here)
and "supported" types (jdbcSourceSecondary
) which drivers must not reject outright, although
in many cases coercion failures are likely (reading an Int
from a VarChar
for instance) so
these mappings should be viewed with suspicion.
- Self Type
- BasicMeta[A]
- Source
- meta.scala
- Alphabetic
- By Inheritance
- BasicMeta
- Meta
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
jdbcSource: NonEmptyList[JdbcType]
Source JDBC types from which values of type
A
can be read.Source JDBC types from which values of type
A
can be read.- Definition Classes
- Meta
-
abstract
val
jdbcSourceSecondary: List[JdbcType]
Supported but non-recommended source JDBC sources (see trait description above).
-
abstract
def
jdbcTarget: NonEmptyList[JdbcType]
Destination JDBC types to which values of type
A
can be written.Destination JDBC types to which values of type
A
can be written.- Definition Classes
- Meta
-
abstract
def
scalaType: String
Name of the Scala type, for diagnostic purposes.
Name of the Scala type, for diagnostic purposes. Smart constructors require a
TypeTag
to guarantee this value is correct.- Definition Classes
- Meta
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canReadFrom(jdbc: JdbcType): Boolean
True if
A
can be read from a column or 'out' parameter with the specifiedJdbcType
. -
def
canWriteTo(jdbc: JdbcType): Boolean
True if
A
can be written to a column or 'in' parameter with the specifiedJdbcType
. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
fold[B](f: (BasicMeta[A]) ⇒ B, g: (AdvancedMeta[A]) ⇒ B): B
Switch on the flavor of this
Meta
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mightReadFrom(jdbc: JdbcType): Boolean
True if
A
might be readable from a column or 'out' parameter with the specifiedJdbcType
, taking into account non-recommended source types specified injdbcSourceSecondary
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unsafeGetNonNullable(rs: ResultSet, n: Int): A
- Definition Classes
- Meta
-
final
def
unsafeGetNullable(rs: ResultSet, n: Int): Option[A]
- Definition Classes
- Meta
-
final
def
unsafeSetNonNullable(ps: PreparedStatement, n: Int, a: A): Unit
- Definition Classes
- Meta
- Annotations
- @SuppressWarnings()
-
final
def
unsafeSetNull(ps: PreparedStatement, n: Int): Unit
- Definition Classes
- Meta
-
final
def
unsafeSetNullable(ps: PreparedStatement, n: Int, oa: Option[A]): Unit
- Definition Classes
- Meta
-
final
def
unsafeUpdateNonNullable(rs: ResultSet, n: Int, a: A): Unit
- Definition Classes
- Meta
- Annotations
- @SuppressWarnings()
-
final
def
unsafeUpdateNullable(rs: ResultSet, n: Int, oa: Option[A]): Unit
- Definition Classes
- Meta
-
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
xmap[B](f: (A) ⇒ B, g: (B) ⇒ A)(implicit ev: scala.reflect.api.JavaUniverse.TypeTag[B]): Meta[B]
Invariant map.
Deprecated Value Members
-
def
nxmap[B >: Null](f: (A) ⇒ B, g: (B) ⇒ A)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], ev: <:<[Null, A]): Meta[B]
Invariant map with
null
handling, forA, B >: Null
; the functionsf
andg
will never be passed anull
value.Invariant map with
null
handling, forA, B >: Null
; the functionsf
andg
will never be passed anull
value.- Definition Classes
- Meta
- Annotations
- @deprecated
- Deprecated
(Since version 0.4.2) Null is no longer observable here; just use xmap.