Skip to content

Commit

Permalink
[jOOQ#5395] Apply changes also to jOOQ-scala
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Jul 6, 2016
1 parent 1800024 commit 822e1d3
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions jOOQ-scala/src/main/scala/org/jooq/scala/Conversions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -160,37 +160,37 @@ object Conversions {
implicit class ScalaResultQuery[R <: Record](val query : ResultQuery[R]) {
import _root_.scala.collection.mutable._

def fetchAnyOption () : Option[R] = Option(query.fetchAny)
def fetchAnyOption[E] (mapper : RecordMapper[_ >: R, E]) : Option[E] = Option(query.fetchAny(mapper))
def fetchAnyOption[T] (field : Field[T]) : Option[T] = Option(query.fetchAny(field))
def fetchAnyOption[T] (field : Field[_], newType : Class[_ <: T]) : Option[T] = Option(query.fetchAny(field, newType))
def fetchAnyOption[T, U] (field : Field[T], converter : Converter[_ >: T, U]) : Option[U] = Option(query.fetchAny[T, U](field, converter))
def fetchAnyOption (fieldIndex : Int) : Option[_] = Option(query.fetchAny(fieldIndex))
def fetchAnyOption[T] (fieldIndex : Int, newType : Class[_ <: T]) : Option[_] = Option(query.fetchAny(fieldIndex, newType))
def fetchAnyOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, U]) : Option[_] = Option(query.fetchAny(fieldIndex, converter))
def fetchAnyOption (fieldName : String) : Option[_] = Option(query.fetchAny(fieldName))
def fetchAnyOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[_] = Option(query.fetchAny(fieldName, newType))
def fetchAnyOption[U] (fieldName : String, converter : Converter[_, U]) : Option[_] = Option(query.fetchAny(fieldName, converter))
def fetchAnyOptionArray () : Option[Array[AnyRef]] = Option(query.fetchAnyArray)
def fetchAnyOptionInto[E] (newType : Class[_ <: E]) : Option[E] = Option(query.fetchAnyInto(newType))
def fetchAnyOptionInto[Z <: Record](table : Table[Z]) : Option[Z] = Option(query.fetchAnyInto(table))
def fetchAnyOptionMap () : Option[Map[String, AnyRef]] = Option(query.fetchAnyMap).map(WrapAsScala.mapAsScalaMap)

def fetchOneOption () : Option[R] = Option(query.fetchOne)
def fetchOneOption[E] (mapper : RecordMapper[_ >: R, E]) : Option[E] = Option(query.fetchOne(mapper))
def fetchOneOption[T] (field : Field[T]) : Option[T] = Option(query.fetchOne(field))
def fetchOneOption[T] (field : Field[_], newType : Class[_ <: T]) : Option[T] = Option(query.fetchOne(field, newType))
def fetchOneOption[T, U] (field : Field[T], converter : Converter[_ >: T, U]) : Option[U] = Option(query.fetchOne[T, U](field, converter))
def fetchOneOption (fieldIndex : Int) : Option[_] = Option(query.fetchOne(fieldIndex))
def fetchOneOption[T] (fieldIndex : Int, newType : Class[_ <: T]) : Option[_] = Option(query.fetchOne(fieldIndex, newType))
def fetchOneOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, U]) : Option[_] = Option(query.fetchOne(fieldIndex, converter))
def fetchOneOption (fieldName : String) : Option[_] = Option(query.fetchOne(fieldName))
def fetchOneOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[_] = Option(query.fetchOne(fieldName, newType))
def fetchOneOption[U] (fieldName : String, converter : Converter[_, U]) : Option[_] = Option(query.fetchOne(fieldName, converter))
def fetchOneOptionArray () : Option[Array[AnyRef]] = Option(query.fetchOneArray)
def fetchOneOptionInto[E] (newType : Class[_ <: E]) : Option[E] = Option(query.fetchOneInto(newType))
def fetchOneOptionInto[Z <: Record](table : Table[Z]) : Option[Z] = Option(query.fetchOneInto(table))
def fetchOneOptionMap () : Option[Map[String, AnyRef]] = Option(query.fetchOneMap).map(WrapAsScala.mapAsScalaMap)
def fetchAnyOption () : Option[R] = Option(query.fetchAny)
def fetchAnyOption[E] (mapper : RecordMapper[_ >: R, E]) : Option[E] = Option(query.fetchAny(mapper))
def fetchAnyOption[T] (field : Field[T]) : Option[T] = Option(query.fetchAny(field))
def fetchAnyOption[T] (field : Field[_], newType : Class[_ <: T]) : Option[T] = Option(query.fetchAny(field, newType))
def fetchAnyOption[T, U] (field : Field[T], converter : Converter[_ >: T, _ <: U]) : Option[U] = Option(query.fetchAny[T, U](field, converter))
def fetchAnyOption (fieldIndex : Int) : Option[_] = Option(query.fetchAny(fieldIndex))
def fetchAnyOption[T] (fieldIndex : Int, newType : Class[_ <: T]) : Option[_] = Option(query.fetchAny(fieldIndex, newType))
def fetchAnyOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, _ <: U]) : Option[_] = Option(query.fetchAny(fieldIndex, converter))
def fetchAnyOption (fieldName : String) : Option[_] = Option(query.fetchAny(fieldName))
def fetchAnyOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[_] = Option(query.fetchAny(fieldName, newType))
def fetchAnyOption[U] (fieldName : String, converter : Converter[_, _ <: U]) : Option[_] = Option(query.fetchAny(fieldName, converter))
def fetchAnyOptionArray () : Option[Array[AnyRef]] = Option(query.fetchAnyArray)
def fetchAnyOptionInto[E] (newType : Class[_ <: E]) : Option[E] = Option(query.fetchAnyInto(newType))
def fetchAnyOptionInto[Z <: Record](table : Table[Z]) : Option[Z] = Option(query.fetchAnyInto(table))
def fetchAnyOptionMap () : Option[Map[String, AnyRef]] = Option(query.fetchAnyMap).map(WrapAsScala.mapAsScalaMap)

