object DbParameterUtils
This trait provides utility methods for database operations, specifically for retrieving integer array data from parameters in the database.
- Alphabetic
- By Inheritance
- DbParameterUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDataArrayOResultsDb[A](storageProfile: Profile, deserialize: (Int) => A)(implicit arg0: ClassTag[A]): GetResult[Option[Array[A]]]
Retrieves an array of integers from the database and deserializes it to the correct type.
Retrieves an array of integers from the database and deserializes it to the correct type. This function supports different database profiles (H2 and Postgres) for handling array results.
- A
The type to which the integers will be deserialized.
- storageProfile
lists the type of storage (i.e. H2 or Postgres).
- deserialize
A function that converts an
Int
into typeA
.
- Annotations
- @SuppressWarnings()
- def getDataBytesArrayResultsDb[A](deserialize: (Array[Byte]) => A)(implicit arg0: ClassTag[A]): GetResult[Array[A]]
Retrieves an array of array of bytes from the database and deserializes it to an array of A.
Retrieves an array of array of bytes from the database and deserializes it to an array of A.
- A
The type to which each array of bytes will be deserialized.
- deserialize
A function that converts an
Array[Byte]
into typeA
.
- def getStringArrayResultsDb: GetResult[Array[String]]
Retrieves an array strings from the database.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def setArrayBytesParameterDb[A](storageProfile: Profile, items: Array[A], serialize: (A) => Array[Byte], pp: PositionedParameters): Unit
Sets an array of A as a database parameter, serializing each item into bytes.
Sets an array of A as a database parameter, serializing each item into bytes.
- A
The type to which each array of bytes will be deserialized.
- storageProfile
lists the type of storage (i.e. H2 or Postgres).
- serialize
A function that converts an
A
intoArray[Byte]
.- pp
A
PositionedParameters
object, which is used to set the database parameter.
- Annotations
- @SuppressWarnings()
- def setArrayIntOParameterDb(maybeArray: Option[Array[Int]], pp: PositionedParameters): Unit
Sets an array of integers as a database parameter.
Sets an array of integers as a database parameter.
- maybeArray
An optional array of integers. If
None
, the parameter is set to null.- pp
A
PositionedParameters
object, which is used to set the database parameter.
- def setArrayStringParameterDb(items: Iterable[String], pp: PositionedParameters): Unit
Sets an Iterable of String as an array of string database parameter.
Sets an Iterable of String as an array of string database parameter.
- items
the strings to store in the column.
- pp
A
PositionedParameters
object, which is used to set the database parameter.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])