class
SqlResult extends AnyRef
Instance Constructors
-
new
SqlResult(resultSet: ResultSet)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
asCollection[U, T[_]](parser: RowParser[U], maxRows: Long)(implicit cbf: CanBuildFrom[T[U], U, T[U]]): T[U]
-
def
asCollection[U, T[_]](parser: RowParser[U])(implicit cbf: CanBuildFrom[T[U], U, T[U]]): T[U]
-
final
def
asInstanceOf[T0]: T0
-
def
asIterable[A](parser: RowParser[A]): Iterable[A]
-
def
asList[A](parser: RowParser[A]): List[A]
-
def
asMap[U, V](parser: RowParser[(U, V)]): Map[U, V]
-
def
asPairCollection[U, V, T[_, _]](parser: RowParser[(U, V)], maxRows: Long)(implicit cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]
-
def
asPairCollection[U, V, T[_, _]](parser: RowParser[(U, V)])(implicit cbf: CanBuildFrom[T[U, V], (U, V), T[U, V]]): T[U, V]
-
def
asScalar[A](): A
-
def
asScalarOption[A](): Option[A]
-
def
asSeq[A](parser: RowParser[A]): Seq[A]
-
def
asSet[A](parser: RowParser[A]): Set[A]
-
def
asSingle[A](parser: RowParser[A]): A
-
def
asSingleOption[A](parser: RowParser[A]): Option[A]
-
def
bigDecimal(column: String): BigDecimal
-
def
bigDecimalOption(column: String): Option[BigDecimal]
-
def
bigInt(column: String): BigInt
-
def
bigIntOption(column: String): Option[BigInt]
-
def
bool(column: String): Boolean
-
def
boolOption(column: String): Option[Boolean]
-
def
byte(column: String): Byte
-
def
byteArray(column: String): Array[Byte]
-
def
byteArrayOption(column: String): Option[Array[Byte]]
-
def
byteOption(column: String): Option[Byte]
-
def
clone(): AnyRef
-
def
date(column: String): Date
-
def
dateOption(column: String): Option[Date]
-
def
double(column: String): Double
-
def
doubleOption(column: String): Option[Double]
-
def
enum(column: String, e: Enumeration): Value
-
def
enumOption(column: String, e: Enumeration): Option[Value]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
extractOption[A](column: String)(f: (Any) ⇒ A): Option[A]
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
getMetaData(): ResultSetMetaData
-
def
getResultSetOption[A](f: ⇒ A): Option[A]
-
def
getRow(): Int
-
def
hasColumn(column: String): Boolean
-
def
hashCode(): Int
-
def
int(column: String): Int
-
def
intOption(column: String): Option[Int]
-
final
def
isInstanceOf[T0]: Boolean
-
def
javaBigDecimal(column: String): BigDecimal
-
def
javaBigDecimalOption(column: String): Option[BigDecimal]
-
def
javaBigInteger(column: String): BigInteger
-
def
javaBigIntegerOption(column: String): Option[BigInteger]
-
def
long(column: String): Long
-
def
longOption(column: String): Option[Long]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
resultSet: ResultSet
-
def
short(column: String): Short
-
def
shortOption(column: String): Option[Short]
-
def
strictArray(column: String): Array
-
def
strictArrayOption(column: String): Option[Array]
-
def
strictAsciiStream(column: String): InputStream
-
def
strictAsciiStreamOption(column: String): Option[InputStream]
-
def
strictBigDecimal(column: String): BigDecimal
-
def
strictBigDecimalOption(column: String): Option[BigDecimal]
-
def
strictBinaryStream(column: String): InputStream
-
def
strictBinaryStreamOption(column: String): Option[InputStream]
-
def
strictBlob(column: String): Blob
-
def
strictBlobOption(column: String): Option[Blob]
-
def
strictBoolean(column: String): Boolean
-
def
strictBooleanOption(column: String): Option[Boolean]
-
def
strictByte(column: String): Byte
-
def
strictByteOption(column: String): Option[Byte]
-
def
strictBytes(column: String): Array[Byte]
-
def
strictBytesOption(column: String): Option[Array[Byte]]
-
def
strictCharacterStream(column: String): Reader
-
def
strictCharacterStreamOption(column: String): Option[Reader]
-
def
strictClob(column: String): Clob
-
def
strictClobOption(column: String): Option[Clob]
-
def
strictDate(column: String, cal: Calendar): Date
-
def
strictDate(column: String): Date
-
def
strictDateOption(column: String, cal: Calendar): Option[Date]
-
def
strictDateOption(column: String): Option[Date]
-
def
strictDouble(column: String): Double
-
def
strictDoubleOption(column: String): Option[Double]
-
def
strictFloat(column: String): Float
-
def
strictFloatOption(column: String): Option[Float]
-
def
strictInt(column: String): Int
-
def
strictInt(index: Int): Int
-
def
strictIntOption(column: String): Option[Int]
-
def
strictLong(column: String): Long
-
def
strictLong(index: Int): Long
-
def
strictLongOption(column: String): Option[Long]
-
def
strictNCharacterStream(column: String): Reader
-
def
strictNCharacterStreamOption(column: String): Option[Reader]
-
def
strictNClob(column: String): NClob
-
def
strictNClobOption(column: String): Option[NClob]
-
def
strictNString(column: String): String
-
def
strictNStringOption(column: String): Option[String]
-
def
strictObject(column: String, map: Map[String, Class[_]]): AnyRef
-
def
strictObject(column: String): AnyRef
-
def
strictObjectOption(column: String, map: Map[String, Class[_]]): Option[AnyRef]
-
def
strictObjectOption(column: String): Option[AnyRef]
-
def
strictRef(column: String): Ref
-
def
strictRefOption(column: String): Option[Ref]
-
def
strictRowId(column: String): RowId
-
def
strictRowIdOption(column: String): Option[RowId]
-
def
strictSQLXML(column: String): SQLXML
-
def
strictSQLXMLOption(column: String): Option[SQLXML]
-
def
strictShort(column: String): Short
-
def
strictShortOption(column: String): Option[Short]
-
def
strictString(column: String): String
-
def
strictStringOption(column: String): Option[String]
-
def
strictTime(column: String, cal: Calendar): Time
-
def
strictTime(column: String): Time
-
def
strictTimeOption(column: String, cal: Calendar): Option[Time]
-
def
strictTimeOption(column: String): Option[Time]
-
def
strictTimestamp(column: String, cal: Calendar): Timestamp
-
def
strictTimestamp(column: String): Timestamp
-
def
strictTimestampOption(column: String, cal: Calendar): Option[Timestamp]
-
def
strictTimestampOption(column: String): Option[Timestamp]
-
def
strictURL(column: String): URL
-
def
strictURLOption(column: String): Option[URL]
-
def
string(column: String): String
-
def
stringOption(column: String): Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
uuid(column: String): UUID
-
def
uuidFromString(column: String): UUID
-
def
uuidFromStringOption(column: String): Option[UUID]
-
def
uuidOption(column: String): Option[UUID]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
wasNull(): Boolean
-
def
withResultSet[A](f: (ResultSet) ⇒ A): A
Inherited from AnyRef
Inherited from Any
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.