scala.dbc.datatype
object Factory

[source: `scala/dbc/datatype/Factory.scala`]

`` `object` Factory
  `extends` AnyRef

Value Summary
`final val` | java_lang_Integer_SIZE : Int = 32
`final val` | java_lang_Long_SIZE : Int = 64

Method Summary
`def` | bytePrecision (precision : Int, signed : Boolean, safe : Boolean) : Int Returns the binary precision for an integer field. This should only be used to find precision for integer numbers. It assumes that bytes cannot be used partially (result % 8 = 0).
`def` | create (metadata : java.sql.ResultSetMetaData, index : Int) : DataType
`def` | isNullable (metadata : java.sql.ResultSetMetaData, index : Int) : Option[Boolean] Returns a mullable property formated as a boolean option

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`final` `val` java_lang_Integer_SIZE : Int

`final` `val` java_lang_Long_SIZE : Int

Method Details

`` `def` isNullable(metadata : java.sql.ResultSetMetaData, index : Int) : Option[Boolean]

  Returns a mullable property formated as a boolean option

`` `def` bytePrecision(precision : Int, signed : Boolean, safe : Boolean) : Int

  Returns the binary precision for an integer field. This should only be used to find precision for integer numbers. It assumes that bytes cannot be used partially (result % 8 = 0).

`` `def` create(metadata : java.sql.ResultSetMetaData, index : Int) : DataType