Fix Scala Conversions fetchOneOption consistent typing patterns

This commit is contained in:
Eric Peters 2016-07-20 12:56:02 -07:00
parent d0d0526cec
commit 5535d79f31

View File

@ -170,7 +170,7 @@ object Conversions {
def fetchAnyOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, _ <: U]) : Option[U] = Option(query.fetchAny(fieldIndex, converter))
def fetchAnyOption (fieldName : String) : Option[_] = Option(query.fetchAny(fieldName))
def fetchAnyOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[T] = Option(query.fetchAny(fieldName, newType))
def fetchAnyOption[U] (fieldName : String, converter : Converter[_, _ <: U]) : Option[U] = Option(query.fetchAny(fieldName, converter))
def fetchAnyOption[T, U] (fieldName : String, converter : Converter[_ >: T, _ <: U]): Option[U] = 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))
@ -186,7 +186,7 @@ object Conversions {
def fetchOneOption[T, U] (fieldIndex : Int, converter : Converter[_ >: T, _ <: U]) : Option[U] = Option(query.fetchOne(fieldIndex, converter))
def fetchOneOption (fieldName : String) : Option[_] = Option(query.fetchOne(fieldName))
def fetchOneOption[T] (fieldName : String, newType : Class[_ <: T]) : Option[T] = Option(query.fetchOne(fieldName, newType))
def fetchOneOption[U] (fieldName : String, converter : Converter[_, _ <: U]) : Option[U] = Option(query.fetchOne(fieldName, converter))
def fetchOneOption[T, U] (fieldName : String, converter : Converter[_ >: T, _ <: U]): Option[U] = 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))