com.lucidchart.relate

SqlResult

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SqlResult(resultSet: ResultSet)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def as[A]()(implicit arg0: RowParser[A]): A

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

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

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

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

  11. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

  20. 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]

    Attributes
    protected
  21. 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]

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

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

  24. def asScalar[A](): A

  25. def asScalarOption[A](): Option[A]

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

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

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

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

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

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

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

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

  34. def clone(): AnyRef

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

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

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

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

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

    Get the metadata for the java.

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

    returns

    the metadata

  40. def hasColumn(column: String): Boolean

    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
  41. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  44. def next(): Boolean

    Definition Classes
    ResultSetWrapper
  45. final def notify(): Unit

    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  47. val resultSet: ResultSet

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

    Definition Classes
    AnyRef
  49. def toString(): String

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

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

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

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

    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
  54. def withResultSet[A](f: (ResultSet) ⇒ A): A

    Definition Classes
    ResultSetWrapper

Inherited from ResultSetWrapper

Inherited from AnyRef

Inherited from Any

Ungrouped