def fetchOneOption () : Option[R] = Option(query.fetchOne)
def fetchOneOption[E] (mapper : RecordMapper[_ >: R, E]) : Option[E] = Option(query.fetchOne(mapper))
def fetchOneOption[T] (field : Field[T]) : Option[T] = Option(query.fetchOne(field))
def fetchOneOption[T] (field : Field[_], newType : Class[_ <: T]) : Option[T] = Option(query.fetchOne(field, newType))
def fetchOneOption[T, U] (field : Field[T], converter : Converter[_ >: T, _ <: U]) : Option[U] = Option(query.fetchOne[T, U](field, converter))
def fetchOneOption (fieldIndex : Int) : Option[_] = Option(query.fetchOne(fieldIndex))
def fetchOneOption[T] (fieldIndex : Int, newType : Class[_ <: T]) : Option[_] = Option(query.fetchOne(fieldIndex, newType))
def fetchOneOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, _ <: U]) : Option[_] = Option(query.fetchOne(fieldIndex, converter))
def fetchOneOption (fieldName : String) : Option[_] = Option(query.fetchOne(fieldName))
def fetchOneOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[_] = Option(query.fetchOne(fieldName, newType))
def fetchOneOption[U] (fieldName : String, converter : Converter[_, _ <: U]) : Option[_] = Option(query.fetchOne(fieldName, converter))
def fetchOneOptionArray () : Option[Array[AnyRef]] = Option(query.fetchOneArray)
def fetchOneOptionInto[E] (newType : Class[_ <: E]) : Option[E] = Option(query.fetchOneInto(newType))
def fetchOneOptionInto[Z <: Record](table : Table[Z]) : Option[Z] = Option(query.fetchOneInto(table))
def fetchOneOptionMap () : Option[Map[String, AnyRef]] = Option(query.fetchOneMap).map(WrapAsScala.mapAsScalaMap)
}

// -------------------------------------------------------------------------
Expand Down

0 comments on commit 822e1d3

Please sign in to comment.