Class/Object

com.lucidchart.relate

SqlResult

Related Docs: object SqlResult | package relate

Permalink

class SqlResult extends ResultSetWrapper

The SqlResult class is a wrapper around Java's ResultSet class.

It provides methods to allows users to retrieve specific columns by name and datatype, but also provides methods that can, given a RowParser, parse the entire result set as a collection of records returned by the parser. These methods are also defined in the Sql trait, and are most conveniently used when chained with parameter insertion. For how to do this, see the Sql trait documentation.

The extraction methods (int, string, long, etc.) also have "strict" counterparts. The "strict" methods are slightly faster, but do not do type checking or handle null values.

Linear Supertypes
ResultSetWrapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SqlResult
  2. ResultSetWrapper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SqlResult(resultSet: ResultSet)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def as[A]()(implicit arg0: RowParser[A]): A

    Permalink
  5. def asCollection[U, T[_]](parser: (SqlRow) ⇒ U, maxRows: Long)(implicit cbf: CanBuildFrom[T[U], U, T[U]]): T[U]

    Permalink
    Attributes
    protected
  6. def asCollection[U, T[_]](maxRows: Long)(implicit arg0: RowParser[U], cbf: CanBuildFrom[T[U], U, T[U]]): T[U]

    Permalink
    Attributes
    protected
  7. def asCollection[U, T[_]]()(implicit arg0: RowParser[U], cbf: CanBuildFrom[T[U], U, T[U]]): T[U]

    Permalink
  8. def asCollection[U, T[_]](parser: (SqlRow) ⇒ U)(implicit cbf: CanBuildFrom[T[U], U, T[U]]): T[U]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asIterable[A](parser: (SqlRow) ⇒ A): Iterable[A]

    Permalink
  11. def asIterable[A]()(implicit arg0: RowParser[A]): Iterable[A]

    Permalink
  12. def asList[A](parser: (SqlRow) ⇒ A): List[A]

    Permalink
  13. def asList[A]()(implicit arg0: RowParser[A]): List[A]

    Permalink
  14. def asMap[U, V](parser: (SqlRow) ⇒ (U, V)): Map[U, V]

    Permalink
  15. def asMap[U, V]()(implicit p: RowParser[(U, V)]): Map[U, V]

    Permalink
  16. def asMultiMap[U, V](parser: (SqlRow) ⇒ (U, V)): Map[U, Set[V]]

    Permalink
  17. def asMultiMap[U, V]()(implicit p: RowParser[(U, V)]): Map[U, Set[V]]

    Permalink
  18. def asPairCollection[U, V, T[_, _]](parser: (SqlRow) ⇒ (U, V), maxRows: Long)(implicit cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]

    Permalink
    Attributes
    protected
  19. def asPairCollection[U, V, T[_, _]](maxRows: Long)(implicit p: RowParser[(U, V)], cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]

    Permalink
    Attributes
    protected
  20. def asPairCollection[U, V, T[_, _]](parser: (SqlRow) ⇒ (U, V))(implicit cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]

    Permalink
  21. def asPairCollection[U, V, T[_, _]]()(implicit p: RowParser[(U, V)], cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]

    Permalink
  22. def asScalar[A](): A

    Permalink
  23. def asScalarOption[A](): Option[A]

    Permalink
  24. def asSeq[A](parser: (SqlRow) ⇒ A): Seq[A]

    Permalink
  25. def asSeq[A]()(implicit arg0: RowParser[A]): Seq[A]

    Permalink
  26. def asSet[A](parser: (SqlRow) ⇒ A): Set[A]

    Permalink
  27. def asSet[A]()(implicit arg0: RowParser[A]): Set[A]

    Permalink
  28. def asSingle[A](parser: (SqlRow) ⇒ A): A

    Permalink
  29. def asSingle[A]()(implicit arg0: RowParser[A]): A

    Permalink
  30. def asSingleOption[A](parser: (SqlRow) ⇒ A): Option[A]

    Permalink
  31. def asSingleOption[A]()(implicit arg0: RowParser[A]): Option[A]

    Permalink
  32. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  37. def getMetaData(): ResultSetMetaData

    Permalink

    Get the metadata for the java.sql.ResultSet that underlies this SqlResult

    Get the metadata for the java.sql.ResultSet that underlies this SqlResult

    returns

    the metadata

  38. def hasColumn(column: String): Boolean

    Permalink

    Determine if the result set contains the given column name

    Determine if the result set contains the given column name

    column

    the column name to check

    returns

    whether or not the result set contains that column name

    Definition Classes
    ResultSetWrapper
  39. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. def next(): Boolean

    Permalink
    Definition Classes
    ResultSetWrapper
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. val resultSet: ResultSet

    Permalink
    Definition Classes
    SqlResultResultSetWrapper
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def wasNull(): Boolean

    Permalink

    Determine if the last value extracted from the result set was null

    Determine if the last value extracted from the result set was null

    returns

    whether the last value was null

    Definition Classes
    ResultSetWrapper
  52. def withResultSet[A](f: (ResultSet) ⇒ A): A

    Permalink
    Definition Classes
    ResultSetWrapper

Inherited from ResultSetWrapper

Inherited from AnyRef

Inherited from Any

Ungrouped